Вы находитесь на странице: 1из 6

Resource Description Framework (RDF)

, [1]. RDF
, . RDF
.
RDF (, -
), (, ,
). , ,
. RDF : ,
, . ,
RDF URI. RDF- ,
, .
RDF , [1].
RDF , :

RDF/XML XML-;
RDF/JSON JSON-;
RDFa (. RDF in attributes) HTML XHTML-;
N-Triples, Turtle, N3 [2] .

, RDF, :
SPARQL ( W3C), RQL, RDQL.
(RDF).
RDF , RDF (),
.
RDF ;
,
, .
, , RDF
XML- ; , ;
RSS; , .


RDF .
, .. .
, ,
,
. RDF:
@prefix : <http://www.example.org/> .
:john
a
:Person .
:john
:hasMother :susan .
:john
:hasFather :richard .
:richard :hasBrother :luke .

. .

XML, . RDF, XML


. XML
, , :
DOM - . , RDF
; ,
. RDF XML; .
:
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:ns="http://www.example.org/#">
<ns:Person rdf:about="http://www.example.org/#john">
<ns:hasMother rdf:resource="http://www.example.org/#susan" />
<ns:hasFather>
<rdf:Description rdf:about="http://www.example.org/#richard">
<ns:hasBrother rdf:resource="http://www.example.org/#luke" />
</rdf:Description>
</ns:hasFather>
</ns:Person>
</rdf:RDF>

XML , , . N3,
, .
, RDF XML , RDF
. ,
RDF . , RDF, ,
- , ,
. , RDF, ,
, , ,
RDF.
RDF ,
RDF-, ,
,
. RDF ,
, -, , ,
-, .
RDF.
RDF-:
@prefix : <http://www.example.org/> .
:richard :hasSister :rebecca
{ ?a :hasFather ?b . ?b :hasSister ?c . } => { ?a :hasAunt ?c }
.

RDF-
. , ,
, , :rebecca
:john-. , ;
:john :hasFather, ,
@prefix.
RDF? ,
W3C Semantic Web:

,
.
.
, .
- ,
, , , , ..
( ) ,
, RDF (
,
).

RDF
RDF :
1. (, , )
.
2. , ,
. 1) ,
RDF-, , 2)
, , ,
- RDF- .
3. , , .
. :
:john
:john
...

a
:hasMother

:Person .
:susan .

. , ,
URI ( ). ()
URI , -; RDF-,
URI http://www.w3.org/1999/02/22-rdf-syntax-ns#type;
URI - . ,
- . ,
- , , ,
. URI, http:. URN
URI, , , ISBN-
urn:isbn:0143034650 .. URI TAG;
URI tag:govtrack.us,2005:congress/senators/frist. URI
,
, . , URI
http://www.rdfabout.net/, .
, : , URI
RDF- ,
. , URI - .
URI , ,
RDF, , XML

. :john, :hasMother
,
.
http://www.example.org/#john, http://www.example.org/#hasMother ..
URI ,
.
RDF . ,
RDF :
<http://www.rdfabout.net/> a :Website .
<http://www.rdfabout.net/> dc:title "rdf:about" .
<http://www.rdfabout.net/> dc:description "A website about
Resource Description Framework." .

RDF.

RDF
,
RDF. , :
. .
, , , . , .
, ,
. RDF ( ), .
:

() RDF-:
, ,
. RDF ,
, -;
.

RDF? , ,
.
, :
.

, ,
, , .

.
RDF .
- RDF-.
URI, URI, .
,
, . RDF
, , ,
- .
RDF-, :
1:
vendor1:productX
vendor1:productX
vendor1:productX
vendor1:productY
vendor1:productY
vendor1:productY

dc:title
retail:price
vendor1:partno
dc:title
retail:price
vendor1:partno

"Cool-O-Matic" .
"$50.75" .
"TTK583" .
"Fluffertron" .
"$26.50" .
"AAL132" .

2:
vendor2:product1
vendor2:product2

dc:title
dc:title

"Can Closer" .
"Dust Unbuster" .

dc:description

"This product is good buy!"

1:
vendor1:productX
.
2:
vendor2:product2

dc:description

vendor2:product2

review:rating

"Who needs something to unbust dust?


A dust buster would be a better idea,
and I wish they posted the price." .
review:Excellent .

;
. ,
, , , ,
, vendor1:partno ( ). ,
, RDF:

.
:
RDF, .
, URI. ,
, ,


.
, .
, 1, ,
, .
,
1, :
, ,
1.

, RDF , , ,
. RDF , .

.
RDF , RDF
().