Web Sémantique Et Ontologie (WSO) : Promotion 2019/2020

Télécharger au format docx, pdf ou txt
Télécharger au format docx, pdf ou txt
Vous êtes sur la page 1sur 10

RÉPUBLIQUE ALGÉRIENNE DÉMOCRATIQUE ET POPULAIRE MINISTÈRE DE

L’ENSEIGNEMENT SUPERIEUR ET DE LA
RECHERCHE SCIENTIFIQUE
UNIVERSITE FERHAT ABBES de SETIF 1

Faculté des sciences


Département d’informatique

Promotion 2019/2020

Web Sémantique et Ontologie(WSO)


Rapport de TP N 2

Membre de travaille :Ferkous Mohamed laid


Spécialité : IFIA
Déclaration 7 :
Dans la déclaration 3 du TP1 nous avons utilisé l’attribut rdf :about pour definir leurs URI
absolues : http://www.univ.com/chercheur/0022 et http://www.univ.com/chercheur/0035.
Reprendre cette déclaration en utilisant l’attribut rdf :ID.

1. La représentation en RDF/XML :
<?xml version="1.0"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:univ="http://www.univ.com/terms/">
<rdf:Description rdf:ID="chercheur0022">
<univ:nom>reffoufi</univ:nom>
<univ:prenom>alaoua</univ:prenom>
<univ:labo>LRSD</univ:labo>
</rdf:Description>
<rdf:Description rdf:ID="chercheur0035">
<univ:nom>mediani</univ:nom>
<univ:prenom>chahrazed</univ:prenom>
<univ:labo>RIO</univ:labo>
</rdf:Description>
</rdf:RDF>

2. Le tableau des triplets et la représentation graphique correspondante:


Num
Subject Predicate Object
ber
http://www.w3.org/RDF/Validator/run/15 http://www.univ.com "reffo
1
22687645070#chercheur0022 /terms/nom ufi"

http://www.w3.org/RDF/Validator/run/15 http://www.univ.com "alaou


2
22687645070#chercheur0022 /terms/prenom a"
http://www.w3.org/RDF/Validator/run/15 http://www.univ.com
3 "LRSD"
22687645070#chercheur0022 /terms/labo

http://www.w3.org/RDF/Validator/run/15 http://www.univ.com "media


4
22687645070#chercheur0035 /terms/nom ni"
http://www.w3.org/RDF/Validator/run/15 http://www.univ.com "chahr
5
22687645070#chercheur0035 /terms/prenom azed"

http://www.w3.org/RDF/Validator/run/15 http://www.univ.com
6 "RIO"
22687645070#chercheur0035 /terms/labo
Déclaration 8 :
Reprendre la déclaration 3 du TP1 en utilisant ce nouveau mécanisme (xml :base).

1. La représentation en RDF/XML :
<?xml version="1.0"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:univ="http://www.univ.com/terms/"
xml:base="http://www.univ.com/checheur#">
<rdf:Description rdf:about="#0022">
<univ:nom>reffoufi</univ:nom>
<univ:prenom>alaoua</univ:prenom>
<univ:labo>LRSD</univ:labo>
</rdf:Description>
<rdf:Description rdf:about="#0035">
<univ:nom>mediani</univ:nom>
<univ:prenom>chahrazed</univ:prenom>
<univ:labo>RIO</univ:labo>
</rdf:Description>
</rdf:RDF>

2. Le tableau des triplets et la représentation graphique correspondante:

Numbe
Subject Predicate Object
r

http://www.univ.com/checheu http://www.univ.com/terms/ "reffoufi


1
r#0022 nom "
http://www.univ.com/checheu http://www.univ.com/terms/
2 "alaoua"
r#0022 prenom

http://www.univ.com/checheu http://www.univ.com/terms/
3 "LRSD"
r#0022 labo
http://www.univ.com/checheu http://www.univ.com/terms/
4 "mediani"
r#0035 nom
http://www.univ.com/checheu http://www.univ.com/terms/ "chahraze
5
r#0035 prenom d"

