John Mayer John Mayer

Presentation is loading. Please wait.

Presentation is loading. Please wait.

The Semantic Web Part 6. RDF Vocabularies: RDF Schema

Similar presentations


Presentation on theme: "The Semantic Web Part 6. RDF Vocabularies: RDF Schema"— Presentation transcript:

1 The Semantic Web Part 6. RDF Vocabularies: RDF Schema
Dr. Myungjin Lee

2 Ability to Define the Vocabularies
This is a property, and it indicates person’s name. <?xml version="1.0"?> <rdf:RDF xmlns:rdf=" xmlns:s=" <rdf:Description rdf:about=" <s:name>Myungjin Lee</s:name> </rdf:Description> <rdf:Description rdf:about=" <s:name>John Mayer</s:name> <rdf:Description rdf:about=" <s:name>Tim Berners-Lee</s:name> </rdf:RDF> These resources are person.

3 RDF Vocabularies: RDF Schema
a set of classes with certain properties using the RDF extensible knowledge representation language providing basic elements for the description of ontologies The resources in the RDF Schema vocabulary have URIrefs with the prefix (conventionally associated with the QName prefix rdfs:). W3C Recommendation 10 February 2004 RDF Schema allows: definition of classes and class instantiation definition of properties and simple restrictions definition of hierarchies of classes and properties

4 Describing Classes Class Vocabularies for describing classes
"kinds of things“, the generic concept of a Type or Category Vocabularies for describing classes rdfs:Class the class of resources rdfs:Resource all things described by RDF are called resources, and are instances of the class rdfs:Resource. rdf:type to state that a resource is an instance of a class rdfs:subClassOf to state that all the instances of one class are instances of another

5 A Vehicle Class Hierarchy
rdfs:Resource ex:PassengerVehicle rdfs:Class ex:Truck ex:MiniVan ex:Van ex:MotorVehicle rdf:type exthings:companyCar rdfs:subClassOf

6 A Vehicle Class Hierarchy
rdfs:Resource ex:PassengerVehicle rdfs:Class ex:Truck ex:MiniVan rdfs:subClassOf ex:Van ex:MotorVehicle rdf:type rdf:type exthings:companyCar rdfs:subClassOf inferred triple

7 ex:PassengerVehicle rdfs:Class ex:MiniVan ex:Truck ex:Van
ex:MotorVehicle rdf:type rdfs:Class . ex:PassengerVehicle rdf:type rdfs:Class . ex:Van rdf:type rdfs:Class . ex:Truck rdf:type rdfs:Class . ex:MiniVan rdf:type rdfs:Class . ex:PassengerVehicle rdfs:subClassOf ex:MotorVehicle . ex:Van rdfs:subClassOf ex:MotorVehicle . ex:Truck rdfs:subClassOf ex:MotorVehicle . ex:MiniVan rdfs:subClassOf ex:Van . ex:MiniVan rdfs:subClassOf ex:PassengerVehicle . <?xml version="1.0"?> <rdf:RDF xmlns:rdf=" xmlns:rdfs=" xml:base=" <rdfs:Class rdf:ID="MotorVehicle"/> <rdfs:Class rdf:ID="PassengerVehicle"> <rdfs:subClassOf rdf:resource="#MotorVehicle"/> </rdfs:Class> <rdfs:Class rdf:ID="Truck"> <rdfs:Class rdf:ID="Van"> <rdfs:Class rdf:ID="MiniVan"> <rdfs:subClassOf rdf:resource="#Van"/> <rdfs:subClassOf rdf:resource="#PassengerVehicle"/> </rdf:RDF> ex:PassengerVehicle rdfs:Class ex:MiniVan ex:Truck ex:Van ex:MotorVehicle

8 Describing Properties
Vocabularies for describing properties rdf:Property the class of RDF properties rdfs:subPropertyOf to state that all resources related by one property are also related by another rdfs:domain to state that any resource that has a given property is an instance of one or more classes rdfs:range to state that the values of a property are instances of one or more classes

9 Properties of Vehicle Schema
rdf:type rdfs:range rdfs:domain rdfs:subPropertyOf rdfs:subClassOf ex:Person ex:registeredTo ex:MotorVehicle rdfs:Class ex:driver rdf:Property ex:primaryDriver rdfs:Datatype xsd:integer ex:rearSeatLegRoom ex:PassengerVehicle

10 Properties of Vehicle Schema
rdf:type rdfs:range rdfs:domain rdfs:subPropertyOf rdfs:subClassOf infered triple ex:Person ex:registeredTo ex:MotorVehicle rdfs:Class ex:driver rdfs:domain rdf:Property ex:primaryDriver rdfs:domain rdfs:Datatype xsd:integer ex:rearSeatLegRoom ex:PassengerVehicle

11 An Instance of Vehicle Schema
rdf:type rdfs:range rdfs:domain rdfs:subPropertyOf rdfs:subClassOf infered triple ex:Person ex:registeredTo ex:MotorVehicle rdf:Property ex:driver ex:primaryDriver ex:PassengerVehicle ex:registeredTo ex:primaryDriver exthings:staff85740 exthings:johnSmithsCar exhings:JohnSmith

12 An Instance of Vehicle Schema
rdf:type rdfs:range rdfs:domain rdfs:subPropertyOf rdfs:subClassOf infered triple ex:Person ex:registeredTo ex:MotorVehicle rdf:Property ex:driver ex:primaryDriver ex:PassengerVehicle rdf:type rdf:type ex:registeredTo ex:primaryDriver exthings:staff85740 exthings:johnSmithsCar exhings:JohnSmith ex:driver

13 TBox and ABox TBox ABox "terminological component"
a conceptualization associated with a set of facts ABox "assertion component" a fact associated with a terminological vocabulary within a knowledge base

14 TBox and ABox TBox ABox rdf:type rdfs:range rdfs:domain
rdfs:subPropertyOf rdfs:subClassOf infered triple ex:Person ex:registeredTo ex:MotorVehicle rdf:Property ex:driver ex:primaryDriver ex:PassengerVehicle rdf:type rdf:type TBox ABox ex:registeredTo ex:primaryDriver exthings:staff85740 exthings:johnSmithsCar exhings:JohnSmith ex:driver

15 Other Vocabularies rdfs:label rdfs:comment rdfs:seeAlso
to provide a human-readable version of a resource's name rdfs:comment to provide a human-readable description of a resource rdfs:seeAlso to indicate a resource that might provide additional information about the subject resource rdfs:isDefinedBy to indicate a resource defining the subject resource <?xml version="1.0"?> <rdf:RDF xmlns:rdf=" xmlns:kdc=" xmlns:rdfs=" <kdc:StateDesignatedHeritage rdf:about=" <rdfs:label xml:lang="ko">남대문</rdfs:label> <rdfs:label xml:lang="en">Namdaemun</rdfs:label> <rdfs:seeAlso rdf:resource=" <rdfs:comment>국보 1호</rdfs:comment> </kdc:StateDesignatedHeritage> </rdf:RDF>

16 Structure of RDF Vocabularies

17 References http://www.w3.org/TR/2004/REC-rdf-primer-20040210/

18 Thanks for your attention. Dr. Myungjin Lee e-Mail : mjlee@li-st.com
Twitter : Facebook : SlideShare : 18


Download ppt "The Semantic Web Part 6. RDF Vocabularies: RDF Schema"

Similar presentations


Ads by Google