Download presentation
Presentation is loading. Please wait.
1
Sheet 10 RDF (2)
2
This mechanism for describing resources is a major component in what is proposed by the W3C's Semantic Web activity: an evolutionary stage of the World Wide Web in which automated software can store, exchange, and use machine-readable information distributed throughout the web, in turn enabling users to deal with the information with greater efficiency and certainty. Cited from Wikipedia
3
The principle of inference in RDF/semantic web is the ability to derive new data from data that you already know. Example: If Human is subClassof Mortal then if Sokartes is a Human, he is also a Mortal
5
<?xml version='1.0' encoding='UTF8'?>
<!DOCTYPE rdf:RDF [ <!ENTITY rdf ' <!ENTITY rdfs ' <!ENTITY movie ' ]> <rdf:RDF xmlns:rdf=" xmlns:rdfs=" xmlns:movie=" xml:base=" <rdfs:Class rdf:about="#Person"/> <rdfs:Class rdf:about="#Movie"/> <rdfs:Class rdf:about="#Director"> <rdfs:subClassOf rdf:resource="#Person"/> </rdfs:Class> <rdfs:Class rdf:about="#Actor">
6
<rdf:Property rdf:about="#name">
<rdfs:domain rdf:resource="#Person"/> <rdfs:range rdf:resource="&rdfs;Literal"/> </rdf:Property> <rdf:Property rdf:about="#title"> <rdfs:domain rdf:resource="#Movie"/> <rdf:Property rdf:about="#directs"> <rdfs:domain rdf:resource="#Director"/> <rdfs:range rdf:resource="&rdf;Bag"/> <rdf:Property rdf:about="#stars">
7
<rdf:Description rdf:type=“#Director“ rdf:about=“#jackson”>
<movie:directs> <rdf:Bag> <rdf:li resource="#fellowship"/> </rdf:Bag> </movie:directs> <movie:name>Peter Jackson</movie:name> </rdf:Description> <movie:Actor rdf:about="#wood" movie:name="Elijah Wood"/> <movie:Actor rdf:about="#mckellan" movie:name="Ian McKellan"> <movie:Movie rdf:about="#fellowship" movie:title="The Fellowship of the Ring"> <movie:stars> <rdf:li resource="#wood"/> <rdf:li resource="#mckellan"/> </movie:stars> </movie:Movie> </rdf:RDF>
10
CEO Board Person Employee PM Company ITCompany Marketing
@prefix rdf: < . @prefix rdfs: < . @prefix : <#> . :Company rdf:type rdfs:Class. :Person rdf:type rdfs:Class. :MarketingCompany rdf:type rdfs:Class ; rdfs:subClassOf :Company . :ITCompany rdf:type rdfs:Class ; :Employee rdf:type rdfs:Class ; rdfs:subClassOf :Person . :ProjectManager rdf:type rdfs:Class . rdfs:subClassOf :Employee . :CEO rdf:type rdfs:Class ; rdfs:subClassOf :BoardMember ; :BoardMember rdf:type rdfs:Class ; :located rdf:type rdf:Property ; rdfs:domain :Company ; rdfs:range xs:string. :hasName rdf:type rdf:Property ; rdfs:domain :Person ; rdfs:range xs:string . :employed rdf:type rdf:Property ; rdfs:range :Company . Company ITCompany Marketing Person Employee PM Board CEO
11
SPARQL ARQ Download Jena, ARQ Set up your environment to use Jena ARQ
Download Cygwin (optionally)
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.