Title: XML/RDF
1XML/RDF
- olivier.corby_at_sophia.inria.fr
2RDF/XML
- Resource Description Framework
- Resource Property Value
- csemanticweb cauthor ccorby
- Syntaxe XML
3RDF/XML
lt?xml version1.0 ?gt ltrdfRDF xmlnsrdf
http//www.w3.org/1999/02/22-rdf-syntax-nsgt lt/
rdfRDFgt declare un prefix xmlnsrdf declare
xmlns prefix rdf
4RDF/XML
lt?xml version1.0 ?gt ltrdfRDF xmlnsrdf
http//www.w3.org/1999/02/22-rdf-syntax-nsgt lt/
rdfRDFgt namespace http//www.w3.org/1999/02/22-r
df-syntax-ns rdfRDF la balise RDF du
namespace http//www.w3.org/1999/02/22-rdf-syntax-
ns
5RDF/XML
lt?xml version1.0 ?gt lt!DOCTYPE rdfRDF
lt!ENTITY rdf "http//www.w3.org/1999/02/22-rd
f-syntax-ns"gt gt ltrdfRDF xmlnsrdf rdf
gt lt/rdfRDFgt ENTITY rdf definit une
constante rdf expanse la constante
6RDF/XML
lt?xml version1.0 ?gt lt!DOCTYPE rdfRDF
lt!ENTITY rdf "http//www.w3.org/1999/02/22-rd
f-syntax-ns"gt gt ltrdfRDF xmlnsrdf
http//www.w3.org/1999/02/22-rdf-syntax-ns
gt lt/rdfRDFgt
7RDF/XML
lt?xml version1.0 ?gt lt!DOCTYPE rdfRDF
lt!ENTITY rdf "http//www.w3.org/1999/02/22-rdf
-syntax-ns"gt lt!ENTITY rdfs "http//www.w3.org/2
000/01/rdf-schema"gt lt!ENTITY c
"http//www.inria.fr/acacia/comma"gt gt ltrdfRDF
xmlnsrdf rdf xmlnsrdfs rdfs
xmlnsccgt lt/rdfRDFgt
8RDF/XML
lt?xml version1.0 ?gt lt!DOCTYPE rdfRDF
lt!ENTITY rdf "http//www.w3.org/1999/02/22-rdf
-syntax-ns"gt lt!ENTITY rdfs "http//www.w3.org/2
000/01/rdf-schema"gt lt!ENTITY c
"http//www.inria.fr/acacia/comma"gt gt ltrdfRDF
xmlnsrdf rdf xmlnsrdfs rdfs
xmlnsccgt ltrdfDescription
rdfabouthttp//www.inria.fr/semanticwebgt ltca
uthor rdfresourcehttp//www.inria.fr/ocorby
/gt lt/rdfDescriptiongt lt/rdfRDFgt
9RDF/XML
lt?xml version1.0 ?gt lt!DOCTYPE rdfRDF
lt!ENTITY rdf "http//www.w3.org/1999/02/22-rdf
-syntax-ns"gt lt!ENTITY rdfs "http//www.w3.org/2
000/01/rdf-schema"gt lt!ENTITY c
"http//www.inria.fr/acacia/comma"gt gt ltrdfRDF
xmlnsrdf rdf xmlnsrdfs rdfs
xmlnsccgt ltrdfDescription
rdfabouthttp//www.inria.fr/semanticwebgt ltc
author rdfresourcehttp//www.inria.fr/ocorby
/gt lt/rdfDescriptiongt lt/rdfRDFgt
10RDF/XML
lt?xml version1.0 ?gt lt!DOCTYPE rdfRDF
lt!ENTITY rdf "http//www.w3.org/1999/02/22-rdf
-syntax-ns"gt lt!ENTITY rdfs "http//www.w3.org/2
000/01/rdf-schema"gt lt!ENTITY c
"http//www.inria.fr/acacia/comma"gt gt ltrdfRDF
xmlnsrdf rdf xmlnsrdfs rdfs
xmlnscc gt ltrdfDescription
rdfabouthttp//www.inria.fr/semanticwebgt ltc
author rdfresourcehttp//www.inria.fr/ocorby
/gt lt/rdfDescriptiongt lt/rdfRDFgt
11RDF/XML
lt?xml version1.0 ?gt lt!DOCTYPE rdfRDF
lt!ENTITY rdf "http//www.w3.org/1999/02/22-rdf
-syntax-ns"gt lt!ENTITY rdfs "http//www.w3.org/2
000/01/rdf-schema"gt lt!ENTITY c
"http//www.inria.fr/acacia/comma"gt gt ltrdfRDF
xmlnsrdf rdf xmlnsrdfs rdfs
xmlnsccgt ltrdfDescription
rdfabouthttp//www.inria.fr/semanticwebgt ltc
author rdfresourcehttp//www.inria.fr/ocorby
/gt lt/rdfDescriptiongt lt/rdfRDFgt
12RDF/XML
lt?xml version1.0 ?gt lt!DOCTYPE rdfRDF
lt!ENTITY rdf "http//www.w3.org/1999/02/22-rdf
-syntax-ns"gt lt!ENTITY rdfs "http//www.w3.org/2
000/01/rdf-schema"gt lt!ENTITY c
"http//www.inria.fr/acacia/comma"gt gt ltrdfRDF
xmlnsrdf rdf xmlnsrdfs rdfs
xmlnsccgt ltrdfDescription
rdfabouthttp//www.inria.fr/semanticwebgt ltc
author rdfresourcehttp//www.inria.fr/ocorby
/gt lt/rdfDescriptiongt lt/rdfRDFgt
13RDF/XML
lt?xml version1.0 ?gt lt!DOCTYPE rdfRDF
lt!ENTITY rdf "http//www.w3.org/1999/02/22-rdf
-syntax-ns"gt lt!ENTITY rdfs "http//www.w3.org/2
000/01/rdf-schema"gt lt!ENTITY c
"http//www.inria.fr/acacia/comma"gt gt ltrdfRDF
xmlnsrdf rdf xmlnsrdfs rdfs
xmlnsccgt ltrdfsClass rdfIDhttp//www.inr
ia.fr/acacia/commaMangt ltrdfssubClassOf
rdfresource http//www.inria.fr/acacia/co
mmaHuman /gt lt/rdfsClassgt lt/rdfRDFgt
14RDF/XML
lt?xml version1.0 ?gt lt!DOCTYPE rdfRDF
lt!ENTITY rdf "http//www.w3.org/1999/02/22-rdf
-syntax-ns"gt lt!ENTITY rdfs "http//www.w3.org/2
000/01/rdf-schema"gt lt!ENTITY c
"http//www.inria.fr/acacia/comma"gt gt ltrdfRDF
xmlnsrdf rdf xmlnsrdfs rdfs
xmlnsccgt ltrdfsClass rdfIDhttp//www.inr
ia.fr/acacia/commaMangt ltrdfssubClassOf
rdfresource http//www.inria.fr/acacia/co
mmaHuman /gt lt/rdfsClassgt lt/rdfRDFgt
15RDF/XML BASE
lt?xml version1.0 ?gt lt!DOCTYPE rdfRDF
lt!ENTITY rdf "http//www.w3.org/1999/02/22-rdf
-syntax-ns"gt lt!ENTITY rdfs "http//www.w3.org/2
000/01/rdf-schema"gt lt!ENTITY c
"http//www.inria.fr/acacia/comma"gt gt ltrdfRDF
xmlnsrdf rdf xmlnsrdfs rdfs
xmlnscc xmlbasec gt ltrdfsClass
rdfIDhttp//www.inria.fr/acacia/commaMangt ltr
dfssubClassOf rdfresource http//www.inr
ia.fr/acacia/commaHuman /gt lt/rdfsClassgt lt/rdfR
DFgt
16RDF/XML BASE
lt?xml version1.0 ?gt lt!DOCTYPE rdfRDF
lt!ENTITY rdf "http//www.w3.org/1999/02/22-rdf
-syntax-ns"gt lt!ENTITY rdfs "http//www.w3.org/2
000/01/rdf-schema"gt lt!ENTITY c
"http//www.inria.fr/acacia/comma"gt gt ltrdfRDF
xmlnsrdf rdf xmlnsrdfs rdfs
xmlnscc xmlbasec gt ltrdfsClass
rdfIDMangt ltrdfssubClassOf
rdfresourceHuman /gt lt/rdfsClassgt lt/rdfRDFgt
17RDF/XML BASE
lt?xml version1.0 ?gt lt!DOCTYPE rdfRDF
lt!ENTITY rdf "http//www.w3.org/1999/02/22-rdf
-syntax-ns"gt lt!ENTITY rdfs "http//www.w3.org/2
000/01/rdf-schema"gt lt!ENTITY c
"http//www.inria.fr/acacia/comma"gt gt ltrdfRDF
xmlnsrdf rdf xmlnsrdfs rdfs
xmlnscc xmlbasec gt ltrdfsClass
rdfaboutMangt ltrdfssubClassOf
rdfresourceHuman /gt lt/rdfsClassgt lt/rdfRDFgt
18RDF/XML DEFAULT PREFIX
lt?xml version1.0 ?gt lt!DOCTYPE rdfRDF
lt!ENTITY rdf "http//www.w3.org/1999/02/22-rdf
-syntax-ns"gt lt!ENTITY rdfs "http//www.w3.org/2
000/01/rdf-schema"gt lt!ENTITY c
"http//www.inria.fr/acacia/comma"gt gt ltrdfRDF
xmlnsrdf rdf xmlnsrdfs rdfs
xmlnscc xmlbasec gt ltrdfsClass
rdfaboutMangt ltrdfssubClassOf
rdfresourceHuman /gt lt/rdfsClassgt lt/rdfRDFgt
19RDF/XML DEFAULT PREFIX
lt?xml version1.0 ?gt lt!DOCTYPE rdfRDF
lt!ENTITY rdf "http//www.w3.org/1999/02/22-rdf
-syntax-ns"gt lt!ENTITY rdfs "http//www.w3.org/2
000/01/rdf-schema"gt lt!ENTITY c
"http//www.inria.fr/acacia/comma"gt gt ltrdfRDF
xmlnsrdf rdf xmlnsrdfs rdfs
xmlnscc xmlbasec xmlnsrdfs
gt ltrdfsClass rdfaboutMangt ltrdfssubClassOf
rdfresourceHuman /gt lt/rdfsClassgt lt/rdfRDFgt
20RDF/XML DEFAULT PREFIX
lt?xml version1.0 ?gt lt!DOCTYPE rdfRDF
lt!ENTITY rdf "http//www.w3.org/1999/02/22-rdf
-syntax-ns"gt lt!ENTITY rdfs "http//www.w3.org/2
000/01/rdf-schema"gt lt!ENTITY c
"http//www.inria.fr/acacia/comma"gt gt ltrdfRDF
xmlnsrdf rdf xmlnsrdfs rdfs
xmlnscc xmlbasec xmlnsrdfs
gt ltClass rdfaboutMangt ltsubClassOf
rdfresourceHuman /gt lt/Classgt lt/rdfRDFgt
21RDF/XML
lt?xml version1.0 ?gt lt!DOCTYPE rdfRDF
lt!ENTITY rdf "http//www.w3.org/1999/02/22-rdf
-syntax-ns"gt lt!ENTITY rdfs "http//www.w3.org/2
000/01/rdf-schema"gt lt!ENTITY c
"http//www.inria.fr/acacia/comma"gt gt ltrdfRDF
xmlnsrdf rdf xmlnsrdfs rdfs
xmlnscc xmlbasec gt ltrdfProperty
rdfIDnamegt ltrdfsrange rdfresourcerdfsLi
teral /gt lt/rdfPropertygt lt/rdfRDFgt
22Question
- lt?xml version1.0 ?gtlt!DOCTYPE rdfRDF
lt!ENTITY rdf "http//www.w3.org/1999/02/22-rdf
-syntax-ns"gt lt!ENTITY rdfs "http//www.w3.org/
2000/01/rdf-schema"gt lt!ENTITY c
"http//www.inria.fr/acacia/comma"gtgt - ltrdfRDF xmlnsrdf rdf xmlnsrdfs
rdfs xmlnscc xmlbasec
xmlnsrdfsgt ltrdfProperty rdfIDnamegt ltr
ange rdfresourcerdfsLiteral
/gt lt/rdfPropertygtlt/rdfRDFgt - Namespace de
- RDF, Property, range, name, Literal