SlideShare a Scribd company logo
2
Most read
4
Most read
5
Most read
Chapter: 2 (Tutorial)
1
RDF Graphs:
Give the RDF/XML, Notation 3, triples for the following sentences and also draw the RDF graph.
1. The lecture is attended by Kishoj, Pradeep, Mohan and Dipendra.
RDF/XML:
<rdf:RDF
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:ex = "http://example.org/"
>
<rdf:Description rdf:about="http://example.org/lecture">
<ex:isAttendedBy>
<rdf:Bag>
<rdf:li rdf:resource = "http://example.org/Kishoj"/>
<rdf:li rdf:resource = "http://example.org/Pradeep"/>
<rdf:li rdf:resource = "http://example.org/Mohan"/>
<rdf:li rdf:resource = "http://example.org/Dipendra"/>
</rdf:Bag>
</ex:isAttendedBy>
</rdf:Description>
</rdf:RDF>
Notation 3:
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>.
@prefix ex: <http://example.org/>.
ex:lecture ex:isAttendedBy _:bnode1.
_:bnode1 rdf:type rdf:Bag;
rdf:_1 ex:Kishoj;
rdf:_2 ex:Pradeep;
rdf:_3 ex:Mohan;
rdf:_4 ex:Dipendra.
Triples:
_:bnode1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/1999/02/22-rdf-
syntax-ns#Bag>.
_:bnode1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#_1> <http://example.org/Kishoj>.
_:bnode1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#_2> <http://example.org/Pradeep>.
_:bnode1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#_3> <http://example.org/Mohan>.
_:bnode1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#_4> <http://example.org/Dipendra>.
<http://example.org/lecture> <http://example.org/isAttendedBy> _:bnode1.
Chapter: 2 (Tutorial)
2
2. [RDF-Concept] is studied by Kishoj and Pradeep in order.
RDF/XML:
<rdf:RDF
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:ex = "http://example.org/"
>
<rdf:Description rdf:about="http://www.w3.org/TR/rdf-concepts/">
<ex:studiedBy>
<rdf:Seq>
<rdf:li rdf:resource = "http://example.org/Kishoj"/>
<rdf:li rdf:resource = "http://example.org/Pradeep"/>
</rdf:Seq>
</ex:studiedBy>
</rdf:Description>
</rdf:RDF>
Notation 3:
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>.
@prefix ex: <http://example.org/>.
<http://www.w3.org/TR/rdf-concepts/> ex:studiedBy _:bnode1.
_:bnode1 rdf:type rdf:Seq;
rdf:_1 ex:Kishoj;
rdf:_2 ex:Pradeep.
Triples:
_:b1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/1999/02/22-rdf-
syntax-ns#Seq>.
_:b1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#_1> <http://example.org/Kishoj>.
_:b1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#_2> <http://example.org/Pradeep>.
<http://www.w3.org/TR/rdf-concepts/> <http://example.org/studiedBy> _:b1.
Chapter: 2 (Tutorial)
3
3. The software Mobile Tracker can be downloaded from three links link1or link2 or link3.
RDF/XML:
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:ex = "http://example.org/"
>
<rdf:Description rdf:about="http://example.org/MobileTraker">
<ex:sourceLocation>
<rdf:Alt>
<rdf:li rdf:resource = "http://example.org/Link1"/>
<rdf:li rdf:resource = "http://example.org/Link2"/>
<rdf:li rdf:resource = "http://example.org/Link3"/>
</rdf:Alt>
</ex:sourceLocation>
</rdf:Description>
</rdf:RDF>
Notation 3:
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>.
@prefix ex: <http://example.org/>.
ex:MobileTraker ex:sourceLocation _:bnode1.
_:bnode1 rdf:type rdf:Alt;
rdf:_1 ex:Link1;
rdf:_2 ex:Link2;
rdf:_3 ex:Link3.
Triples:
_:bnode1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/1999/02/22-rdf-
syntax-ns#Alt>.
_:bnode1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#_1> <http://example.org/Link1>.
_:bnode1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#_2> <http://example.org/Link2>.
_:bnode1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#_3> <http://example.org/Link3>.
<http://example.org/MobileTraker> <http://example.org/sourceLocation> _:bnode1.
Chapter: 2 (Tutorial)
4
Convert the given graph to RDF/XML, Notation 3, turtle, triples and JSON.
RDF/XML:
<?xml version="1.0"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:ex="http://example.org/stuff/1.0/">
<rdf:Description rdf:about="http://www.w3.org/TR/rdf-syntax-grammar"
dc:title="RDF/XML Syntax Specification (Revised)">
<ex:editor>
<rdf:Description ex:fullName="Dave Beckett">
<ex:homePage rdf:resource="http://purl.org/net/dajobe/" />
</rdf:Description>
</ex:editor>
</rdf:Description>
</rdf:RDF>
Notation 3:
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>.
@prefix dc: <http://purl.org/dc/elements/1.1/>.
@prefix ex: <http://example.org/stuff/1.0/>.
<http://www.w3.org/TR/rdf-syntax-grammar> ex:editor
[ ex:fullName "Dave Beckett"; ex:homePage <http://purl.org/net/dajobe/> ];
dc:title "RDF/XML Syntax Specification (Revised)".
Turtle: .ttl extension:
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>.
@prefix dc: <http://purl.org/dc/elements/1.1/>.
Chapter: 2 (Tutorial)
5
@prefix ex: <http://example.org/stuff/1.0/>.
<http://www.w3.org/TR/rdf-syntax-grammar> dc:title "RDF/XML Syntax Specification (Revised)";
ex:editor [ ex:fullname "Dave Beckett"; ex:homePage <http://purl.org/net/dajobe/>].
Triples:
<http://www.w3.org/TR/rdf-syntax-grammar> <http://purl.org/dc/elements/1.1/title> "RDF/XML Syntax
Specification (Revised)".
_:bnode1 <http://example.org/stuff/1.0/fullName> "Dave Beckett".
_:bnode1 <http://example.org/stuff/1.0/homePage> <http://purl.org/net/dajobe/>.
<http://www.w3.org/TR/rdf-syntax-grammar> <http://example.org/stuff/1.0/editor> _:bnode1.
RDF/XML:
<?xml version="1.0"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Seq rdf:about="http://example.org/favourite-fruit">
<rdf:li rdf:resource="http://example.org/banana"/>
<rdf:li rdf:resource="http://example.org/apple"/>
<rdf:li rdf:resource="http://example.org/pear"/>
</rdf:Seq>
</rdf:RDF>
Tripes: .nt extension
<http://example.org/favourite-fruit> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
<http://www.w3.org/1999/02/22-rdf-syntax-ns#Seq>.
<http://example.org/favourite-fruit> <http://www.w3.org/1999/02/22-rdf-syntax-ns#_1>
<http://example.org/banana>.
<http://example.org/favourite-fruit> <http://www.w3.org/1999/02/22-rdf-syntax-ns#_2>
<http://example.org/apple>.
<http://example.org/favourite-fruit> <http://www.w3.org/1999/02/22-rdf-syntax-ns#_3>
<http://example.org/pear>.
Turtle to graph:
@prefix : <http://example.org/stuff/1.0/>.
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>.
:a :b
[ rdf:first "apple";
rdf:rest [ rdf:first "banana";
rdf:rest rdf:nil ]
] .
Chapter: 2 (Tutorial)
6
RDF/XML:
<?xml version="1.0"?>
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:ns="http://example.org/stuff/1.0/">
<rdf:Description rdf:about="http://example.org/stuff/1.0/a">
<ns:b>
<rdf:Description>
<rdf:first>apple</rdf:first>
<rdf:rest>
<rdf:Description>
<rdf:first>banana</rdf:first>
<rdf:rest rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#nil" />
</rdf:Description>
</rdf:rest>
</rdf:Description>
</ns:b>
</rdf:Description>
</rdf:RDF>
Triples:
<http://example.org/stuff/1.0/a> <http://example.org/stuff/1.0/b> _:bnode1.
_:bnode1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> "apple".
_:bnode1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> _:bnode2.
_:bnode2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> "banana".
_:bnode2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> <http://www.w3.org/1999/02/22-rdf-syntax-
ns#nil>.
Chapter: 2 (Tutorial)
7
RDF collection of nodes using rdf:parseType="Collection"
RDF/XML:
<?xml version="1.0"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:ex="http://example.org/stuff/1.0/">
<rdf:Description rdf:about="http://example.org/basket">
<ex:hasFruit rdf:parseType="Collection">
<rdf:Description rdf:about="http://example.org/banana"/>
<rdf:Description rdf:about="http://example.org/apple"/>
<rdf:Description rdf:about="http://example.org/pear"/>
</ex:hasFruit>
</rdf:Description>
</rdf:RDF>
Notation 3:
@prefix ex: <http://example.org/stuff/1.0/>.
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>.
<http://example.org/basket> ex:hasFruit (<http://example.org/banana> <http://example.org/apple>
<http://example.org/pear>).
Triple:
<http://example.org/basket> <http://example.org/stuff/1.0/hasFruit> _:bnode1.
_:bnode1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> <http://example.org/banana>.
_:bnode1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> <http://example.org/apple>.
_:bnode1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> _:bnode2.
_:bnode2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> <http://example.org/pear>.
_:bnode2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> _:bnode3.
_:bnode3 <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> <http://www.w3.org/1999/02/22-rdf-syntax-
ns#nil>.
Differentiate between two RDF/XML statement.
1. <?xml version="1.0"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Seq rdf:about="http://example.org/favourite-fruit">
<rdf:_1 rdf:resource="http://example.org/banana"/>
<rdf:_2 rdf:resource="http://example.org/apple"/>
<rdf:_3 rdf:resource="http://example.org/pear"/>
</rdf:Seq>
Chapter: 2 (Tutorial)
8
</rdf:RDF>
2. <?xml version="1.0"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Seq rdf:about="http://example.org/favourite-fruit">
<rdf:li rdf:resource="http://example.org/banana"/>
<rdf:li rdf:resource="http://example.org/apple"/>
<rdf:li rdf:resource="http://example.org/pear"/>
</rdf:Seq>
</rdf:RDF>
Both are equivalent and produces same RDF graph as shown below in figure because rdf:li, special property
element, is equivalent to rdf:_1, rdf:_2 in order.
Complete example of rdf:datatype:
RDF/XML:
<?xml version="1.0"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:ex="http://example.org/stuff/1.0/">
<rdf:Description rdf:about="http://example.org/item01">
<ex:size rdf:datatype="http://www.w3.org/2001/XMLSchema#int">123</ex:size>
</rdf:Description>
</rdf:RDF>
Triples:
<http://example.org/item01> <http://example.org/stuff/1.0/size>
"123"^^<http://www.w3.org/2001/XMLSchema#int>.
Notation 3:
@prefix eg: <http://example.org/>.
@prefix ex: <http://example.org/stuff/1.0/>.
eg:item01 ex:size "123".
Reification: statements about statements.
1. {:John :Loves :Mary} :accordingTo :Bill.
2. Mary claims that John’s name is “John Smith”.
3. Romeo thought that {Juliet was dead}.
Romeo thought that Juliet was dead.
Chapter: 2 (Tutorial)
9
<?xml version="1.0"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:ex="http://example.org/#">
<rdf:Description rdf:about="http://example.org/#romeo">
<ex:thought>
<rdf:Description>
<rdf:subject>
<rdf:Description rdf:about="http://example.org/#juliet"/>
</rdf:subject>
<rdf:predicate>
<rdf:Description rdf:about="http://www.w3.org/1999/02/22-rdf-syntax-ns#type"/>
</rdf:predicate>
<rdf:object>
<rdf:Description rdf:about="http://example.org/#dead"/>
</rdf:object>
</rdf:Description>
</ex:thought>
</rdf:Description>
</rdf:RDF>
<?xml version="1.0"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:ex="http://example.org/#">
<rdf:Description rdf:about="http://example.org/romeo">
<ex:thought>
<rdf:Description>
<rdf:subject>
<rdf:Description rdf:about="http://example.org/juliet"/>
</rdf:subject>
<rdf:predicate>
<rdf:Description rdf:about="http://example.org/was"/>
</rdf:predicate>
<rdf:object>
<rdf:Description rdf:about="http://example.org/dead"/>
</rdf:object>
</rdf:Description>
</ex:thought>
</rdf:Description>
</rdf:RDF>
Notation 3:
Chapter: 2 (Tutorial)
10
@prefix ex: <http://example.org/#>.
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>.
ex:romeo ex:thought _:bnode1.
_:bnode1 rdf:subject ex:Juliet;
rdf:object ex:dead;
rdf:predicate rdf:type.
Triples:
<http://example.org/#romeo> <http://example.org/#thought> _:bnode1.
_:bnode1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://example.org/#Juliet>.
_:bnode1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.w3.org/1999/02/22-rdf-
syntax-ns#type>.
_:bnode1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://example.org/#dead>.
John loves Mary, according to Bill.
RDF/XML:
<?xml version="1.0"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:ex="http://example.org/">
<rdf:Description rdf:about="http://example.org/bill">
<ex:thought>
<rdf:Description>
<rdf:subject>
<rdf:Description rdf:about="http://example.org/john"/>
</rdf:subject>
<rdf:predicate>
<rdf:Description rdf:about="http://example.org/love"/>
</rdf:predicate>
<rdf:object>
<rdf:Description rdf:about="http://example.org/mary"/>
</rdf:object>
</rdf:Description>
</ex:thought>
</rdf:Description>
</rdf:RDF>
Notation 3:
@prefix ex: <http://example.org/>.
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>.
ex:bill ex:thought _:bnode1.
_:bnode1 rdf:subject ex:john;
Chapter: 2 (Tutorial)
11
rdf:predicate ex:love;
rdf:object ex:mary.
Triples:
_:bnode1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://example.org/john>.
_:bnode1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://example.org/love>.
_:bnode1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://example.org/mary>.
<http://example.org/bill> <http://example.org/thought> _:bnode1.
Mary claims that John’s name is “John Smith”.
〈<#myStatement>, rdf:type, rdf:Statement〉
〈<#myStatement>, rdf:subject, <#john>〉
〈<#myStatement>, rdf:predicate, <#hasName>〉
〈<#myStatement>, rdf:object, ”John Smith”〉
〈<#mary>, <#claims>, <#myStatement>〉
RDF/XML:
<?xml version="1.0"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:ex="http://example.org/">
<rdf:Description rdf:about="http://example.org/mary">
<ex:claim>
<rdf:Description>
<rdf:subject>
<rdf:Description rdf:about="http://example.org/john"/>
</rdf:subject>
<rdf:predicate>
<rdf:Description rdf:about="http://example.org/hasName"/>
</rdf:predicate>
<rdf:object>
John Smith
</rdf:object>
</rdf:Description>
</ex:claim>
</rdf:Description>
</rdf:RDF>
Notation 3:
@prefix ex: <http://example.org/>.
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>.
ex:mary ex:claim _:bnode1.
_:bnode1 rdf:subject ex:john;
rdf:predicate ex:hasName;
rdf:object “John Smith”.
Triples:
_:bnode1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://example.org/john>.
_:bnode1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://example.org/hasName>.
_:bnode1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> “John Smith”.
<http://example.org/mary> <http://example.org/claim> _:bnode1.
Chapter: 2 (Tutorial)
12
RDF Entailment:
<http://example.org/#john> rdf:type <http://example.org/#Student>
<http://example.org/#> rdfs:subClassOf <http://example.org/#Person>
Entails: <http://example.org/#john> rdf:type <http://example.org/#Person>
Triples:
<http://example.org/#john> <http://example.org/#hasName> "John".
<http://example.org/#john> <http://example.org/#marriedTo> <http://example.org/#mary>.
RDF/XML:
<?xml version="1.0"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:ex="http://example.org/#">
<rdf:Description rdf:about="http://example.org/#john">
<ex:hasName>John</ex:hasName>
<ex:marriedTo rdf:resource = "http://example.org/#mary"/>
</rdf:Description>
</rdf:RDF>
Notation 3:
@prefix ex: <http://example.org/#>.
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>.
ex:john ex:hasName "John";
ex:marriedTo ex:mary.
Exercise 1.2: Write the following part of an RDF document in Turtle syntax:
<?xml version="1.0"?>
Chapter: 2 (Tutorial)
13
<rdf:RDF xmlns:owl="http://www.w3.org/2002/07/owl#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="Jack">
<rdf:type>
<owl:Class>
<owl:intersectionOf rdf:parseType="Collection">
<owl:Class rdf:about="Person"/>
<owl:Class>
<owl:complementOf rdf:resource="Parent"/>
</owl:Class>
</owl:intersectionOf>
</owl:Class>
</rdf:type>
</rdf:Description>
</rdf:RDF>
Turtle syntax:
@prefix owl: <http://www.w3.org/2002/07/owl#>.
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>.
<Jack> a _:bnode1.
<Person> a owl:Class.
_:bnode2 a owl:Class;
owl:complementOf <Parent>.
_:bnode1 a owl:Class;
owl:intersectionOf (<Person> _:bnode2).
Triples:
_:bnode1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2002/07/owl#Class>.
<Person> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2002/07/owl#Class>.
_:bnode2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> <Person>.
_:bnode2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> _:bnode3.
_:bnode1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2002/07/owl#Class>.
_:bnode4 <http://www.w3.org/2002/07/owl#complementOf> <Parent>.
_:bnode3 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> _:bnode4.
_:bnode3 <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> <http://www.w3.org/1999/02/22-rdf-syntax-
ns#nil>.
_:bnode1 <http://www.w3.org/2002/07/owl#intersectionOf> _:bnode2.
<Jack> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> _:bnode1.
Exercise 1.1 Write the following part of an RDF document in Turtle syntax:
<rdf:RDF
Chapter: 2 (Tutorial)
14
xmlns:owl="http://www.w3.org/2002/07/owl#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
>
<owl:Class rdf:about="Parent">
<owl:equivalentClass>
<owl:Restriction>
<owl:onProperty rdf:resource="hasChild"/>
<owl:someValuesFrom rdf:resource="Person"/>
</owl:Restriction>
</owl:equivalentClass>
</owl:Class>
</rdf:RDF>
Notation 3:
@prefix owl: <http://www.w3.org/2002/07/owl#>.
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>.
<Parent> a owl:Class;
owl:equivalentClass _:bnode1.
_:bnode1 rdf:type owl:Restriction;
owl:onProperty <hasChild>;
owl:someValuesFrom <Person>.
Triples:
<Parent> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2002/07/owl#Class>.
_:bnode1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2002/07/owl#Restriction>.
_:bnode1 <http://www.w3.org/2002/07/owl#onProperty> <hasChild>.
_:bnode1 <http://www.w3.org/2002/07/owl#someValuesFrom> <Person>.
<Parent> <http://www.w3.org/2002/07/owl#equivalentClass> _:bnode1.
Exercise 1.5:
Write the following Turtle triples in RDF/XML syntax: ([] can be used in Turtle for a blank node.)
@prefix owl: <http://www.w3.org/2002/07/owl#>.
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>.
[] rdf:type owl:NegativePropertyAssertion;
owl:sourceIndividual :Bill;
owl:assertionProperty :hasDaughter;
owl:targetIndividual :Susan.
RDF/XML:
<?xml version="1.0"?>
<rdf:RDF xmlns:owl="http://www.w3.org/2002/07/owl#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-
ns#">
Chapter: 2 (Tutorial)
15
<owl:NegativePropertyAssertion>
<owl:sourceIndividual rdf:resource="#Bill" />
<owl:assertionProperty rdf:resource="#hasDaughter" />
<owl:targetIndividual rdf:resource="#Susan" />
</owl:NegativePropertyAssertion>
</rdf:RDF>
Triples:
_:bnode1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
<http://www.w3.org/2002/07/owl#NegativePropertyAssertion>.
_:bnode1 <http://www.w3.org/2002/07/owl#sourceIndividual> <#Bill>.
_:bnode1 <http://www.w3.org/2002/07/owl#assertionProperty> <#hasDaughter>.
_:bnode1 <http://www.w3.org/2002/07/owl#targetIndividual> <#Susan>.
Exercise 1.4 Write the following Turtle triple in RDF/XML syntax:
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.
@prefix ex: <http://example.org/>.
@prefix xsd: <http://www.w3.org/2001/XMLSchema#>.
ex:Person rdfs:comment "Represents the set of all people."^^xsd:string .
RDF/XML:
<?xml version="1.0"?>
<rdf:RDF
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:ex="http://example.org/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="http://example.org/Person">
<rdfs:comment rdf:datatype="http://www.w3.org/2001/XMLSchema#string">
Represents the set of all people.
</rdfs:comment>
</rdf:Description>
</rdf:RDF>
Chapter: 2 (Tutorial)
16
Triples:
<http://example.org/Person> <http://www.w3.org/2000/01/rdf-schema#comment> "Represents the set of all
people."^^<http://www.w3.org/2001/XMLSchema#string>.

More Related Content

What's hot (11)

ODP
OrientDB for real & Web App development
Luca Garulli
 
PPTX
NoSQL Graph Databases - Why, When and Where
Eugene Hanikblum
 
PPT
Introduction To Map Reduce
rantav
 
PPTX
13.1 User-defined data types.pptx
Sooraj Rajmohan
 
PDF
Spark sql
Freeman Zhang
 
DOC
rdbms-notes
Mohit Saini
 
ODP
Graph databases
Karol Grzegorczyk
 
PDF
Tableau - bump chart
Learnbay Datascience
 
KEY
NoSQL Databases: Why, what and when
Lorenzo Alberton
 
PPTX
Attributes
Pooja Dixit
 
PDF
Relational vs Non Relational Databases
Angelica Lo Duca
 
OrientDB for real & Web App development
Luca Garulli
 
NoSQL Graph Databases - Why, When and Where
Eugene Hanikblum
 
Introduction To Map Reduce
rantav
 
13.1 User-defined data types.pptx
Sooraj Rajmohan
 
Spark sql
Freeman Zhang
 
rdbms-notes
Mohit Saini
 
Graph databases
Karol Grzegorczyk
 
Tableau - bump chart
Learnbay Datascience
 
NoSQL Databases: Why, what and when
Lorenzo Alberton
 
Attributes
Pooja Dixit
 
Relational vs Non Relational Databases
Angelica Lo Duca
 

Viewers also liked (19)

PDF
Rdf
nawel_nk
 
PDF
FRBR και Linked Data - Σεμινάριο Αθήνας
Giannis Tsakonas
 
PDF
RDF: what and why plus a SPARQL tutorial
Jerven Bolleman
 
PPS
Access Control for RDF graphs using Abstract Models
PlanetData Network of Excellence
 
PPTX
Semantic framework for web scraping.
Shyjal Raazi
 
PDF
RDF4U: RDF Graph Visualization by Interpreting Linked Data as Knowledge
National Institute of Informatics
 
PPT
RDFS In A Nutshell V1
Fabien Gandon
 
PDF
Semantic Web Technologies - SS 2010 - 03 - RDF
Steffen Schloenvoigt
 
PPT
Νικολακοπούλου Μαρία - final
Maria Nikolakopoulou
 
PPTX
Saveface - Save your Facebook content as RDF data
Fuming Shih
 
PDF
Fosdem 2011 - A Common Graph Database Access Layer for .Net and Mono
Achim Friedland
 
PPT
Graph-based Relational Data Visualization
Universidade de São Paulo
 
PDF
Two graph data models : RDF and Property Graphs
andyseaborne
 
PPTX
RDF2Vec: RDF Graph Embeddings for Data Mining
Petar Ristoski
 
PPTX
SPARQL and RDF query optimization
Kisung Kim
 
PDF
RDF, SPARQL and Semantic Repositories
Marin Dimitrov
 
PPT
Protege tutorial
Comércio de Portugal
 
PPTX
SPARQL Cheat Sheet
LeeFeigenbaum
 
PPT
RDF and OWL
Rachel Lovinger
 
FRBR και Linked Data - Σεμινάριο Αθήνας
Giannis Tsakonas
 
RDF: what and why plus a SPARQL tutorial
Jerven Bolleman
 
Access Control for RDF graphs using Abstract Models
PlanetData Network of Excellence
 
Semantic framework for web scraping.
Shyjal Raazi
 
RDF4U: RDF Graph Visualization by Interpreting Linked Data as Knowledge
National Institute of Informatics
 
RDFS In A Nutshell V1
Fabien Gandon
 
Semantic Web Technologies - SS 2010 - 03 - RDF
Steffen Schloenvoigt
 
Νικολακοπούλου Μαρία - final
Maria Nikolakopoulou
 
Saveface - Save your Facebook content as RDF data
Fuming Shih
 
Fosdem 2011 - A Common Graph Database Access Layer for .Net and Mono
Achim Friedland
 
Graph-based Relational Data Visualization
Universidade de São Paulo
 
Two graph data models : RDF and Property Graphs
andyseaborne
 
RDF2Vec: RDF Graph Embeddings for Data Mining
Petar Ristoski
 
SPARQL and RDF query optimization
Kisung Kim
 
RDF, SPARQL and Semantic Repositories
Marin Dimitrov
 
Protege tutorial
Comércio de Portugal
 
SPARQL Cheat Sheet
LeeFeigenbaum
 
RDF and OWL
Rachel Lovinger
 
Ad

Similar to Tutorial for RDF Graphs (20)

PDF
2011 4IZ440 Semantic Web – RDF, SPARQL, and software APIs
Josef Petrák
 
PDF
SPARQL and the Open Linked Data initiative
Fulvio Corno
 
PDF
XSPARQL Tutorial
net2-project
 
PDF
SPARQL and Linked Data
Fulvio Corno
 
PPTX
Sparql
Tamrat Amare
 
PPT
Introduction To RDF and RDFS
Nilesh Wagmare
 
PDF
An introduction to Semantic Web and Linked Data
Fabien Gandon
 
PPTX
RDF Data Model
Jose Emilio Labra Gayo
 
PPTX
What's New in RDF 1.1?
Richard Cyganiak
 
PDF
A Hands On Overview Of The Semantic Web
Shamod Lacoul
 
ODP
Semantic Web introduction
Graphity
 
PDF
W3C Tutorial on Semantic Web and Linked Data at WWW 2013
Fabien Gandon
 
PDF
An introduction to Semantic Web and Linked Data
Gabriela Agustini
 
PDF
An introduction to Semantic Web and Linked Data
Gabriela Agustini
 
PPTX
SWT Lecture Session 5 - RDFS
Mariano Rodriguez-Muro
 
PPTX
Introduction to RDF Data Model
Cesar Augusto Nogueira
 
PPTX
Infromation Reprentation, Structured Data and Semantics
Yogendra Tamang
 
KEY
How RDFa works
JISC Netskills
 
KEY
RDFa Introductory Course Session 2/4 How RDFa
Platypus
 
2011 4IZ440 Semantic Web – RDF, SPARQL, and software APIs
Josef Petrák
 
SPARQL and the Open Linked Data initiative
Fulvio Corno
 
XSPARQL Tutorial
net2-project
 
SPARQL and Linked Data
Fulvio Corno
 
Sparql
Tamrat Amare
 
Introduction To RDF and RDFS
Nilesh Wagmare
 
An introduction to Semantic Web and Linked Data
Fabien Gandon
 
RDF Data Model
Jose Emilio Labra Gayo
 
What's New in RDF 1.1?
Richard Cyganiak
 
A Hands On Overview Of The Semantic Web
Shamod Lacoul
 
Semantic Web introduction
Graphity
 
W3C Tutorial on Semantic Web and Linked Data at WWW 2013
Fabien Gandon
 
An introduction to Semantic Web and Linked Data
Gabriela Agustini
 
An introduction to Semantic Web and Linked Data
Gabriela Agustini
 
SWT Lecture Session 5 - RDFS
Mariano Rodriguez-Muro
 
Introduction to RDF Data Model
Cesar Augusto Nogueira
 
Infromation Reprentation, Structured Data and Semantics
Yogendra Tamang
 
How RDFa works
JISC Netskills
 
RDFa Introductory Course Session 2/4 How RDFa
Platypus
 
Ad

More from Kishoj Bajracharya (8)

PDF
Comparison of Agent-based platforms
Kishoj Bajracharya
 
PDF
IPv6 examples
Kishoj Bajracharya
 
PDF
Network Coding
Kishoj Bajracharya
 
PDF
Galios: Python Programming
Kishoj Bajracharya
 
PDF
OLSR setup
Kishoj Bajracharya
 
PDF
DBpedia mobile
Kishoj Bajracharya
 
PDF
Manual orange
Kishoj Bajracharya
 
PDF
Random Number Generation
Kishoj Bajracharya
 
Comparison of Agent-based platforms
Kishoj Bajracharya
 
IPv6 examples
Kishoj Bajracharya
 
Network Coding
Kishoj Bajracharya
 
Galios: Python Programming
Kishoj Bajracharya
 
OLSR setup
Kishoj Bajracharya
 
DBpedia mobile
Kishoj Bajracharya
 
Manual orange
Kishoj Bajracharya
 
Random Number Generation
Kishoj Bajracharya
 

Recently uploaded (20)

PDF
DIGESTION OF CARBOHYDRATES,PROTEINS,LIPIDS
raviralanaresh2
 
PPTX
A PPT on Alfred Lord Tennyson's Ulysses.
Beena E S
 
PPTX
BANDHA (BANDAGES) PPT.pptx ayurveda shalya tantra
rakhan78619
 
PPT
Talk on Critical Theory, Part II, Philosophy of Social Sciences
Soraj Hongladarom
 
PDF
People & Earth's Ecosystem -Lesson 2: People & Population
marvinnbustamante1
 
PDF
CHILD RIGHTS AND PROTECTION QUESTION BANK
Dr Raja Mohammed T
 
PPTX
How to Configure Access Rights of Manufacturing Orders in Odoo 18 Manufacturing
Celine George
 
PDF
Generative AI: it's STILL not a robot (CIJ Summer 2025)
Paul Bradshaw
 
PPTX
How to Manage Large Scrollbar in Odoo 18 POS
Celine George
 
PPTX
How to Create Rental Orders in Odoo 18 Rental
Celine George
 
PPTX
Soil and agriculture microbiology .pptx
Keerthana Ramesh
 
PDF
'' IMPORTANCE OF EXCLUSIVE BREAST FEEDING ''
SHAHEEN SHAIKH
 
PDF
Dimensions of Societal Planning in Commonism
StefanMz
 
PDF
community health nursing question paper 2.pdf
Prince kumar
 
PPTX
Unit 2 COMMERCIAL BANKING, Corporate banking.pptx
AnubalaSuresh1
 
PPTX
Capitol Doctoral Presentation -July 2025.pptx
CapitolTechU
 
PPSX
HEALTH ASSESSMENT (Community Health Nursing) - GNM 1st Year
Priyanshu Anand
 
PPTX
How to Manage Promotions in Odoo 18 Sales
Celine George
 
PPTX
How to Set Maximum Difference Odoo 18 POS
Celine George
 
PPTX
STAFF DEVELOPMENT AND WELFARE: MANAGEMENT
PRADEEP ABOTHU
 
DIGESTION OF CARBOHYDRATES,PROTEINS,LIPIDS
raviralanaresh2
 
A PPT on Alfred Lord Tennyson's Ulysses.
Beena E S
 
BANDHA (BANDAGES) PPT.pptx ayurveda shalya tantra
rakhan78619
 
Talk on Critical Theory, Part II, Philosophy of Social Sciences
Soraj Hongladarom
 
People & Earth's Ecosystem -Lesson 2: People & Population
marvinnbustamante1
 
CHILD RIGHTS AND PROTECTION QUESTION BANK
Dr Raja Mohammed T
 
How to Configure Access Rights of Manufacturing Orders in Odoo 18 Manufacturing
Celine George
 
Generative AI: it's STILL not a robot (CIJ Summer 2025)
Paul Bradshaw
 
How to Manage Large Scrollbar in Odoo 18 POS
Celine George
 
How to Create Rental Orders in Odoo 18 Rental
Celine George
 
Soil and agriculture microbiology .pptx
Keerthana Ramesh
 
'' IMPORTANCE OF EXCLUSIVE BREAST FEEDING ''
SHAHEEN SHAIKH
 
Dimensions of Societal Planning in Commonism
StefanMz
 
community health nursing question paper 2.pdf
Prince kumar
 
Unit 2 COMMERCIAL BANKING, Corporate banking.pptx
AnubalaSuresh1
 
Capitol Doctoral Presentation -July 2025.pptx
CapitolTechU
 
HEALTH ASSESSMENT (Community Health Nursing) - GNM 1st Year
Priyanshu Anand
 
How to Manage Promotions in Odoo 18 Sales
Celine George
 
How to Set Maximum Difference Odoo 18 POS
Celine George
 
STAFF DEVELOPMENT AND WELFARE: MANAGEMENT
PRADEEP ABOTHU
 

Tutorial for RDF Graphs

  • 1. Chapter: 2 (Tutorial) 1 RDF Graphs: Give the RDF/XML, Notation 3, triples for the following sentences and also draw the RDF graph. 1. The lecture is attended by Kishoj, Pradeep, Mohan and Dipendra. RDF/XML: <rdf:RDF xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:ex = "http://example.org/" > <rdf:Description rdf:about="http://example.org/lecture"> <ex:isAttendedBy> <rdf:Bag> <rdf:li rdf:resource = "http://example.org/Kishoj"/> <rdf:li rdf:resource = "http://example.org/Pradeep"/> <rdf:li rdf:resource = "http://example.org/Mohan"/> <rdf:li rdf:resource = "http://example.org/Dipendra"/> </rdf:Bag> </ex:isAttendedBy> </rdf:Description> </rdf:RDF> Notation 3: @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>. @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>. @prefix ex: <http://example.org/>. ex:lecture ex:isAttendedBy _:bnode1. _:bnode1 rdf:type rdf:Bag; rdf:_1 ex:Kishoj; rdf:_2 ex:Pradeep; rdf:_3 ex:Mohan; rdf:_4 ex:Dipendra. Triples: _:bnode1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/1999/02/22-rdf- syntax-ns#Bag>. _:bnode1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#_1> <http://example.org/Kishoj>. _:bnode1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#_2> <http://example.org/Pradeep>. _:bnode1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#_3> <http://example.org/Mohan>. _:bnode1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#_4> <http://example.org/Dipendra>. <http://example.org/lecture> <http://example.org/isAttendedBy> _:bnode1.
  • 2. Chapter: 2 (Tutorial) 2 2. [RDF-Concept] is studied by Kishoj and Pradeep in order. RDF/XML: <rdf:RDF xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:ex = "http://example.org/" > <rdf:Description rdf:about="http://www.w3.org/TR/rdf-concepts/"> <ex:studiedBy> <rdf:Seq> <rdf:li rdf:resource = "http://example.org/Kishoj"/> <rdf:li rdf:resource = "http://example.org/Pradeep"/> </rdf:Seq> </ex:studiedBy> </rdf:Description> </rdf:RDF> Notation 3: @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>. @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>. @prefix ex: <http://example.org/>. <http://www.w3.org/TR/rdf-concepts/> ex:studiedBy _:bnode1. _:bnode1 rdf:type rdf:Seq; rdf:_1 ex:Kishoj; rdf:_2 ex:Pradeep. Triples: _:b1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/1999/02/22-rdf- syntax-ns#Seq>. _:b1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#_1> <http://example.org/Kishoj>. _:b1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#_2> <http://example.org/Pradeep>. <http://www.w3.org/TR/rdf-concepts/> <http://example.org/studiedBy> _:b1.
  • 3. Chapter: 2 (Tutorial) 3 3. The software Mobile Tracker can be downloaded from three links link1or link2 or link3. RDF/XML: <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:ex = "http://example.org/" > <rdf:Description rdf:about="http://example.org/MobileTraker"> <ex:sourceLocation> <rdf:Alt> <rdf:li rdf:resource = "http://example.org/Link1"/> <rdf:li rdf:resource = "http://example.org/Link2"/> <rdf:li rdf:resource = "http://example.org/Link3"/> </rdf:Alt> </ex:sourceLocation> </rdf:Description> </rdf:RDF> Notation 3: @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>. @prefix ex: <http://example.org/>. ex:MobileTraker ex:sourceLocation _:bnode1. _:bnode1 rdf:type rdf:Alt; rdf:_1 ex:Link1; rdf:_2 ex:Link2; rdf:_3 ex:Link3. Triples: _:bnode1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/1999/02/22-rdf- syntax-ns#Alt>. _:bnode1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#_1> <http://example.org/Link1>. _:bnode1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#_2> <http://example.org/Link2>. _:bnode1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#_3> <http://example.org/Link3>. <http://example.org/MobileTraker> <http://example.org/sourceLocation> _:bnode1.
  • 4. Chapter: 2 (Tutorial) 4 Convert the given graph to RDF/XML, Notation 3, turtle, triples and JSON. RDF/XML: <?xml version="1.0"?> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:ex="http://example.org/stuff/1.0/"> <rdf:Description rdf:about="http://www.w3.org/TR/rdf-syntax-grammar" dc:title="RDF/XML Syntax Specification (Revised)"> <ex:editor> <rdf:Description ex:fullName="Dave Beckett"> <ex:homePage rdf:resource="http://purl.org/net/dajobe/" /> </rdf:Description> </ex:editor> </rdf:Description> </rdf:RDF> Notation 3: @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>. @prefix dc: <http://purl.org/dc/elements/1.1/>. @prefix ex: <http://example.org/stuff/1.0/>. <http://www.w3.org/TR/rdf-syntax-grammar> ex:editor [ ex:fullName "Dave Beckett"; ex:homePage <http://purl.org/net/dajobe/> ]; dc:title "RDF/XML Syntax Specification (Revised)". Turtle: .ttl extension: @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>. @prefix dc: <http://purl.org/dc/elements/1.1/>.
  • 5. Chapter: 2 (Tutorial) 5 @prefix ex: <http://example.org/stuff/1.0/>. <http://www.w3.org/TR/rdf-syntax-grammar> dc:title "RDF/XML Syntax Specification (Revised)"; ex:editor [ ex:fullname "Dave Beckett"; ex:homePage <http://purl.org/net/dajobe/>]. Triples: <http://www.w3.org/TR/rdf-syntax-grammar> <http://purl.org/dc/elements/1.1/title> "RDF/XML Syntax Specification (Revised)". _:bnode1 <http://example.org/stuff/1.0/fullName> "Dave Beckett". _:bnode1 <http://example.org/stuff/1.0/homePage> <http://purl.org/net/dajobe/>. <http://www.w3.org/TR/rdf-syntax-grammar> <http://example.org/stuff/1.0/editor> _:bnode1. RDF/XML: <?xml version="1.0"?> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> <rdf:Seq rdf:about="http://example.org/favourite-fruit"> <rdf:li rdf:resource="http://example.org/banana"/> <rdf:li rdf:resource="http://example.org/apple"/> <rdf:li rdf:resource="http://example.org/pear"/> </rdf:Seq> </rdf:RDF> Tripes: .nt extension <http://example.org/favourite-fruit> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/1999/02/22-rdf-syntax-ns#Seq>. <http://example.org/favourite-fruit> <http://www.w3.org/1999/02/22-rdf-syntax-ns#_1> <http://example.org/banana>. <http://example.org/favourite-fruit> <http://www.w3.org/1999/02/22-rdf-syntax-ns#_2> <http://example.org/apple>. <http://example.org/favourite-fruit> <http://www.w3.org/1999/02/22-rdf-syntax-ns#_3> <http://example.org/pear>. Turtle to graph: @prefix : <http://example.org/stuff/1.0/>. @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>. :a :b [ rdf:first "apple"; rdf:rest [ rdf:first "banana"; rdf:rest rdf:nil ] ] .
  • 6. Chapter: 2 (Tutorial) 6 RDF/XML: <?xml version="1.0"?> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:ns="http://example.org/stuff/1.0/"> <rdf:Description rdf:about="http://example.org/stuff/1.0/a"> <ns:b> <rdf:Description> <rdf:first>apple</rdf:first> <rdf:rest> <rdf:Description> <rdf:first>banana</rdf:first> <rdf:rest rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#nil" /> </rdf:Description> </rdf:rest> </rdf:Description> </ns:b> </rdf:Description> </rdf:RDF> Triples: <http://example.org/stuff/1.0/a> <http://example.org/stuff/1.0/b> _:bnode1. _:bnode1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> "apple". _:bnode1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> _:bnode2. _:bnode2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> "banana". _:bnode2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> <http://www.w3.org/1999/02/22-rdf-syntax- ns#nil>.
  • 7. Chapter: 2 (Tutorial) 7 RDF collection of nodes using rdf:parseType="Collection" RDF/XML: <?xml version="1.0"?> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:ex="http://example.org/stuff/1.0/"> <rdf:Description rdf:about="http://example.org/basket"> <ex:hasFruit rdf:parseType="Collection"> <rdf:Description rdf:about="http://example.org/banana"/> <rdf:Description rdf:about="http://example.org/apple"/> <rdf:Description rdf:about="http://example.org/pear"/> </ex:hasFruit> </rdf:Description> </rdf:RDF> Notation 3: @prefix ex: <http://example.org/stuff/1.0/>. @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>. <http://example.org/basket> ex:hasFruit (<http://example.org/banana> <http://example.org/apple> <http://example.org/pear>). Triple: <http://example.org/basket> <http://example.org/stuff/1.0/hasFruit> _:bnode1. _:bnode1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> <http://example.org/banana>. _:bnode1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> <http://example.org/apple>. _:bnode1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> _:bnode2. _:bnode2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> <http://example.org/pear>. _:bnode2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> _:bnode3. _:bnode3 <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> <http://www.w3.org/1999/02/22-rdf-syntax- ns#nil>. Differentiate between two RDF/XML statement. 1. <?xml version="1.0"?> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> <rdf:Seq rdf:about="http://example.org/favourite-fruit"> <rdf:_1 rdf:resource="http://example.org/banana"/> <rdf:_2 rdf:resource="http://example.org/apple"/> <rdf:_3 rdf:resource="http://example.org/pear"/> </rdf:Seq>
  • 8. Chapter: 2 (Tutorial) 8 </rdf:RDF> 2. <?xml version="1.0"?> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> <rdf:Seq rdf:about="http://example.org/favourite-fruit"> <rdf:li rdf:resource="http://example.org/banana"/> <rdf:li rdf:resource="http://example.org/apple"/> <rdf:li rdf:resource="http://example.org/pear"/> </rdf:Seq> </rdf:RDF> Both are equivalent and produces same RDF graph as shown below in figure because rdf:li, special property element, is equivalent to rdf:_1, rdf:_2 in order. Complete example of rdf:datatype: RDF/XML: <?xml version="1.0"?> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:ex="http://example.org/stuff/1.0/"> <rdf:Description rdf:about="http://example.org/item01"> <ex:size rdf:datatype="http://www.w3.org/2001/XMLSchema#int">123</ex:size> </rdf:Description> </rdf:RDF> Triples: <http://example.org/item01> <http://example.org/stuff/1.0/size> "123"^^<http://www.w3.org/2001/XMLSchema#int>. Notation 3: @prefix eg: <http://example.org/>. @prefix ex: <http://example.org/stuff/1.0/>. eg:item01 ex:size "123". Reification: statements about statements. 1. {:John :Loves :Mary} :accordingTo :Bill. 2. Mary claims that John’s name is “John Smith”. 3. Romeo thought that {Juliet was dead}. Romeo thought that Juliet was dead.
  • 9. Chapter: 2 (Tutorial) 9 <?xml version="1.0"?> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:ex="http://example.org/#"> <rdf:Description rdf:about="http://example.org/#romeo"> <ex:thought> <rdf:Description> <rdf:subject> <rdf:Description rdf:about="http://example.org/#juliet"/> </rdf:subject> <rdf:predicate> <rdf:Description rdf:about="http://www.w3.org/1999/02/22-rdf-syntax-ns#type"/> </rdf:predicate> <rdf:object> <rdf:Description rdf:about="http://example.org/#dead"/> </rdf:object> </rdf:Description> </ex:thought> </rdf:Description> </rdf:RDF> <?xml version="1.0"?> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:ex="http://example.org/#"> <rdf:Description rdf:about="http://example.org/romeo"> <ex:thought> <rdf:Description> <rdf:subject> <rdf:Description rdf:about="http://example.org/juliet"/> </rdf:subject> <rdf:predicate> <rdf:Description rdf:about="http://example.org/was"/> </rdf:predicate> <rdf:object> <rdf:Description rdf:about="http://example.org/dead"/> </rdf:object> </rdf:Description> </ex:thought> </rdf:Description> </rdf:RDF> Notation 3:
  • 10. Chapter: 2 (Tutorial) 10 @prefix ex: <http://example.org/#>. @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>. ex:romeo ex:thought _:bnode1. _:bnode1 rdf:subject ex:Juliet; rdf:object ex:dead; rdf:predicate rdf:type. Triples: <http://example.org/#romeo> <http://example.org/#thought> _:bnode1. _:bnode1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://example.org/#Juliet>. _:bnode1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.w3.org/1999/02/22-rdf- syntax-ns#type>. _:bnode1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://example.org/#dead>. John loves Mary, according to Bill. RDF/XML: <?xml version="1.0"?> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:ex="http://example.org/"> <rdf:Description rdf:about="http://example.org/bill"> <ex:thought> <rdf:Description> <rdf:subject> <rdf:Description rdf:about="http://example.org/john"/> </rdf:subject> <rdf:predicate> <rdf:Description rdf:about="http://example.org/love"/> </rdf:predicate> <rdf:object> <rdf:Description rdf:about="http://example.org/mary"/> </rdf:object> </rdf:Description> </ex:thought> </rdf:Description> </rdf:RDF> Notation 3: @prefix ex: <http://example.org/>. @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>. ex:bill ex:thought _:bnode1. _:bnode1 rdf:subject ex:john;
  • 11. Chapter: 2 (Tutorial) 11 rdf:predicate ex:love; rdf:object ex:mary. Triples: _:bnode1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://example.org/john>. _:bnode1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://example.org/love>. _:bnode1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://example.org/mary>. <http://example.org/bill> <http://example.org/thought> _:bnode1. Mary claims that John’s name is “John Smith”. 〈<#myStatement>, rdf:type, rdf:Statement〉 〈<#myStatement>, rdf:subject, <#john>〉 〈<#myStatement>, rdf:predicate, <#hasName>〉 〈<#myStatement>, rdf:object, ”John Smith”〉 〈<#mary>, <#claims>, <#myStatement>〉 RDF/XML: <?xml version="1.0"?> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:ex="http://example.org/"> <rdf:Description rdf:about="http://example.org/mary"> <ex:claim> <rdf:Description> <rdf:subject> <rdf:Description rdf:about="http://example.org/john"/> </rdf:subject> <rdf:predicate> <rdf:Description rdf:about="http://example.org/hasName"/> </rdf:predicate> <rdf:object> John Smith </rdf:object> </rdf:Description> </ex:claim> </rdf:Description> </rdf:RDF> Notation 3: @prefix ex: <http://example.org/>. @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>. ex:mary ex:claim _:bnode1. _:bnode1 rdf:subject ex:john; rdf:predicate ex:hasName; rdf:object “John Smith”. Triples: _:bnode1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://example.org/john>. _:bnode1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://example.org/hasName>. _:bnode1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> “John Smith”. <http://example.org/mary> <http://example.org/claim> _:bnode1.
  • 12. Chapter: 2 (Tutorial) 12 RDF Entailment: <http://example.org/#john> rdf:type <http://example.org/#Student> <http://example.org/#> rdfs:subClassOf <http://example.org/#Person> Entails: <http://example.org/#john> rdf:type <http://example.org/#Person> Triples: <http://example.org/#john> <http://example.org/#hasName> "John". <http://example.org/#john> <http://example.org/#marriedTo> <http://example.org/#mary>. RDF/XML: <?xml version="1.0"?> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:ex="http://example.org/#"> <rdf:Description rdf:about="http://example.org/#john"> <ex:hasName>John</ex:hasName> <ex:marriedTo rdf:resource = "http://example.org/#mary"/> </rdf:Description> </rdf:RDF> Notation 3: @prefix ex: <http://example.org/#>. @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>. ex:john ex:hasName "John"; ex:marriedTo ex:mary. Exercise 1.2: Write the following part of an RDF document in Turtle syntax: <?xml version="1.0"?>
  • 13. Chapter: 2 (Tutorial) 13 <rdf:RDF xmlns:owl="http://www.w3.org/2002/07/owl#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> <rdf:Description rdf:about="Jack"> <rdf:type> <owl:Class> <owl:intersectionOf rdf:parseType="Collection"> <owl:Class rdf:about="Person"/> <owl:Class> <owl:complementOf rdf:resource="Parent"/> </owl:Class> </owl:intersectionOf> </owl:Class> </rdf:type> </rdf:Description> </rdf:RDF> Turtle syntax: @prefix owl: <http://www.w3.org/2002/07/owl#>. @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>. <Jack> a _:bnode1. <Person> a owl:Class. _:bnode2 a owl:Class; owl:complementOf <Parent>. _:bnode1 a owl:Class; owl:intersectionOf (<Person> _:bnode2). Triples: _:bnode1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2002/07/owl#Class>. <Person> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2002/07/owl#Class>. _:bnode2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> <Person>. _:bnode2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> _:bnode3. _:bnode1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2002/07/owl#Class>. _:bnode4 <http://www.w3.org/2002/07/owl#complementOf> <Parent>. _:bnode3 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> _:bnode4. _:bnode3 <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> <http://www.w3.org/1999/02/22-rdf-syntax- ns#nil>. _:bnode1 <http://www.w3.org/2002/07/owl#intersectionOf> _:bnode2. <Jack> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> _:bnode1. Exercise 1.1 Write the following part of an RDF document in Turtle syntax: <rdf:RDF
  • 14. Chapter: 2 (Tutorial) 14 xmlns:owl="http://www.w3.org/2002/07/owl#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" > <owl:Class rdf:about="Parent"> <owl:equivalentClass> <owl:Restriction> <owl:onProperty rdf:resource="hasChild"/> <owl:someValuesFrom rdf:resource="Person"/> </owl:Restriction> </owl:equivalentClass> </owl:Class> </rdf:RDF> Notation 3: @prefix owl: <http://www.w3.org/2002/07/owl#>. @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>. <Parent> a owl:Class; owl:equivalentClass _:bnode1. _:bnode1 rdf:type owl:Restriction; owl:onProperty <hasChild>; owl:someValuesFrom <Person>. Triples: <Parent> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2002/07/owl#Class>. _:bnode1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2002/07/owl#Restriction>. _:bnode1 <http://www.w3.org/2002/07/owl#onProperty> <hasChild>. _:bnode1 <http://www.w3.org/2002/07/owl#someValuesFrom> <Person>. <Parent> <http://www.w3.org/2002/07/owl#equivalentClass> _:bnode1. Exercise 1.5: Write the following Turtle triples in RDF/XML syntax: ([] can be used in Turtle for a blank node.) @prefix owl: <http://www.w3.org/2002/07/owl#>. @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>. [] rdf:type owl:NegativePropertyAssertion; owl:sourceIndividual :Bill; owl:assertionProperty :hasDaughter; owl:targetIndividual :Susan. RDF/XML: <?xml version="1.0"?> <rdf:RDF xmlns:owl="http://www.w3.org/2002/07/owl#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax- ns#">
  • 15. Chapter: 2 (Tutorial) 15 <owl:NegativePropertyAssertion> <owl:sourceIndividual rdf:resource="#Bill" /> <owl:assertionProperty rdf:resource="#hasDaughter" /> <owl:targetIndividual rdf:resource="#Susan" /> </owl:NegativePropertyAssertion> </rdf:RDF> Triples: _:bnode1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2002/07/owl#NegativePropertyAssertion>. _:bnode1 <http://www.w3.org/2002/07/owl#sourceIndividual> <#Bill>. _:bnode1 <http://www.w3.org/2002/07/owl#assertionProperty> <#hasDaughter>. _:bnode1 <http://www.w3.org/2002/07/owl#targetIndividual> <#Susan>. Exercise 1.4 Write the following Turtle triple in RDF/XML syntax: @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>. @prefix ex: <http://example.org/>. @prefix xsd: <http://www.w3.org/2001/XMLSchema#>. ex:Person rdfs:comment "Represents the set of all people."^^xsd:string . RDF/XML: <?xml version="1.0"?> <rdf:RDF xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:ex="http://example.org/" xmlns:xsd="http://www.w3.org/2001/XMLSchema#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> <rdf:Description rdf:about="http://example.org/Person"> <rdfs:comment rdf:datatype="http://www.w3.org/2001/XMLSchema#string"> Represents the set of all people. </rdfs:comment> </rdf:Description> </rdf:RDF>
  • 16. Chapter: 2 (Tutorial) 16 Triples: <http://example.org/Person> <http://www.w3.org/2000/01/rdf-schema#comment> "Represents the set of all people."^^<http://www.w3.org/2001/XMLSchema#string>.