http://www.univ.com/checheu http://www.univ.com/terms/
6 "RIO"
r#0035 labo

Déclaration 9 :
Exercise 1(RDFs) :
1/ le RDFs correspondant :
<?xml version="1.0"?>
<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:s="http://cours.org/etudiants#"
xml:base="http://www.univ.org/personne#">
<rdfs:Class rdf:ID="Personne"/>
<rdfs:Class rdf:ID="Enseignant">
<rdfs:subClassOf rdf:resource="#Personne"/>
</rdfs:Class>
<rdfs:Class rdf:ID="Etudiant">
<rdfs:subClassOf rdf:resource="#Personne"/>
</rdfs:Class>
<rdfs:Property rdf:ID="Suit-cours-de">
<rdfs:domain rdf:resource="#Etudiant"/>
<rdfs:range rdf:resource="#Enseignant"/>
</rdfs:Property>
<rdfs:Property rdf:ID="Nom">
<rdfs:domain rdf:resource="#Personne"/>
<rdfs:range rdf:resource="http://www.w3.org/2000/01/rdf-
schema#Literal"/>
</rdfs:Property>
<rdfs:Property rdf:ID="Prenom">
<rdfs:domain rdf:resource="#Personne"/>
<rdfs:range rdf:resource="http://www.w3.org/2000/01/rdf-
schema#Literal"/>
</rdfs:Property>
<rdfs:Property rdf:ID="Date-nais">
<rdfs:domain rdf:resource="#Personne"/>
<rdfs:range rdf:resource="http://www.w3.org/2000/01/rdf-
schema#Literal"/>
</rdfs:Property>
<rdfs:Property rdf:ID="Grade">
<rdfs:domain rdf:resource="#Enseignant"/>
<rdfs:range rdf:resource="http://www.w3.org/2000/01/rdf-
schema#Literal"/>
</rdfs:Property>
</rdf:RDF>

Num
Subject Predicate Object
ber
http://www.w3.org
http://www.univ.org/per http://www.w3.org/2000/
1 /1999/02/22-rdf-
sonne#Personne 01/rdf-schema#Class
syntax-ns#type

http://www.w3.org
http://www.univ.org/per http://www.w3.org/2000/
2 /1999/02/22-rdf-
sonne#Enseignant 01/rdf-schema#Class
syntax-ns#type
http://www.w3.org
http://www.univ.org/per http://www.univ.org/per
3 /2000/01/rdf-
sonne#Enseignant sonne#Personne
schema#subClassOf

http://www.w3.org
http://www.univ.org/per http://www.w3.org/2000/
4 /1999/02/22-rdf-
sonne#Etudiant 01/rdf-schema#Class
syntax-ns#type
http://www.w3.org
http://www.univ.org/per http://www.univ.org/per
5 /2000/01/rdf-
sonne#Etudiant sonne#Personne
schema#subClassOf

http://www.w3.org
http://www.univ.org/per http://www.w3.org/2000/
6 /1999/02/22-rdf-
sonne#Suit-cours-de 01/rdf-schema#Property
syntax-ns#type
http://www.w3.org
http://www.univ.org/per http://www.univ.org/per
7 /2000/01/rdf-
sonne#Suit-cours-de sonne#Etudiant
schema#domain

8 http://www.univ.org/per http://www.w3.org http://www.univ.org/per


sonne#Suit-cours-de /2000/01/rdf-
schema#range sonne#Enseignant
http://www.w3.org
http://www.univ.org/per http://www.w3.org/2000/
9 /1999/02/22-rdf-
sonne#Nom 01/rdf-schema#Property
syntax-ns#type

http://www.w3.org
http://www.univ.org/per http://www.univ.org/per
10 /2000/01/rdf-
sonne#Nom sonne#Personne
schema#domain
http://www.w3.org
http://www.univ.org/per http://www.w3.org/2000/
11 /2000/01/rdf-
sonne#Nom 01/rdf- schema#Literal
schema#range

