Presentation on how to chat with PDF using ChatGPT code interpreter
RDF Vocabularies for Describing Classes and Properties
1. Linked Data &
Semantic Web
Technology
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="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:s="http://example.org/person/vocab#">
<rdf:Description rdf:about="http://example.org/person/mjlee">
<s:name>Myungjin Lee</s:name>
</rdf:Description>
<rdf:Description rdf:about="http://example.org/person/john"> These resources are person.
<s:name>John Mayer</s:name>
</rdf:Description>
<rdf:Description rdf:about="http://example.org/person/berners-lee">
<s:name>Tim Berners-Lee</s:name>
</rdf:Description>
</rdf:RDF>
2
Linked Data & Semantic Web Technology
3. RDF Vocabularies: RDF Schema
• 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
http://www.w3.org/2000/01/rdf-schema# (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
3
Linked Data & Semantic Web Technology
4. Describing Classes
• Class
– "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
4
Linked Data & Semantic Web Technology
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
5
Linked Data & Semantic Web Technology
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
6
Linked Data & Semantic Web Technology
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
8
Linked Data & Semantic Web Technology
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
9
Linked Data & Semantic Web Technology
11. An Instance of Vehicle Schema
rdf:type
ex:Person ex:registeredTo rdfs:range
rdfs:domain
ex:MotorVehicle rdfs:subPropertyOf
rdfs:subClassOf
rdf:Property ex:driver infered triple
ex:primaryDriver ex:PassengerVehicle
ex:registeredTo ex:primaryDriver
exthings:staff85740 exthings:johnSmithsCar exhings:JohnSmith
11
Linked Data & Semantic Web Technology
12. An Instance of Vehicle Schema
rdf:type
ex:Person ex:registeredTo rdfs:range
rdfs:domain
ex:MotorVehicle rdfs:subPropertyOf
rdfs:subClassOf
rdf:Property ex:driver infered triple
ex:primaryDriver ex:PassengerVehicle
rdf:type rdf:type
ex:registeredTo ex:primaryDriver
exthings:staff85740 exthings:johnSmithsCar exhings:JohnSmith
ex:driver
12
Linked Data & Semantic Web Technology
13. TBox and ABox
• TBox
– "terminological component"
– a conceptualization associated with a set of facts
• ABox
– "assertion component"
– a fact associated with a terminological vocabulary within a knowledge
base
13
Linked Data & Semantic Web Technology
15. Other Vocabularies
• rdfs:label
– 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="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:kdc="http://data.kdata.kr/class/"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#">
<kdc:StateDesignatedHeritage rdf:about="http://data.kdata.kr/resource/Namdaemun">
<rdfs:label xml:lang="ko">남대문</rdfs:label>
<rdfs:label xml:lang="en">Namdaemun</rdfs:label>
<rdfs:seeAlso rdf:resource="http://dbpedia.org/resource/Namdaemun"/>
<rdfs:comment>국보 1호</rdfs:comment>
</kdc:StateDesignatedHeritage>
</rdf:RDF>
15
Linked Data & Semantic Web Technology
16. Structure of RDF Vocabularies
16
Linked Data & Semantic Web Technology
17. References
• http://www.w3.org/TR/2004/REC-rdf-primer-20040210/
• http://www.w3.org/TR/rdf-schema/
• http://www.slideshare.net/lysander07/openhpi-22
• http://seijikoide.files.wordpress.com/2011/10/rdfs_entities.jpg
17
Linked Data & Semantic Web Technology
18. Dr. Myungjin Lee
e-Mail : mjlee@li-st.com
Twitter : http://twitter.com/MyungjinLee
Facebook : http://www.facebook.com/mjinlee
SlideShare : http://www.slideshare.net/onlyjiny/
18
18
Linked Data & Semantic Web Technology