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

Semantic Web

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

dc:title
"Cool-O-Matic" .
retail:price "$50.75" .
vendor1:partno "TTK583" .
dc:title
"Fluffertron" .
retail:price "$26.50" .
vendor1:partno "AAL132" .

2:
vendor2:product1
vendor2:product2

dc:title
dc:title

1:
vendor1:productX

dc:description

"This product is good buy!".

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 .

"Can Closer" .
"Dust Unbuster" .

Resource
Description
Framework

RDF Schema

OWL
RDF
Schema

RDF
XML
Schema

XML

Semantic Web

RDF Schema (RDFS)

RDFS RDF.
RDFS , .
RDFS RDF.

RDF
Schema

RDF
.., . . ..-

http://www.elbib.ru/content/journal/2003/200303/BBNSS/BBNSS.ru.html

RDFS -
RDF Schema ( ):
();

();
(, , ).

,
.
.
.., . . ..-

RDFS

.
() .
RDF.
rdf:type , ,
.

RDF ().
,
().

:
A = {0, 2, 4, 6, 8},
B = {x, | x = 2k, k = 0..4, k - },
C 10.


, ..
.
.., . . ..-

RDFS

rdfs:Resource

, .

rdfs:Literal

rdf:XMLLiteral

XML .

rdfs:Class

rdf:Property

RDF .

rdfs:Datatype

RDF.

rdf:Statement

rdf:Bag

rdf:Seq

rdf:Alt

-.

rdfs:Container

RDF .

rdfs:ContainerMembershipProperty

rdf:List

RDF .

RDFS

rdf:type

rdfs:Resource

rdfs:Class

rdfs:subClassOf

rdfs:Class

rdfs:Class

rdfs:subPropertyOf

rdf:Property

rdf:Property

rdfs:domain

rdf:Property

rdfs:Class

rdfs:range

rdf:Property

rdfs:Class

rdfs:label

rdfs:Resource

rdfs:Literal

rdfs:comment

rdfs:Resource

rdfs:Literal

rdfs:member

rdfs:Resource

rdfs:Resource

rdf:first

rdf:List

rdfs:Resource

rdf:rest

rdf:List

rdf:List

rdfs:seeAlso

rdfs:Resource

rdfs:Resource

rdfs:isDefinedBy

rdfs:Resource

rdfs:Resource

rdf:value

rdfs:Resource

rdfs:Resource

rdf:subject

RDF (. ).

rdf:Statement

rdfs:Resource

rdf:predicate

(. ).

rdf:Statement

rdfs:Resource

rdf:object

RDF (. ).

rdf:Statement

rdfs:Resource

RDFS RDF


( )

rdf:subject

RDF (. ).

rdf:Statement

rdfs:Resource

rdf:predicate

(. ).

rdf:Statement

rdfs:Resource

rdf:object

RDF (. ).

rdf:Statement

rdfs:Resource

,
RDF
rdf:Statement
rdf:subject, rdf:predicate rdf:object.
RDF
rdf:Statement
.., . . ..-


()
:
1: .
, .
2 ,
1.

.., . . ..-


()

rdf:Property

rdf:Statement
rdf:subject
rdf:predicate
rdf:object

rdf:Statement
rdf:Property

.., . . ..-


()

rdf:type


rdf:type

rdf:Statement

rdf:subject

rdf:predicate

rdf:object

rdf:type

.., . . ..-

rdf:type


Dublin Core [DC] - Web

rdf:object

rdf:object

rdf:object

rdf:object

rdf:object

rdf:object
rdf:predicate
rdf:object

rdf:subject

rdf:object

rdf:object
rdf:object
rdf:object

rdf:object
rdf:object

rdf:object

rdf:object

RDF (RDFS)
,

,
RDF:
,
( ,
, ,
.);

( ,
;
; );
http://www.osp.ru/os/2012/09/13032513/

RDF (RDFS)

( )
-
;
,

;
;

,
;

RDF (RDFS)
,
,
,
. ,

, RDF
,
;

,
, ,
, ,
. .

RDF RDFS
o RDF ,
(.. RDF) (..
) (..
) RDF.
o RDF
. ,
RDF.
o
( ) , ..
RDF.

RDFS
rdfs:subClassOf rdfs:subPropertyOf
,
.
, ,
.
, , v1:
v1: rdfs:subClassOf v1:.
, v2, , :
v2: rdfs:subClassOf v2:.
, :
v2: rdfs:subClassOf v1:.
, :
v2: rdfs:subClassOf v1:.
.

(. interoperability
) ,
,
-
.


-
-

-
-
-

RDFS :
,

;

.

RDF (RDFS)
RDF .
RDF .
RDF
().
(S,P,O).
RDF (
).
RDFS RDF.

http://www.intuit.ru/studies/courses/1078/270/lecture/6855?page=5
SPARQL
, ,
, .
RDF- RDQL SPARQL.
SPARQL-:
SELECT <_> FROM <URI_> WHERE { <_>. FILTER <> }
: _ - ; URI_ - URI- ; _ - ;
- .
, RDF-:
(Foo1, category, "Total Members") (Foo1, rdf:value, 199) (Foo2, category, "Total Members") (Foo2, rdf:value, 200) (Foo2, category,
"CATEGORY X") (bar, category, "CATEGORY X") (bar, rdf:value, 358)
( " ?")
SELECT ?cat ?val FROM <URI_> WHERE { ?x rdf:value ?val. ?x category ?cat. FILTER (?val>=200) }
: " cat category, ( x )
rdf:value val, 200. cat val ".
:
x Foo1, Foo2 bar ( ), Foo2
, category.
Foo1 val FILTER SPARQL-.
.
- 3 (cat, val):
[ ["Total Members", 200], ["CATEGORY X", 200], ["CATEGORY X", 358] ]

1. RDFS?
2. ?
3. RDFS OWL?

http://www.rusmarc.ru/publish/bibdateRDF.pdf

http://www.interface.ru/home.asp?artId=33244


: rsdn