http://www.w3.org
http://www.univ.org/per http://www.w3.org/2000/
12 /1999/02/22-rdf-
sonne#Prenom 01/rdf-schema#Property
syntax-ns#type
http://www.w3.org
http://www.univ.org/per http://www.univ.org/per
13 /2000/01/rdf-
sonne#Prenom sonne#Personne
schema#domain

http://www.w3.org
http://www.univ.org/per http://www.w3.org/2000/
14 /2000/01/rdf-
sonne#Prenom 01/rdf- schema#Literal
schema#range
http://www.w3.org
http://www.univ.org/per http://www.w3.org/2000/
15 /1999/02/22-rdf-
sonne#Date-nais 01/rdf-schema#Property
syntax-ns#type

http://www.w3.org
http://www.univ.org/per http://www.univ.org/per
16 /2000/01/rdf-
sonne#Date-nais sonne#Personne
schema#domain
http://www.w3.org
http://www.univ.org/per http://www.w3.org/2000/
17 /2000/01/rdf-
sonne#Date-nais 01/rdf- schema#Literal
schema#range

http://www.w3.org
http://www.univ.org/per http://www.w3.org/2000/
18 /1999/02/22-rdf-
sonne#Grade 01/rdf-schema#Property
syntax-ns#type
http://www.w3.org
http://www.univ.org/per http://www.univ.org/per
19 /2000/01/rdf-
sonne#Grade sonne#Enseignant
schema#domain

http://www.w3.org
http://www.univ.org/per http://www.w3.org/2000/
20 /2000/01/rdf-
sonne#Grade 01/rdf- schema#Literal
schema#range
2/  :
<?xml version="1.0"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:s="http://cours.org/etudiants#"
xmlns:e="http://cours.org/enseignant#"
xml:base="http://www.univ.org/personne#">
<s:Etudiant rdf:ID="etu1">
<s:Nom>nom2</s:Nom>
<s:Prenom>Amine</s:Prenom>
<s:Date-nais>01/12/1995</s:Date-nais>
<s:SuitCourDe>
<e:Enseignant rdf:ID="ens1">
<e:Nom>nom1</e:Nom>
<e:Prenom>Amina</e:Prenom>
<e:Date-nais>01/01/1980</e:Date-nais>
<e:Grade>MCB</e:Grade>
</e:Enseignant>
</s:SuitCourDe>
</s:Etudiant>
</rdf:RDF>
Num
Subject Predicate Object
ber

http://www.w3.org/1999
http://www.univ.org http://cours.org/etudi
1 /02/22-rdf-syntax-
/personne#etu1 ants#Etudiant
ns#type
2 http://www.univ.org http://cours.org/etudi "nom2"
/personne#etu1 ants#Nom

http://www.univ.org http://cours.org/etudi
3 "Amine"
/personne#etu1 ants#Prenom

http://www.univ.org http://cours.org/etudi
4 "01/12/1995"
/personne#etu1 ants#Date-nais
http://www.w3.org/1999
http://www.univ.org http://cours.org/ensei
5 /02/22-rdf-syntax-
/personne#ens1 gnant#Enseignant
ns#type

http://www.univ.org http://cours.org/etudi http://www.univ.org/pe


6
/personne#etu1 ants#SuitCourDe rsonne#ens1
http://www.univ.org http://cours.org/ensei
7 "nom1"
/personne#ens1 gnant#Nom

http://www.univ.org http://cours.org/ensei
8 "Amina"
/personne#ens1 gnant#Prenom
http://www.univ.org http://cours.org/ensei
9 "01/01/1980"
/personne#ens1 gnant#Date-nais

http://www.univ.org http://cours.org/ensei
10 "MCB"
/personne#ens1 gnant#Grade

Vous aimerez peut-être aussi