You are on page 1of 1

<?xml version="1.0"?> <?xml version="1.0"?> <?xml version="1.0" encoding="UTF-8"?

>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf- <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" syntax-ns#" rdf-syntax-ns#"
xmlns:owl="http://www.w3.org/2002/07/owl#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-
xmlns:ex="http://www.example.com#"> xmlns:ex="http://www.example.com#"> schema#">

<!-- Déclaration des classes --> <!-- Déclaration des classes --> <rdf:Description
<owl:Class rdf:about="http://www.example.com#Person"/> <rdfs:Class rdf:about="http://www.example.com#Animal"/> rdf:about="http://example.com/Person/John">
<owl:Class rdf:about="http://www.example.com#Student"> <rdfs:Class rdf:about="http://www.example.com#Mammal"> <rdf:type
<rdfs:subClassOf rdf:resource="http://www.example.com#Person"/> <rdfs:subClassOf rdf:resource="http://example.com/Person"/>
</owl:Class> rdf:resource="http://www.example.com#Animal"/> <rdfs:label>John</rdfs:label>
<owl:Class rdf:about="http://www.example.com#Teacher"> </rdfs:Class> </rdf:Description>
<rdfs:subClassOf rdf:resource="http://www.example.com#Person"/> <rdfs:Class rdf:about="http://www.example.com#Bird">
</owl:Class> <rdfs:subClassOf <rdf:Description
rdf:resource="http://www.example.com#Animal"/> rdf:about="http://example.com/Person/Mary">
<!-- Déclaration des propriétés --> </rdfs:Class> <rdf:type
<owl:ObjectProperty rdf:about="http://www.example.com#hasFriend"> rdf:resource="http://example.com/Person"/>
<rdfs:domain rdf:resource="http://www.example.com#Person"/> <!-- Déclaration des propriétés --> <rdfs:label>Mary</rdfs:label>
<rdfs:range rdf:resource="http://www.example.com#Person"/> <rdf:Property </rdf:Description>
</owl:ObjectProperty> rdf:about="http://www.example.com#hasName">
<owl:DatatypeProperty rdf:about="http://www.example.com#hasAge"> <rdf:type rdf:resource="http://www.w3.org/2000/01/rdf- <rdf:Description
<rdfs:domain rdf:resource="http://www.example.com#Person"/> schema#Datatype"/> rdf:about="http://example.com/Person/Peter">
<rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#integer"/> <rdfs:domain <rdf:type
</owl:DatatypeProperty> rdf:resource="http://www.example.com#Animal"/> rdf:resource="http://example.com/Person"/>
<rdfs:range <rdfs:label>Peter</rdfs:label>
<!-- Définition des individus --> rdf:resource="http://www.w3.org/2001/XMLSchema#string"/> </rdf:Description>
<ex:John rdf:about="http://www.example.com#John"> </rdf:Property>
<rdf:type rdf:resource="http://www.example.com#Person"/> <rdf:Property rdf:about="http://www.example.com#hasLegs"> <rdf:Description
<ex:hasFriend rdf:resource="http://www.example.com#Alice"/> <rdf:type rdf:resource="http://www.w3.org/2000/01/rdf- rdf:about="http://example.com/Relation/Friend">
<ex:hasAge schema#Datatype"/> <rdf:type
rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">30</ex:hasAge> <rdfs:domain rdf:resource="http://example.com/Relation"/>
</ex:John> rdf:resource="http://www.example.com#Animal"/> <rdfs:label>Friend</rdfs:label>
<ex:Alice rdf:about="http://www.example.com#Alice"> <rdfs:range </rdf:Description>
<rdf:type rdf:resource="http://www.example.com#Person"/> rdf:resource="http://www.w3.org/2001/XMLSchema#integer"/>
<ex:hasFriend rdf:resource="http://www.example.com#John"/> </rdf:Property> <rdf:Description
<ex:hasAge rdf:about="http://example.com/Relation/Family">
rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">25</ex:hasAge> <!-- Définition des individus --> <rdf:type
</ex:Alice> <ex:Cat rdf:about="http://www.example.com#Cat"> rdf:resource="http://example.com/Relation"/>
<rdf:type <rdfs:label>Family</rdfs:label>
</rdf:RDF> rdf:resource="http://www.example.com#Mammal"/> </rdf:Description>
<ex:hasName>Mimi</ex:hasName>
<ex:hasLegs>4</ex:hasLegs> <rdf:Description
</ex:Cat> rdf:about="http://example.com/Relation/Colleague">
<ex:Sparrow rdf:about="http://www.example.com#Sparrow"> <rdf:type
<rdf:type rdf:resource="http://www.example.com#Bird"/> rdf:resource="http://example.com/Relation"/>
<ex:hasName>Tweety</ex:hasName> <rdfs:label>Colleague</rdfs:label>
<ex:hasLegs>2</ex:hasLegs> </rdf:Description>
</ex:Sparrow>
<rdf:Description
</rdf:RDF> rdf:about="http://example.com/Person/John">
<http://example.com/Relation/Friend
rdf:resource="http://example.com/Person/Mary"/>
<http://example.com/Relation/Family
rdf:resource="http://example.com/Person/Peter"/>
</rdf:Description>

</rdf:RDF>

You might also like