OpenHPI KnoEng 02 Part1 8
OpenHPI KnoEng 02 Part1 8
This file is licensed under the Creative Commons Attribution-NonCommercial 3.0 (CC BY-NC 3.0)
2
Knowledge Engineering with Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
4
Knowledge Engineering with Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
6
Johannes Osterhoff::
Knowledge Engineering with Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
La trahison des pommes (2011)
What`s the difference?
7
Knowledge Engineering with Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
Semiotic Triangle
8
Concept
symbolizes refers to
Symbol Object
stands for
„apple“
Ogden, Richards: Semiotic Triangle, 1923
Knowledge Engineering with Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
Semiotic Triangle
8
shared concept
Concept
symbolizes refers to
Symbol Object
stands for
„apple“
Ogden, Richards: Semiotic Triangle, 1923
Knowledge Engineering with Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
Semiotic Triangle
9
shared concept
Concept
symbolizes refers to
Symbol Object
stands for
„apple“
Ogden, Richards: Semiotic Triangle, 1923
Knowledge Engineering with Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
Semiotic Triangle
9
shared concept is a
substitute for
Concept
symbolizes refers to
Symbol Object
stands for
„apple“
Ogden, Richards: Semiotic Triangle, 1923
Knowledge Engineering with Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
Names in the Web...
10
Knowledge Engineering with Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
Uniform Resource Identifier
11
■ A Uniform Resource Identifier (URI) defines a simple and extensible schema for
worldwide unique identification of abstract or physical resources (RFC 3986).
Knowledge Engineering with Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
Uniform Resource Identifier
11
■ A Uniform Resource Identifier (URI) defines a simple and extensible schema for
worldwide unique identification of abstract or physical resources (RFC 3986).
Knowledge Engineering with Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
Uniform Resource Identifier
11
■ A Uniform Resource Identifier (URI) defines a simple and extensible schema for
worldwide unique identification of abstract or physical resources (RFC 3986).
Knowledge Engineering with Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
Uniform Resource Identifier
11
■ A Uniform Resource Identifier (URI) defines a simple and extensible schema for
worldwide unique identification of abstract or physical resources (RFC 3986).
Knowledge Engineering with Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
Uniform Resource Identifier
11
■ A Uniform Resource Identifier (URI) defines a simple and extensible schema for
worldwide unique identification of abstract or physical resources (RFC 3986).
Knowledge Engineering with Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
Uniform Resource Identifier
11
■ A Uniform Resource Identifier (URI) defines a simple and extensible schema for
worldwide unique identification of abstract or physical resources (RFC 3986).
Knowledge Engineering with Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
Uniform Resource Identifier
11
■ A Uniform Resource Identifier (URI) defines a simple and extensible schema for
worldwide unique identification of abstract or physical resources (RFC 3986).
Knowledge Engineering with Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
12
Knowledge Engineering with Semantic Web Technologies , Dr. Harald Sack, http://commons.wikimedia.org/wiki/File:Eiffel_tower_from_trocadero.jpg
Hasso-Plattner-Institut, Universität Potsdam
Resource
12
Knowledge Engineering with Semantic Web Technologies , Dr. Harald Sack, http://commons.wikimedia.org/wiki/File:Eiffel_tower_from_trocadero.jpg
Hasso-Plattner-Institut, Universität Potsdam
URI Resource
http://www.tour-eiffel.fr/index.html
12
identifies
Knowledge Engineering with Semantic Web Technologies , Dr. Harald Sack, http://commons.wikimedia.org/wiki/File:Eiffel_tower_from_trocadero.jpg
Hasso-Plattner-Institut, Universität Potsdam
URI Resource
http://www.tour-eiffel.fr/index.html
12
identifies
represents
Representation (stands for)
Metadata:
Content-type: text/html
Data:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Le site officiel de la Tour Eiffel</title>
...
</html>
Knowledge Engineering with Semantic Web Technologies , Dr. Harald Sack, http://commons.wikimedia.org/wiki/File:Eiffel_tower_from_trocadero.jpg
Hasso-Plattner-Institut, Universität Potsdam
Representation and
Presentation
13
Metadata:
Content-type: text/html
Data: defines
<!DOCTYPE HTML PUBLIC "-//W3C//DTD
HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html> Presentation
<head>
<title>Le site officiel de la Tour Eiffel</title>
...
</html>
Representation
Knowledge Engineering with Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
HTTP Request / Response
14
Browser sends
HTTP Request
User clicks
Knowledge Engineering with Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
HTTP Request / Response
15
Knowledge Engineering with Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
Designator and Designatum
16
Designator
Designatum
Knowledge Engineering with Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
2. Semantic Web Basisarchitektur
2.1 Uniform Resource Identifier - URI
René Magritte:
Knowledge Engineering with Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
La trahison des images (1928)
18
□ A resource can be described (designated) via Metadata
□ Even if the resource itself cannot be delivered from the web
server, probably its representation might be available that
describes the resource sufficiently.
Knowledge Engineering with Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
URI, Resource and
Metadata Resource:
Eiffel Tower
19 URI
http://www.tour-eiffel.fr/index.html
identifies
Representation
Metadata: describes
Content-type: text/html
Data: represents (designates)
<!DOCTYPE HTML PUBLIC "-//W3C//DTD
HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
Resource:
<html> (stands for) Information Eiffel Tower
<head>
<title>Le site officiel de la Tour Eiffel</title> about Metadata
... the Eiffel Tower
</html>
(stands for)
Knowledge Engineering with Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
20
This file is licensed under the Creative Commons Attribution-NonCommercial 3.0 (CC BY-NC 3.0)
2
4
Resource: Eiffel Tower
URI
http://www.tour-eiffel.fr/index.html
identifies
(stands for)
Knowledge Engineering with Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
Uniform Resource Identifier
5 ■ URI combines
Address
□ Address (Locator)
□ Uniform Resource Locator (URL, RFC 1738)
□ denotes, where a resource can be found in the Web by stating its
primary access mechanism
□ might change during life cycle
Name
Knowledge Engineering with Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
Uniform Resource Identifier
5 ■ URI combines
Address
□ Address (Locator)
□ Uniform Resource Locator (URL, RFC 1738)
□ denotes, where a resource can be found in the Web by stating its
primary access mechanism
□ might change during life cycle
□ Identity (Name)
Name
□ Uniform Resource Name (URN, RFC 2141)
□ persistent identifier for a Web resource
□ remains unchanged during life cycle
Knowledge Engineering with Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
URI - Generic Syntax
6
■ US-ASCII Encoding
■ Percent Encoding for reserved characters, or characters that do not exist in US-ASCII
encoding existieren
pct-encoded = "%" HEXDIG HEXDIG
■ Reserved characters with special function
reserved = gen-delims / sub-delims
gen-delims = ":" / "/" / "?" / "#" / "[" / "]" / "@“
sub-delims = "!" / "$" / "&" / "'" / "(" / ")" / "*" / "+" / "," / ";" / "="
■ Permitted characters
unreserved = ALPHA / DIGIT / "-" / "." / "_" / "~"
■ Extension to Universal Character Code (Unicode/ISO 10646)
□ Internationalized Resource Identifier (IRI, RFC 3987)
e.g.:
Knowledge Engineering with Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
URI - Generic Syntax
7
URI = schema"://"[userinfo"@"]host[:port][path]["?"query]["#"fragment]
Knowledge Engineering with Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
URI - Generic Syntax
7
URI = schema"://"[userinfo"@"]host[:port][path]["?"query]["#"fragment]
Knowledge Engineering with Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
URI - Generic Syntax
7
URI = schema"://"[userinfo"@"]host[:port][path]["?"query]["#"fragment]
Knowledge Engineering with Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
URI - Generic Syntax
7
URI = schema"://"[userinfo"@"]host[:port][path]["?"query]["#"fragment]
Knowledge Engineering with Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
URI - Generic Syntax
7
URI = schema"://"[userinfo"@"]host[:port][path]["?"query]["#"fragment]
Knowledge Engineering with Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
URI - Generic Syntax
7
URI = schema"://"[userinfo"@"]host[:port][path]["?"query]["#"fragment]
Knowledge Engineering with Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
URI - Generic Syntax
7
URI = schema"://"[userinfo"@"]host[:port][path]["?"query]["#"fragment]
Knowledge Engineering with Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
URI - Generic Syntax
7
URI = schema"://"[userinfo"@"]host[:port][path]["?"query]["#"fragment]
Knowledge Engineering with Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
8
What if a URI for a resource does not exist?
■ Use separate URIs for the resource (Designatum) and its documentation
(Designator) via
□ Content Negotiation or
□ URI references (i.e. via "#" fragment identifier)
Knowledge Engineering with Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
Content Negotiation
9
Let‘s try an example:
■ I want to have information about the Eiffel Tower from DBpedia
http://dbpedia.org/resource/Eiffel_Tower
Knowledge Engineering with Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
Content Negotiation
9
Let‘s try an example:
■ I want to have information about the Eiffel Tower from DBpedia
http://dbpedia.org/resource/Eiffel_Tower
1
URI represents the Designatum
HTTP GET request
Accept Header: text/html
Knowledge Engineering with Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
Content Negotiation
9
Let‘s try an example:
■ I want to have information about the Eiffel Tower from DBpedia
http://dbpedia.org/resource/Eiffel_Tower
1
URI represents the Designatum
HTTP GET request
Accept Header: text/html
http://dbpedia.org/page/Eiffel_Tower
Knowledge Engineering with Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
Content Negotiation
9
Let‘s try an example:
■ I want to have information about the Eiffel Tower from DBpedia
http://dbpedia.org/resource/Eiffel_Tower
1
URI represents the Designatum
HTTP GET request
Accept Header: text/html
http://dbpedia.org/page/Eiffel_Tower
Knowledge Engineering with Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
Content Negotiation
9
Let‘s try an example:
■ I want to have information about the Eiffel Tower from DBpedia
http://dbpedia.org/resource/Eiffel_Tower
1
URI represents the Designatum
HTTP GET request
Accept Header: text/html
http://dbpedia.org/page/Eiffel_Tower
9
Let‘s try an example:
■ I want to have information about the Eiffel Tower from DBpedia
http://dbpedia.org/resource/Eiffel_Tower
1
URI represents the Designatum
HTTP GET request
Accept Header: text/html
http://dbpedia.org/page/Eiffel_Tower
■ I want to have machine readable information about the Eiffel Tower from
DBpedia
http://dbpedia.org/resource/Eiffel_Tower
Knowledge Engineering with Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
Content Negotiation
■ I want to have machine readable information about the Eiffel Tower from
DBpedia
http://dbpedia.org/resource/Eiffel_Tower
1
HTTP GET request URI represents the Designatum
Accept Header: application/rdf+xml
Knowledge Engineering with Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
Content Negotiation
■ I want to have machine readable information about the Eiffel Tower from
DBpedia
http://dbpedia.org/resource/Eiffel_Tower
1
HTTP GET request URI represents the Designatum
Accept Header: application/rdf+xml
http://dbpedia.org/page/Eiffel_Tower
Knowledge Engineering with Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
Content Negotiation
■ I want to have machine readable information about the Eiffel Tower from
DBpedia
http://dbpedia.org/resource/Eiffel_Tower
1
HTTP GET request URI represents the Designatum
Accept Header: application/rdf+xml
http://dbpedia.org/page/Eiffel_Tower
Knowledge Engineering with Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
Content Negotiation
■ I want to have machine readable information about the Eiffel Tower from
DBpedia
http://dbpedia.org/resource/Eiffel_Tower
1
HTTP GET request URI represents the Designatum
Accept Header: application/rdf+xml
http://dbpedia.org/page/Eiffel_Tower
■ I want to have machine readable information about the Eiffel Tower from
DBpedia
http://dbpedia.org/resource/Eiffel_Tower
1
HTTP GET request URI represents the Designatum
Accept Header: application/rdf+xml
http://dbpedia.org/page/Eiffel_Tower
e.g.: http://hpi.uni-potsdam.de/harald_foaf.rdf
Designator
FOAF Document
with information
about me
identifies me
http://hpi.uni-potsdam.de/harald_foaf.rdf#me
Designatum
Knowledge Engineering with Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
Next
sect
ion
12
This file is licensed under the Creative Commons Attribution-NonCommercial 3.0 (CC BY-NC 3.0)
2
odu
ctio
n
Knowledge Engineering with Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
Knowledge Representation
... a simple example
■ How do I represent
„Harald Sack has the phone number ++49 (331) 5509-927“ in XML?
Knowledge Engineering with Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
Knowledge Representation
... a simple example
■ How do I represent
„Harald Sack has the phone number ++49 (331) 5509-927“ in XML?
<phonenr>
<owner>Harald Sack</owner>
<number>++49 (331) 5509-927</number>
</phonenr>
Knowledge Engineering with Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
Knowledge Representation
... a simple example
■ How do I represent
„Harald Sack has the phone number ++49 (331) 5509-927“ in XML?
<phonenr>
<owner>Harald Sack</owner>
<number>++49 (331) 5509-927</number>
</phonenr>
Knowledge Engineering with Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
Knowledge Representation
... a simple example
■ How do I represent
„Harald Sack has the phone number ++49 (331) 5509-927“ in XML?
<phonenr>
<owner>Harald Sack</owner>
<number>++49 (331) 5509-927</number>
</phonenr>
Knowledge Engineering with Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
Knowledge Representation
... a simple example
■ How do I represent
„Harald Sack has the phone number ++49 (331) 5509-927“ in XML?
<phonenr>
<owner>Harald Sack</owner>
<number>++49 (331) 5509-927</number>
</phonenr>
<phonenr>
<owner>Harald Sack</owner>
<number>++49 (331) 5509-927</number>
</phonenr>
XSLT Transformation
XML Schema A <xsl:stylesheet version="1.0”
xmlns:xsl="http://....Transform"
<xsl:template match="/">
....
</xsl:template>
</xsl:stylesheet>
XML Schema B
<person name=“Harald Sack“>
<phonenr>49 (331) 5509-927</phonenr>
</person>
Knowledge Engineering with Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
Knowledge Representation
... a simple example
■ How do I represent:
„Harald Sack has the phone number ++49 (331) 5509-927“
Harald Sack
Knowledge Engineering with Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
Knowledge Representation
... a simple example
■ How do I represent:
„Harald Sack has the phone number ++49 (331) 5509-927“
Harald Sack
has the phone number
Knowledge Engineering with Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
Knowledge Representation
... a simple example
■ How do I represent:
„Harald Sack has the phone number ++49 (331) 5509-927“
Harald Sack
has the phone number
++49 (331) 5509-927
Knowledge Engineering with Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
Knowledge Representation
... a simple example
■ How do I represent:
„Harald Sack has the phone number ++49 (331) 5509-927“
■ Intuitive knowledge representation with directed graphs
Knowledge Engineering with Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
Knowledge Representation
... a simple example
■ How do I represent:
„Harald Sack has the phone number ++49 (331) 5509-927“
■ Intuitive knowledge representation with directed graphs
Knowledge Engineering with Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
9
D F
R
Knowledge Engineering with Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
Resource
10
Description
Framework
Resource
■ can be everything (in principle)...
■ must be uniquely identified and be referencable
■ ...simply via URI
Knowledge Engineering with Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
Resource
11
Description
Framework
Description
■ = Descriptions of resources
■ ...via representing properties and relationships among resources
■ ...relationships can be represented as graphs
Knowledge Engineering with Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
Resource
12
Description
Framework
Framework
■ = Combination of web based protocols (URI, HTTP, XML,...)
■ based on formal model (semantics)
■ defines all allowed relationships among resources
Knowledge Engineering with Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
Resource
13
Description
Framework
Harald Sack
Knowledge Engineering with Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
Resource
14
Description
Framework
Knowledge Engineering with Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
Resource
16
Description
Framework
• Statements (RDF-Triple):
Subject
+
Property + Object / Value
Knowledge Engineering with Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
Resource
17
Description
Framework
Constituents of the RDF-Graph
• URI:
• to reference resources uniquely
http://harald.sack.de/foaf.rdf#harald http://harald.blogspot.com/
Subject Object
http://xmlns.com/foaf/0.1/weblog
Property
Knowledge Engineering with Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
Resource
18
Description
Framework
Constituents of the RDF-Graph
• Literals:
• describe data values that do not have a separate existence
• strings, interpretation via datatype
http://harald.sack.de/foaf.rdf#harald ++49-331-5509-927
S O
http://xmlns.com/foaf/0.1/phone
P
Knowledge Engineering with Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
Resource
19
Description
Framework
Constituents of the RDF-Graph
• Literals:
• typed literals can be expressed via XML Schema datatypes
• Namespace for typed literals: http://www.w3.org/2001/XMLSchema#
• Example: “Semantics“^^<http://www.w3.org/2001/XMLSchema#string>
Knowledge Engineering with Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
http://www.w3.org/TR/2013/WD-rdf11-concepts-20130115/#xsd-datatypes
20
Knowledge Engineering with Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
http://www.w3.org/TR/2013/WD-rdf11-concepts-20130115/#xsd-datatypes
20
Knowledge Engineering with Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
Resource
21
Description
Framework
Constituents of the RDF-Graph
• Blank Nodes:
• denote existence of an individual with specific attributes, but without
providing an identification or reference
http://dbpedia.org/ontology/Person
O
S
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
P
Knowledge Engineering with Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
Resource
22
Description
Framework
RDF Representations
Knowledge Engineering with Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
Resource
22
Description
Framework
RDF Representations
• Node-Edge-Node Triple
Literal
http://xmlns.com/foaf/0.1/phone ++49-331-5509-927
http://harald.sack.de/foaf.rdf#harald
Resource
Resource
http://xmlns.com/foaf/0.1/weblog http://harald.blogspot.com/
Knowledge Engineering with Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
Resource
Description
Framework
23 Literal
http://xmlns.com/foaf/0.1/phone ++49-331-5509-927
http://harald.sack.de/foaf.rdf#harald
Resource
Resource
http://xmlns.com/foaf/0.1/weblog http://harald.blogspot.com/
• N-Triples Notation
• URIs/IRIs in angle brackets
• Literals in quotation marks
• Triple ends with a period
<http://harald.sack.de/foaf.rdf#harald> <http://xmlns.com/foaf/0.1/phone> “+
+49-331-5509-927“ .
<http://harald.sack.de/foaf.rdf#harald> <http://xmlns.com/foaf/0.1/weblog>
<http://harald.blogspot.com/> .
Knowledge Engineering with Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
Resource
Description
Framework
24 Literal
http://xmlns.com/foaf/0.1/phone ++49-331-5509-927
http://harald.sack.de/foaf.rdf#harald
Resource
Resource
http://xmlns.com/foaf/0.1/weblog http://harald.blogspot.com/
Knowledge Engineering with Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
Resource
Description
Framework
25
RDF Representations
• RDF/XML Notation
RDF Representations S
• RDF/XML Notation
RDF Representations S P
• RDF/XML Notation
RDF Representations S P O
• RDF/XML Notation
RDF Representations
• JSON-LD Notation (RDF 1.1)
{
"http://harald.sack.de/foaf.rdf#harald" : {
"http://xmlns.com/foaf/0.1/phone" : [ { "value" : "++49-331-5509-927",
"type" : "literal" } ]
}
{
"http://xmlns.com/foaf/0.1/weblog" : [ { "value" : "http://harald.blogspot.com/",
"type" : "uri" } ]
}
}
Knowledge Engineering with Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
Resource
Description
Framework
26
RDF Representations S P O
{
"http://harald.sack.de/foaf.rdf#harald" : {
"http://xmlns.com/foaf/0.1/phone" : [ { "value" : "++49-331-5509-927",
"type" : "literal" } ]
}
{
"http://xmlns.com/foaf/0.1/weblog" : [ { "value" : "http://harald.blogspot.com/",
"type" : "uri" } ]
}
}
Knowledge Engineering with Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
Resource
Description
Framework
27 Literal
http://xmlns.com/foaf/0.1/phone ++49-331-5509-927
http://harald.sack.de/foaf.rdf#harald
Resource
Resource
http://xmlns.com/foaf/0.1/weblog http://harald.blogspot.com/
http://www.easyrdf.org/converter
Knowledge Engineering with Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
Sim
28
ple
Fac
ts i
n R
DF
This file is licensed under the Creative Commons Attribution-NonCommercial 3.0 (CC BY-NC 3.0)
2
Sim
ple
Fac
wit ts i
h T n R
URT DF
LE
http://xmlns.com/foaf/0.1/phone ++49-331-5509-527
http://harald.sack.de/foaf.rdf#harald
Resource
Resource
http://xmlns.com/foaf/0.1/weblog http://harald.blogspot.com/
<http://harald.sack.de/foaf.rdf#harald> <http://xmlns.com/foaf/0.1/phone> “+
+49-331-5509-527“ .
<http://harald.sack.de/foaf.rdf#harald> <http://xmlns.com/foaf/0.1/weblog> <http://
semweb2014.blogspot.com/> .
http://xmlns.com/foaf/0.1/phone ++49-331-5509-527
http://harald.sack.de/foaf.rdf#harald
Resource
Resource
http://xmlns.com/foaf/0.1/weblog http://harald.blogspot.com/
http://xmlns.com/foaf/0.1/phone ++49-331-5509-527
http://harald.sack.de/foaf.rdf#harald
Resource
Resource
http://xmlns.com/foaf/0.1/weblog http://harald.blogspot.com/
http://xmlns.com/foaf/0.1/phone ++49-331-5509-527
http://harald.sack.de/foaf.rdf#harald
Resource
Resource
http://xmlns.com/foaf/0.1/weblog http://harald.blogspot.com/
http://xmlns.com/foaf/0.1/phone ++49-331-5509-527
http://harald.sack.de/foaf.rdf#harald
Resource
Resource
http://xmlns.com/foaf/0.1/weblog http://harald.blogspot.com/
http://xmlns.com/foaf/0.1/phone ++49-331-5509-527
http://harald.sack.de/foaf.rdf#harald
Resource
Resource
http://xmlns.com/foaf/0.1/weblog http://harald.blogspot.com/
http://xmlns.com/foaf/0.1/phone ++49-331-5509-527
http://harald.sack.de/foaf.rdf#harald
Resource
Resource
http://xmlns.com/foaf/0.1/weblog http://harald.blogspot.com/
http://xmlns.com/foaf/0.1/phone ++49-331-5509-527
http://harald.sack.de/foaf.rdf#harald
Resource
Resource
http://xmlns.com/foaf/0.1/weblog http://harald.blogspot.com/
file http://harald.sack.de/foaf.rdf
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
http://xmlns.com/foaf/0.1/phone ++49-331-5509-527
http://harald.sack.de/foaf.rdf#harald
Resource
Resource
http://xmlns.com/foaf/0.1/weblog http://harald.blogspot.com/
file http://harald.sack.de/foaf.rdf
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
http://xmlns.com/foaf/0.1/phone ++49-331-5509-527
http://harald.sack.de/foaf.rdf#harald
Resource
Resource
http://xmlns.com/foaf/0.1/weblog http://harald.blogspot.com/
file http://harald.sack.de/foaf.rdf
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
http://xmlns.com/foaf/0.1/phone ++49-331-5509-527
http://harald.sack.de/foaf.rdf#harald
Resource
Resource
http://xmlns.com/foaf/0.1/weblog http://harald.blogspot.com/
http://xmlns.com/foaf/0.1/phone ++49-331-5509-527
http://harald.sack.de/foaf.rdf#harald
Resource
Resource
http://xmlns.com/foaf/0.1/weblog http://harald.blogspot.com/
http://xmlns.com/foaf/0.1/phone ++49-331-5509-527
http://harald.sack.de/foaf.rdf#harald
Resource
Resource
http://xmlns.com/foaf/0.1/weblog http://harald.blogspot.com/
http://harald.sack.de/foaf.rdf#harald foaf:weblog
Resource http://semweb2013.blogspot.com/
foaf:weblog
http://semweb2012.blogspot.com/
http://harald.sack.de/foaf.rdf#harald foaf:weblog
Resource http://semweb2013.blogspot.com/
foaf:weblog
http://semweb2012.blogspot.com/
http://harald.sack.de/foaf.rdf#harald foaf:weblog
Resource http://semweb2013.blogspot.com/
foaf:weblog
http://semweb2012.blogspot.com/
http://hpi-web.de/Lecture#name
Knowledge
Engineering
http://hpi-web.de/Spring14#KE
4
http://hpi-web.de/Lecture#hours
• Typed Literals
<http://hpi.web.de/Spring14#KE>
lec:name “Knowledge Engineering“^^<http://www.w3c.org/2001/XMLSchema#string> ;
lec:hours “4“^^<http://www.w3c.org/2001/XMLSchema#integer> .
http://hpi-web.de/Lecture#name
Knowledge
Engineering
http://hpi-web.de/Spring14#KE
4
http://hpi-web.de/Lecture#hours
• Typed Literals
<http://hpi.web.de/Spring14#KE>
@prefix lv: <http://hpi-web.de/Lecture#> .
lec:name “Knowledge Engineering“^^<http://www.w3c.org/2001/XMLSchema#string> ;
lec:hours “4“^^<http://www.w3c.org/2001/XMLSchema#integer> .
<http://hpi.web.de/Spring14#KE> lec:name “Semantic Web Technologies“ ;
lec:hours 4 .
http://hpi-web.de/Lecture#name Knowledge
Engineering
http://hpi-web.de/Spring14#KE
http://hpi-web.de/Lecture#name Knowledge
Engineering
http://hpi-web.de/Spring14#KE
http://hpi-web.de/Lecture#room
HS3
http://hpi-web.de/Lecture#date
Tue 13.30-15.00
http://hpi-web.de/Lecture#name Knowledge
Engineering
http://hpi-web.de/Spring14#KE
http://hpi-web.de/Lecture#room
HS3
http://hpi-web.de/Lecture#date http://hpi-web.de/Lecture#room
http://hpi-web.de/Lecture#date
Wed 13.30-15.00
Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
Resource
Description
Framework
11
http://hpi-web.de/Lecture#name Knowledge
Engineering
http://hpi-web.de/Spring14#KE
http://hpi-web.de/Lecture#room
HS3
http://hpi-web.de/Lecture#date http://hpi-web.de/Lecture#room
http://hpi-web.de/Lecture#date
http://hpi-web.de/Spring14#KE
hpi-lv:takesPlace
hpi-lv:room
HS3
hpi-lv:takesPlace
hpi-lv:date
hpi-lv:room
Tue 13.30-15.00
H-E.52
hpi-lv:date
Blank Nodes
• Blank Nodes (Bnodes) can be introduced to represend multi valued
relationships
• Blank Nodes can be introduced for resources that don‘t need a name
(auxiliary nodes)
Knowledge
hpi-lv:name
Engineering
http://hpi-web.de/Spring14#KE
hpi-lv:takesPlace
hpi-lv:room
HS3
hpi-lv:date
hpi-lv:room
HS3
hpi-lv:date
Tue 13.30-15.00
hpi-lv:room
HS3
hpi-lv:date
Tue 13.30-15.00
http://hpi-web.de/Spring14#KE
hpi-lv:takesPlace
hpi-lv:room
HS3
hpi-lv:date
Tue 13.30-15.00
http://www.easyrdf.org/converter
Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
Resource
Description
Framework
15
http://hpi-web.de/Spring14#KE
hpi-lv:takesPlace
hpi-lv:room
HS3
hpi-lv:date
Tue 13.30-15.00
http://hpi-web.de/Spring14#KE
hpi-lv:takesPlace
hpi-lv:room
ID1 HS3
hpi-lv:date
Tue 13.30-15.00
http://hpi-web.de/Spring14#KE
hpi-lv:takesPlace
hpi-lv:room
ID1 HS3
hpi-lv:date
Tue 13.30-15.00
http://hpi-web.de/Spring14#KE
hpi-lv:takesPlace
hpi-lv:room
ID1 HS3
hpi-lv:date
Tue 13.30-15.00
List
s in R
DF
This file is licensed under the Creative Commons Attribution-NonCommercial 3.0 (CC BY-NC 3.0)
2
List
s in R
DF
More Syntactic
Sugar....
Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
Resource
Description
Framework
5
Lists
• General Data structure to enumerate any resources or literals
• Only shortcuts, no additional semantic expressivity
• Distinguish between
• Container
open list, i.e. extension (new entries) possible
• Collections
closed list, i.e. no extension possible
RDF Container
http://hpi-web.de/Spring14#KE
rdf:_1
http://hpi-web.de/BurgerAnton
hpi-lv:hasParticipants
rdf:_2
http://hpi-web.de/MuellerFranz
rdf:_3
http://hpi-web.de/SchmidtJoseph
rdf:type rdf:_4
http://hpi-web.de/SchulzeEgon
rdf:Seq
RDF-Container
• the root node of the container is
assigned a container-typ via rdf:type
• rdf:Bag
unordered set of elements,
there is no given order of elements
• rdf:Seq
ordered set of elements,
• rdf:Alt
defines alternatives of elements
only one element of the given alternatives is relevant for the application
RDF Container
<Spring14#KE> lv:hasParticipants [
a rdf:Seq;
rdf:_1 <BurgerAnton>;
rdf:_2 <MuellerFranz>;
rdf:_3 <SchmidtJoseph>;
rdf:_4 <SchulzeEgon>
].
http://www.easyrdf.org/converter
Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
Resource
Description
Framework
9
@prefix hpi-lv: <http://hpi-web.de/Lecture#> .
http://hpi-web.de/Spring14#KE
lv:hasParticipants
rdf:first
http://hpi-web.de/BurgerAnton
rdf:rest rdf:first
http://hpi-web.de/MuellerFranz
rdf:rest rdf:first
http://hpi-web.de/SchmidtJoseph
rdf:rest
rdf:first
http://hpi-web.de/SchulzeEgon
rdf:rest
rdf:nil
http://hpi-web.de/Spring14#KE
Head
lv:hasParticipants
rdf:first
http://hpi-web.de/BurgerAnton
rdf:rest rdf:first
http://hpi-web.de/MuellerFranz
rdf:rest rdf:first
http://hpi-web.de/SchmidtJoseph
rdf:rest
rdf:first
http://hpi-web.de/SchulzeEgon
rdf:rest
rdf:nil
http://hpi-web.de/Spring14#KE
Head
lv:hasParticipants
rdf:first
http://hpi-web.de/BurgerAnton
rdf:rest rdf:first
http://hpi-web.de/MuellerFranz
rdf:rest rdf:first
http://hpi-web.de/SchmidtJoseph
rdf:rest
rdf:first
http://hpi-web.de/SchulzeEgon
rdf:rest
rdf:nil
Tail
List is splitted recursively in Head (first) and Tail (rest).
Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
Resource
Description
Framework
10
@prefix hpi-lv: <http://hpi-web.de/Lecture#> .
http://hpi-web.de/Spring14#KE
lv:hasParticipants
rdf:first
http://hpi-web.de/BurgerAnton
rdf:rest rdf:first
http://hpi-web.de/MuellerFranz
rdf:rest rdf:first
http://hpi-web.de/SchmidtJoseph
rdf:rest
rdf:first
http://hpi-web.de/SchulzeEgon
rdf:rest
rdf:nil
RDF-Collection
<Sprint14#KE> lv:hasParticipant [
rdf:first <BurgerAnton>; rdf:rest [
rdf:first <MuellerFranz>; rdf:rest [
rdf:first <SchmidtJoseph>; rdf:rest [
rdf:first <SchulzeEgon>;
rdf:rest rdf:nil
]]]].
Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam http://www.easyrdf.org/converter
Resource
Description
Framework
12
RDF-Collection
Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam http://www.easyrdf.org/converter
13
Rei
fi cat
i on
This file is licensed under the Creative Commons Attribution-NonCommercial 3.0 (CC BY-NC 3.0)
2
Rei
fic
RDF a tion
Dat &
a In
teg
rat
ion
Knowledge Engineering with Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
4
Knowledge Engineering with Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
„My dear Watson,
...I suppose that it was the
4 Gardener who has killed
the Butler!“
Knowledge Engineering with Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
Resource
Description
Framework
5
RDF-Reification
• RDF permits interleaving of statements, i.e. to make statements about
statements
• Example:
•Sherlock Holmes supposes that the Gardener has killed the Butler
Knowledge Engineering with Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
Resource
Description
Framework
5
RDF-Reification
• RDF permits interleaving of statements, i.e. to make statements about
statements
• Example:
•Sherlock Holmes supposes that the Gardener has killed the Butler
Knowledge Engineering with Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
Resource
Description
Framework
5
RDF-Reification
• RDF permits interleaving of statements, i.e. to make statements about
statements
• Example:
•Sherlock Holmes supposes that the Gardener has killed the Butler
Knowledge Engineering with Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
Resource
Description
Framework
6
RDF-Reification
• rdf:Statement
defines an RDF Statement, consisting of Subject, Predicate and Object
Knowledge Engineering with Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
Resource
Description
Framework
6
RDF-Reification
• rdf:Statement
defines an RDF Statement, consisting of Subject, Predicate and Object
Knowledge Engineering with Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
Resource
Description
Framework
6
RDF-Reification
• rdf:Statement
defines an RDF Statement, consisting of Subject, Predicate and Object
RDF-Reification
Sherlock Holmes supposes that the Gardener has killed the Butler
rdf:subject :Gardener
:SherlockHolmes
:supposes :hasKilled
rdf:predicate
:StatementOnGardener :Butler
rdf:object
Knowledge Engineering with Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
Resource
Description
Framework
8
rdf:subject :Gardener
:SherlockHolmes
:supposes :hasKilled
rdf:predicate
:StatementOnGardener :Butler
rdf:object
Knowledge Engineering with Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
Resource
Description
Framework
9
RDF-Reification
• Is Reification really necessary?
• Modeling data provenance
• Formalizing statements about Reliability (Trust)
• Definition of Metadata about Statements (Assertions, Statements)
RDF Vocabulary
Knowledge Engineering with Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
RDF and Data Integration
11
Knowledge Engineering with Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
RDF and Data Integration
12
ID Name Homepage
HS-123 Harald Sack http://hpi-web.de/HaraldSack.html
ID Publisher Location
S-001 Springer Heidelberg
Knowledge Engineering with Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
RDF and Data Integration
13
a:publishername Springer
Heidelberg
a:publisherlocation
a:title
a:publisher WWW
ISBN 0-00-651409-X
a:year
2004
a:author
a:authorname Harald Sack
http://hpi-web.de/HaraldSack.html
a:authorhomepage
Knowledge Engineering with Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
RDF and Data Integration
14
Harald Sack
u:name
a:publishername Springer
Heidelberg
u:author
a:publisherlocation
ISBN 0-00-651409-X a:title
a:publisher WWW
ISBN 0-00-651409-X
u:cites a:year
2004
a:author
http://.../paper
a:authorname Harald Sack
u:title
http://hpi-web.de/HaraldSack.html
Knowledge Engineering with Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
RDF and Data Integration
15
Harald Sack
u:name
a:publishername Springer
Heidelberg
u:author
a:publisherlocation
ISBN 0-00-651409-X a:title
a:publisher WWW
ISBN 0-00-651409-X
u:cites a:year
2004
a:author
http://.../paper
a:authorname Harald Sack
u:title
http://hpi-web.de/HaraldSack.html
Knowledge Engineering with Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
RDF and Data Integration
16
a:publisherlocation
u:author
a:publisher WWW
a:title
ISBN 0-00-651409-X
u:cites a:year
2004
http://.../paper
a:authorname
Harald Sack
u:title a:author
http://hpi-web.de/HaraldSack.html
Very important paper
a:authorhomepage
Knowledge Engineering with Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
07 How to represent more complicated models? - RDFS
Open HPI - Course: Knowledge Engineering with Semantic Web Technologies
Lecture 2: Semantic Web Technologies Part I
17
Knowledge Engineering with Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
Knowledge Engineering
with Semantic Web Technologies
Lecture 2: Semantic Web Technologies
07: How to Represent More Complicated Models - RDFS
This file is licensed under the Creative Commons Attribution-NonCommercial 3.0 (CC BY-NC 3.0)
2
RDF
exv:Spring14#KE exv:HaraldSack
exv:isManagedBy
RDF
exv:Spring14#KE exv:HaraldSack
exv:isManagedBy
RDF
exv:Spring14#KE exv:HaraldSack
exv:isManagedBy
RDF
exv:Spring14#KE exv:HaraldSack
exv:isManagedBy
exv:isManagedBy
RDF
exv:Spring14#KE exv:HaraldSack
exv:isManagedBy
exv:isManagedBy
RDF
exv:Spring14#KE exv:HaraldSack
exv:isManagedBy
RDF
exv:Spring14#KE exv:HaraldSack
exv:isManagedBy
RDF
exv:Spring14#KE exv:HaraldSack
exv:isManagedBy
RDF
exv:Spring14#KE exv:HaraldSack
exv:isManagedBy
something from the namespace exv: something from the namespace exv:
with the URI Spring14#KE with the URI HaraldSack
RDF
exv:Spring14#KE exv:HaraldSack
exv:isManagedBy
something from the namespace exv: something from the namespace exv:
with the URI Spring14#KE with the URI HaraldSack
RDF
pfrzls:12345675576132x1 pfrzls:432157x6
pfrzls:ds32x182
RDF
pfrzls:12345675576132x1 pfrzls:432157x6
pfrzls:ds32x182
• But.....
• But.....
• Are all terms known?
• But.....
• Are all terms known?
• Are all terms correct?
• But.....
• Are all terms known?
• Are all terms correct?
• Are there (logical) relations among the terms?
• But.....
• Are all terms known?
• Are all terms correct?
• Are there (logical) relations among the terms?
• We need a language for data definition: RDF Schema
• But.....
• Are all terms known?
• Are all terms correct?
• Are there (logical) relations among the terms?
• We need a language for data definition: RDF Schema
• officially called “RDF Vocabulary Description Language”
• RDFSchema allows:
• Definition of classes
•Class instantiation in RDF via <rdf:type>
• Definition of properties and restrictions
• Definition of hierarchies
•Subclasses and superclasses
•Subproperties and superproperties
• Classes
• rdfs:Class
Concept of a class, defines an abstract object and is applied (with rdf:type)
to create instances
• rdf:Property
Base class for properties
• rdfs:Literal
Class for literals
• rdfs:Resource
every entity of an RDF model is instance of this class
• and additionally
rdfs:Datatype, rdf:XMLLiteral, rdfs:Container,
rdfs:ContainerMembershipProperty
rdfs:Class rdfs:Property
rdfs:Class
RDFS
rdf:type rdf:type
RDF
exv:Spring14#KE exv:HaraldSack
exv:isManagedBy
•Properties
• rdfs:subClassOf
transitive property to define inheritance hierarchies for classes
• rdfs:subPropertyOf
transitive property to define inheritance hierarchies for properties
• rdfs:domain
defines the domain of a property concerning a class
• rdfs:range
defines range of a property concerning a class
rdf:type
rdf:type rdf:type
class
rdfs:domain property class
Course
isManagedBy
rdfs:range Staff
subClassOf subClassOf
subClassOf
class class subClassOf
class class
Seminar Lecture
Prof. SeniorResearcher
RDFS
rdf:type rdf:type
RDF
exv:Spring14#KE exv:HaraldSack
exv:isManagedBy
t
t rdfs:Class rdfs:Resource
s
s – subclass relation
t – instance relation
t
t rdfs:Class rdfs:Resource
s
t s
rdfs:Literal
s – subclass relation
t – instance relation
t
t rdfs:Class rdfs:Resource
s
t t s s
rdfs:Literal rdf:Property
s – subclass relation
t – instance relation
t
t rdfs:Class rdfs:Resource
s
t t s s
t
rdfs:Literal rdf:Property rdf:type
t
t
t t rdfs:comment
t
subClassOf
rdfs:domain
Course rdfs:range
is managed by
Staff
rdfs:subClassOf rdfs:subClassOf
rdfs:subClassOf
rdfs:subClassOf
Seminar Lecture
Prof. SeniorResearcher
RDFS
:Lecture a rdfs:Class;
rdfs:subClassOf :Course.
:Seminar a rdfs:Class ;
rdfs:subClassOf :Course.
:Person a rdfs:Class .
:Staff a rdfs:Class ;
rdfs:subClassOf :Person .
:SeniorResearcher a rdfs:Class ;
rdfs:subClassOf :Staff .
:Professor a rdfs:Class ;
rdfs:subClassOf :Staff.
:isManagedBy a rdf:Property ;
rdfs:domain :Course ;
rdfs:range :Staff .
<Spring14#KE> a :Lecture .
:HaraldSack a :SeniorResearcher .
<Spring14#KE> :isManagedBy :HaraldSack .
http://www.easyrdf.org/converter
Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
RDFS Summary
This file is licensed under the Creative Commons Attribution-NonCommercial 3.0 (CC BY-NC 3.0)
2
rdf:type
rdf:type
exv:KnowledgeEngineering
exv:takes Place
exv:hasRoom
exv:hasName
HS3
Knowledge
Engineering exv:hasDate
Tue 13.30-15.00
rdf:type
rdf:type
exv:KnowledgeEngineering
exv:takes Place
exv:hasRoom
exv:hasName
HS3
Knowledge
Engineering exv:hasDate
Tue 13.30-15.00
rdf:type
rdf:type
exv:KnowledgeEngineering
exv:takes Place
exv:hasRoom
exv:hasName
HS3
Knowledge
Engineering exv:hasDate
Tue 13.30-15.00
rdfs:domain rdfs:range
exv:KnowledgeEngineering
exv:takes place
rdfs:domain rdfs:range
rdf:type
exv:KnowledgeEngineering
exv:takes place
rdfs:domain rdfs:range
rdf:type rdf:type
exv:KnowledgeEngineering
exv:takes place
rdfs:subClassOf
rdfs:Class rdfs:Class
rdfs:Property
exv:Lecture exv:takesPlace exv:Event
rdfs:domain rdfs:range
rdf:type rdf:type
exv:KnowledgeEngineering
exv:takesPlace
rdfs:subClassOf
rdf:type rdfs:Class
rdfs:Class rdfs:Property
exv:Lecture exv:takesPlace exv:Event
rdfs:domain rdfs:range
rdf:type
rdf:type
exv:KnowledgeEngineering
exv:takesPlace
rdfs:subPropertyOf
rdfs:Class rdfs:Class
rdfs:Property
rdf:type rdf:type
exv:Alice exv:Bob
exv:isMotherOf
rdfs:subPropertyOf
rdfs:Property
exv:Alice exv:Bob
exv:isMotherOf
exv:Alice exv:Bob
exv:isParentOf