This commit is contained in:
2023-02-02 11:51:05 +01:00
parent ed8f1fb109
commit 5f45e953d5
14 changed files with 554 additions and 0 deletions

View File

@@ -1,43 +0,0 @@
<?xml version="1.0" encoding="utf-8" ?>
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:ex="http://www.example.org/">
<rdf:Description rdf:about="ex:avatar">
<ex:title>Avatar: The Way of Water</ex:title>
<ex:release>2022</ex:release>
<ex:duration>192</ex:duration>
<ex:realisator rdf:resource="ex:James_Cameron"></ex:realisator>
</rdf:Description>
<rdf:Description rdf:about="ex:Kate_Winslet">
<rdf:type rdf:resource="ex:Actor"></rdf:type>
<ex:DOB>10/05/1975</ex:DOB>
<ex:firstName>Kate Elizabeth</ex:firstName>
<ex:lastName>Winslet</ex:lastName>
<ex:nationality rdf:resource="ex:British"></ex:nationality>
<ex:HasRoleIn rdf:resource="ex:Avatar"></ex:HasRoleIn>
</rdf:Description>
<rdf:Description rdf:about="ex:Zoe_Saldaña">
<rdf:type rdf:resource="ex:Actor"></rdf:type>
<ex:DOB>06/19/1978</ex:DOB>
<ex:firstName>Zoë Yadira</ex:firstName>
<ex:lastName>Saldaña Nazario</ex:lastName>
<ex:nationality rdf:resource="ex:British"></ex:nationality>
<ex:HasRoleIn rdf:resource="ex:Avatar"></ex:HasRoleIn>
</rdf:Description>
<rdf:Description rdf:about="ex:Sam_Worthington">
<rdf:type rdf:resource="ex:Actor"></rdf:type>
<ex:DOB>09/02/1976</ex:DOB>
<ex:firstName>Samuel Henry John</ex:firstName>
<ex:lastName>Worthington</ex:lastName>
<ex:nationality rdf:resource="ex:Autralian"></ex:nationality>
<ex:HasRoleIn rdf:resource="ex:Avatar"></ex:HasRoleIn>
</rdf:Description>
<rdf:Description rdf:about="ex:Sigourney_Weaver">
<rdf:type rdf:resource="ex:Actor"></rdf:type>
<ex:DOB>10/08/1949</ex:DOB>
<ex:firstName>Susan Alexandra</ex:firstName>
<ex:lastName>Weaver</ex:lastName>
<ex:nationality rdf:resource="ex:British"></ex:nationality>
<ex:HasRoleIn rdf:resource="ex:Avatar"></ex:HasRoleIn>
</rdf:Description>
</rdf:RDF>

22
TD1/exercice1.rdf Normal file
View File

@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8" ?>
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:ex="http://www.exercise1.edu/">
<rdf:Description rdf:about="ex:Paris"></rdf:Description>
<rdf:Description rdf:about="ex:Cosette"></rdf:Description>
<rdf:Description rdf:about="ex:Tour_Eiffel">
<ex:Location rdf:resource="ex:Paris"></ex:Location>
</rdf:Description>
<rdf:Description rdf:about="ex:Les_Miserables">
<ex:HasTome rdf:resource="ex:Cosette"></ex:HasTome>
</rdf:Description>
<rdf:Description rdf:about="ex:Victor_Hugo">
<ex:POB rdf:resource="ex:Paris"></ex:POB>
<ex:DOB>02/26/1802</ex:DOB>
<ex:hasWrite rdf:resource="ex:Les_Miserables"></ex:hasWrite>
</rdf:Description>
</rdf:RDF>

8
TD1/exercice2.ttl Normal file
View File

@@ -0,0 +1,8 @@
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix ex: <http://www.exercise2.edu/> .
ex:Jean a foaf:person .
ex:Marie a foaf:person .
ex:Jean ex:Aime ex:Marie .

32
TD1/exercise3.rdf Normal file
View File

