service.owl.xsl 1.76 KB
<?xml version="1.0" encoding="utf-8"?>
<!--
	http://de.wikipedia.org/wiki/Web_Ontology_Language
-->

<xsl:stylesheet version="1.0" 	xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >
	<xsl:output method="xml" encoding="utf-8"  indent="yes" />
	<xsl:template match="/">
		<rdf:RDF
		xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
		xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
		xmlns:owl="http://www.w3.org/2002/07/owl#"
		xmlns="http://localhost:8080/OWLBuergerInformation.owl#"
		xml:base="http://localhost:8080/OWLBuergerInformation.owl">
		
		<owl:Ontology rdf:about=""/>
		
		<owl:Class rdf:ID="Gender"/>
		<owl:Class rdf:ID="Person"/>
		<owl:Class rdf:ID="Woman">
			<rdfs:subClassOf rdf:resource="#Person"/>
			<owl:equivalentClass>
			<owl:Restriction>
				<owl:onProperty rdf:resource="#Gender"/>
				<owl:hasValue rdf:resource="#female" rdf:type="#Gender"/>
			</owl:Restriction>
			</owl:equivalentClass>
		</owl:Class>
		
		<owl:ObjectProperty rdf:ID="gender"
			rdf:type="http://www.w3.org/2002/07/owl#FunctionalProperty">
			<rdfs:range rdf:resource="#Gender"/>
			<rdfs:domain rdf:resource="#Person"/>
		</owl:ObjectProperty>
		<owl:DatatypeProperty rdf:ID="name"
			rdf:type="http://www.w3.org/2002/07/owl#FunctionalProperty">
			<rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#string"/>
			<rdfs:domain rdf:resource="#Person"/>
		</owl:DatatypeProperty>
		<owl:DatatypeProperty rdf:ID="firstname"
			rdf:type="http://www.w3.org/2002/07/owl#FunctionalProperty">
			<rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#string"/>
			<rdfs:domain rdf:resource="#Person"/>
		</owl:DatatypeProperty>
		
		<Person rdf:ID="STilgner" firstname="Susanne" name="Tilgner">
			<Gender rdf:resource="#female"/>
		</Person>
		</rdf:RDF>

	</xsl:template>
</xsl:stylesheet>