Sheet 10 RDF (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
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
<?xml version='1.0' encoding='UTF8'?> <!DOCTYPE rdf:RDF [ <!ENTITY rdf 'http://www.w3.org/1999/02/22-rdf-syntax-ns#'> <!ENTITY rdfs 'http://www.w3.org/2000/01/rdf-schema#'> <!ENTITY movie 'http://ismll.unihildesheim.de/rdf/movie#'> ]> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:movie="http://ismll.unihildesheim.de/rdf/movie#" xml:base="http://ismll.unihildesheim.de/rdf/movie"> <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">
<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">
<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>
CEO Board Person Employee PM Company ITCompany Marketing @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . @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
SPARQL ARQ Download Jena, ARQ Set up your environment to use Jena ARQ Download Cygwin (optionally)