@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="utf-8" ?>
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:ex="http://www.exercise3.edu/"
xmlns:dc= "http://purl.org/dc/elements/1.1/"
>
<rdf:Description rdf:about="http://www.exemple.com/rdf.html">
<dc:creator rdf:nodeID="80145"/>
</rdf:Description>
<rdf:Description rdf:about="http://www.MohWebSite.com">
<ex:LastUpdate> 09-01-2023 </ex:LastUpdate>
</rdf:Description>
<rdf:Description rdf:nodeID="80145">
<ex:name> Benjamin </ex:name>
<ex:e-mail> Ben@yahoo.fr </ex:e-mail>
<ex:webSite rdf:resource="http://www.BenWebSite.com"></ex:webSite>
</rdf:Description>
<rdf:Description rdf:about="http://example.com/courses/Semantic_web">
<ex:students>
<rdf:Bag>
<rdf:li rdf:resource="http://example.com/students/Oscar"/>
<rdf:li rdf:nodeID="80145"/>
<rdf:li rdf:resource="http://example.com/students/Alice"/>
<rdf:li rdf:resource="http://example.com/students/Marie"/>
</rdf:Bag>
</ex:students>
</rdf:Description>
</rdf:RDF>

41
TD1/exercise4.rdf Normal file
View File

@@ -0,0 +1,41 @@
<?xml version="1.0" encoding="utf-8" ?>
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:ex="http://www.exercise4.edu/"
>
<rdf:Description rdf:about="France"></rdf:Description>
<rdf:Description rdf:about="Italy"></rdf:Description>
<rdf:Description rdf:about="ex:Antibes"></rdf:Description>
<rdf:Description rdf:about="ex:Sauve_Moi">
<ex:publication_date>2005</ex:publication_date>
</rdf:Description>
<rdf:Description rdf:about="chevalier_de_l_ordre_des_Art_et_des_lettres_award">
<ex:dateOfDelivery>2012</ex:dateOfDelivery>
<ex:placeOfDelivery rdf:ressource="ex:France"></ex:placeOfDelivery>
</rdf:Description>
<rdf:Description rdf:about="Raymond_Chandler_award">
<ex:dateOfDelivery>2021</ex:dateOfDelivery>
<ex:placeOfDelivery rdf:ressource="ex:Italy"></ex:placeOfDelivery>
</rdf:Description>
<rdf:Description rdf:about="ex:Guillaume_Muso">
<ex:hasAge>48</ex:hasAge>
<ex:POB rdf:ressource="ex:Antibes"></ex:POB>
<ex:hasWritten rdf:ressource="ex:Sauve_Moi"></ex:hasWritten>
<ex:awards>
<rdf:Bag>
<rdf:li rdf:resource="chevalier_de_l_ordre_des_Art_et_des_lettres_award" />
<rdf:li rdf:resource="Raymond_Chandler_award" />
</rdf:Bag>
</ex:awards>
</rdf:Description>
</rdf:RDF>

View File

@@ -1,27 +0,0 @@
<?xml version="1.0" encoding="utf-8" ?>
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:ex="http://www.example.org/">
<rdf:Description rdf:about="ex:titanic">
<ex:title>Titanic</ex:title>
<ex:release>1997</ex:release>
<ex:duration>195</ex:duration>
<ex:realisator rdf:resource="ex:James_Cameron"></ex:realisator>
</rdf:Description>
<rdf:Description rdf:about="ex:Leonardo_DiCaprio">
<rdf:type rdf:resource="ex:Actor"></rdf:type>
<ex:DOB>11/11/1974</ex:DOB>
<ex:firstName>Leonardo Wilhelm</ex:firstName>
<ex:lastName>DiCaprio</ex:lastName>
<ex:nationality rdf:resource="ex:Amerian"></ex:nationality>
<ex:HasRoleIn rdf:resource="ex:Titanic"></ex:HasRoleIn>
</rdf:Description>
<rdf:Description rdf:about="ex:Kate_Winslet">
<rdf:type rdf:resource="ex:Actor"></rdf:type>
<ex:DOB>10/05/1975</ex:DOB>
<ex:firstName>Kate Elizabeth</ex:firstName>
<ex:lastName>Winslet</ex:lastName>
<ex:nationality rdf:resource="ex:British"></ex:nationality>
<ex:HasRoleIn rdf:resource="ex:Titanic"></ex:HasRoleIn>
</rdf:Description>
</rdf:RDF>