Vous êtes sur la page 1sur 3

Compte rendu du Devoir 1 : Langage RDF

Module : Web Sémantique

Réalisé par : Kaouther Messaoudi 3 DNI 2

2023-2024
Travail demandé :
Décrivez 5 triplets à travers
• Un graphe RDF

• Syntaxe Ntriple
<http://../personne#kaouther> <http://../vacabulary#hascar> _:car
.
_:car <http://../vacabulary#hasmodel> "b9" .
_:car <http://../vacabulary#belongstobrand> <....#peugeot> .
_:car <http://../vacabulary#hasmatriculation> "2536tun216" .
_:car <http://../vacabulary#workswith> "Diesel" .

• Syntaxe Notation 3*
@prefix local: <http://../vacabulary#>.
@prefix : <http://.../voiture#>.
@prefix personne: <http://../personne#>.
personne:kaouther local :hascar
[ local:hasmodel :b9 ;
local:belongstobrand :peugeot ;
local:hasmatriculation "2536tun216";
local:workswith "Diesel". ].
• RDF/XML
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-
ns#"
xmlns:local="http://../vacabulary#"
xmlns:voiture="http://.../voiture#"
xmlns:personne="http://../personne#">
<personne:kaouther>
<local:hascar>
<rdf:Description>
<local:hasmodel>b9</local:hasmodel>
<local:belongstobrand rdf:resource="<....#peugeot>" />
<local:hasmatriculation>2536tun216</local:hasmatriculation>
<local:workswith>Diesel</local:workswith>
</rdf:Description>
</local:hascar>
</personne:kaouther>

</rdf:RDF>

Vous aimerez peut-être aussi