SPARQL: An RDF Query Language

Size: px
Start display at page:

Download "SPARQL: An RDF Query Language"

Transcription

1 SPARQL: An RDF Query Language Wiltrud Kessler Institut für Maschinelle Sprachverarbeitung Universität Stuttgart Semantic Web Winter 2015/16 This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.

2 The Semantic Web Stack [W3C, Tim Berners-Lee] User Interface, Software Agents Trust Proof Logic, Rules Ontology, OWL SPARQL RDFS RDF XML, XMLSchema, Namespaces Encryption Digital Signatures URI Unicode, UTF-8 Wiltrud Kessler SPARQL: An RDF Query Language 2 / 49

3 Outline Basic SPARQL OPTIONAL UNION FILTER Inference Summary References Wiltrud Kessler SPARQL: An RDF Query Language 3 / 49

4 Outline Basic SPARQL OPTIONAL UNION FILTER Inference Summary References Wiltrud Kessler SPARQL: An RDF Query Language 4 / 49

5 Accessing Information from OWL Documents We have lots of information in RDF, RDFS and OWL. How do we access it? We can use reasoning to get information from OWL: What are the instances of class X? Which classes are a subclass of Z? To which classes does x belong? But sometimes we need a different type of information than OWL and the reasoner can give us: Which German labels are contained in the ontology? Which property connects the individuals x and y? Which two pizzas have a common topping? Wiltrud Kessler SPARQL: An RDF Query Language 5 / 49

6 SPARQL: SPARQL Protocol and RDF Query Language SPARQL is a recursive acronym for SPARQL Protocol and RDF Query Language. SPARQL is pronounced like sparkle. SPARQL is a W3C recommendation since Apart from the query language we are presenting here, SPARQL is also a protocol for the transmission of queries and a way of encoding the results in XML. SPARQL is intended for querying RDF, but OWL is based on RDF, so we can use SPARQL to query our ontologies. Wiltrud Kessler SPARQL: An RDF Query Language 6 / 49

7 SPARQL Basics SPARQL matches graph patterns in the query with statements that form an RDF graph. Every match of the query pattern is one returned line. If the query contains variables, the variables get bound to the parts of the triple that correspond to them. Several patterns are regarded as a conjunction (as if connected by and). Wiltrud Kessler SPARQL: An RDF Query Language 7 / 49

8 SPARQL Basic Pattern Matching Example query pattern:?book dbo:author dbr:j._r._r._tolkien. dbo:author?book dbr:j. R. R. Tolkien Example RDF triple: dbr:the_hobbit dbo:author dbr:j._r._r._tolkien. dbo:author dbr:the Hobbit dbr:j. R. R. Tolkien dbo:author and dbr:j._r._r._tolkien match,?book gets bound to dbr:the_hobbit.?book dbr:the Hobbit dbo:author dbo:author dbr:j. R. R. Tolkien dbr:j. R. R. Tolkien Wiltrud Kessler SPARQL: An RDF Query Language 8 / 49

9 SPARQL Basic Syntax Query: PREFIX dbr: < PREFIX dbo: < SELECT?book WHERE {?book dbo:author dbr:j._r._r._tolkien. Result:?book dbr:the_hobbit dbr:the_two_towers dbr:the_return_of_the_king dbr:the_fellowship_of_the_ring dbr:the_silmarillion... Wiltrud Kessler SPARQL: An RDF Query Language 9 / 49

10 SPARQL Example (1) Query:?book dbo:author?author.?author rdf:type?personclass.?book dbo:literarygenre?genre. Query pattern:?book dbo:literarygenre?genre dbo:author?author RDF graph: dbr:the Hobbit rdf:type dbo:literarygenre?personclass dbr:children s literature dbo:author dbo:literarygenre dbr:fantasy dbr:j. R. R. Tolkien rdf:type dbo:writer Wiltrud Kessler SPARQL: An RDF Query Language 10 / 49

11 SPARQL Example (2) Matching: dbo:literarygenre?book dbo:literarygenre dbr:the Hobbit dbo:literarygenre dbo:author dbo:literarygenre dbo:author?genre dbr:children s literature?genre dbr:fantasy?author dbr:j. R. R. Tolkien rdf:type rdf:type?personclass dbo:writer Result:?book?author?personclass?genre dbr:the Hobbit dbr:j. R. R. Tolkien dbo:writer dbr:children s literature dbr:the Hobbit dbr:j. R. R. Tolkien dbo:writer dbr:fantasy Wiltrud Kessler SPARQL: An RDF Query Language 11 / 49

12 SPARQL Example (3) Query: PREFIX rdf: < PREFIX dbo: < SELECT?book?author?personclass?genre WHERE {?book dbo:author?author.?author rdf:type?personclass.?book dbo:literarygenre?genre. Result:?book?author?personclass?genre dbr:the Hobbit dbr:j. R. R. Tolkien dbo:writer dbr:children s literature dbr:the Hobbit dbr:j. R. R. Tolkien dbo:writer dbr:fantasy dbr:a Memory of Light dbr:brandon Sanderson dbo:artist dbr:fantasy literature dbr:a Memory of Light dbr:brandon Sanderson dbo:writer dbr:fantasy literature... Wiltrud Kessler SPARQL: An RDF Query Language 12 / 49

13 SPARQL Syntax Prefix PREFIX rdf: < PREFIX dbo: < PREFIX declares a namespace and the abbreviating prefix that can be used to access it. Wiltrud Kessler SPARQL: An RDF Query Language 13 / 49

14 SPARQL Syntax Result Clause SELECT?book?author?personclass?genre The result clause identifies what information to return from the query. Variables are denoted by a? in front of the name. Only the information bound to the variables in the result clause is returned. The number of lines returned is depending on the number of triples found, each line gives one possible way the variables can be bound to things in the graph. Wiltrud Kessler SPARQL: An RDF Query Language 14 / 49

15 SPARQL Syntax Query Patterns WHERE {?book dbo:author?author.?author rdf:type?personclass.?book dbo:literarygenre?genre. The query pattern is the main part of the SPARQL query. Query patterns are written in Turtle-Syntax for RDF. Query patterns are graph patterns for statements with subject, predicate and object. Patterns may contain variables replacing any part of the statement. Every pattern is terminated by a dot. A sequence of patterns is interpreted as a conjunction. Wiltrud Kessler SPARQL: An RDF Query Language 15 / 49

16 SPARQL and Data Types ex:bsp1 ex:p "test". ex:bsp2 ex:p "test"^^xsd:string. ex:bsp3 ex:p ex:bsp4 ex:p "42"^^xsd:integer. Remember: Literals are typed in RDF. SPARQL queries are sensitive to data types, exact matches are necessary. The query?subject ex:p "test". will give ex:bsp1 as the only result. To get ex:bsp3, the query?subject ex:p must be used. For numbers a short form?subject ex:p 42. is possible, the number is interpreted as xsd:integer, xsd:decimal, or xsd:double according to the surface form. Wiltrud Kessler SPARQL: An RDF Query Language 16 / 49

17 Querying Ontologies (1) We can query OWL ontologies, as OWL is based on RDF. We just have to know how the thing we want to query is defined in the ontology. For example, we want to know what pizzas are made of, i.e., query the restrictions on classes that define the possible toppings for a specific class of pizza. This is the corresponding definition of one pizza: pz:margherita rdfs:subclassof pz:namedpizza. pz:margherita rdfs:subclassof _:node1. _:node1 rdf:type owl:restriction. _:node1 owl:onproperty pz:hastopping. _:node1 owl:somevaluesfrom pz:tomatotopping To query, just replace the interesting parts with variables. Wiltrud Kessler SPARQL: An RDF Query Language 17 / 49

18 Querying Ontologies (2) Query: SELECT?pizza?topping WHERE {?pizza rdfs:subclassof pz:namedpizza.?pizza rdfs:subclassof?restriction.?restriction rdf:type owl:restriction.?restriction owl:onproperty pz:hastopping.?restriction owl:somevaluesfrom?topping. Result:?pizza?topping pz:american pz:peperonisausagetopping pz:american pz:tomatotopping pz:american pz:mozzarellatopping pz:margherita pz:tomatotopping pz:margherita pz:mozzarellatopping Wiltrud Kessler SPARQL: An RDF Query Language 18 / 49

19 Quiz: Basic SPARQL Queries Given are RDF statements about mountains in this form: dbr:birkenkopf rdf:type dbo:mountain. dbr:birkenkopf dbp:elevationm 511. dbr:birkenkopf dbp:name "Birkenkopf". dbr:birkenkopf dbo:locationarea dbr:baden-wurttemberg. Complete the query to retrieve name and height of all mountains: SELECT?name?elevation WHERE {... A?name rdfs:subclassof?restriction.?restriction owl:onproperty dbp:elevationm.?restriction owl:somevaluesfrom?elevation. B?name rdf:type dbo:mountain.?name dbp:elevationm?elevation. C?mountain rdf:type dbo:mountain.?mountain dbp:elevationm?elevation.?mountain dbp:name?name. Wiltrud Kessler SPARQL: An RDF Query Language 19 / 49

20 Outline Basic SPARQL OPTIONAL UNION FILTER Inference Summary References Wiltrud Kessler SPARQL: An RDF Query Language 20 / 49

21 OPTIONAL Patterns are regarded as a conjunction, this query lists only books that have a genre specified with dbo:literarygenre, books without genre are not listed:?book dbo:author?author.?book dbo:literarygenre?genre. To list all books and then, if they have one, also their genre, we can use OPTIONAL. Books that don t have a genre are returned, but the variable?genre is unbound. Several statement can occur after OPTIONAL, they are read as a conjunction. Several OPTIONAL parts can be included in one query, they are evaluated separately. Wiltrud Kessler SPARQL: An RDF Query Language 21 / 49

22 OPTIONAL Example (1) Query: SELECT?book?author?genre WHERE {?book dbo:author?author. OPTIONAL {?book dbo:literarygenre?genre. Result:?book?author?genre dbr:the Hobbit dbr:j. R. R. Tolkien dbr:children s literature dbr:the Hobbit dbr:j. R. R. Tolkien dbr:fantasy dbr:the Adventures of Tom Bombadil dbr:j. R. R. Tolkien dbr:the Quest of Erebor dbr:j. R. R. Tolkien dbr:fantasy dbr:songs for the Philologists dbr:j. R. R. Tolkien... Wiltrud Kessler SPARQL: An RDF Query Language 22 / 49

23 OPTIONAL Example (2) Query: SELECT?book?author?genre?releasedate WHERE {?book dbo:author?author. OPTIONAL {?book dbo:literarygenre?genre. OPTIONAL {?book dbp:releasedate?releasedate. Result:?book?author?genre?releasedate dbr:the Hobbit dbr:j. R. R. Tolkien dbr:children s literature dbr:the Hobbit dbr:j. R. R. Tolkien dbr:fantasy dbr:the Adventures of Tom Bombadil dbr:j. R. R. Tolkien dbr:the Quest of Erebor dbr:j. R. R. Tolkien dbr:fantasy dbr:songs for the Philologists dbr:j. R. R. Tolkien Wiltrud Kessler SPARQL: An RDF Query Language 23 / 49

24 OPTIONAL Example (3) Query: SELECT?book?author?genre?releasedate WHERE {?book dbo:author?author. OPTIONAL {?book dbo:literarygenre?genre.?book dbp:releasedate?releasedate. Result:?book?author?genre?releasedate dbr:the Hobbit dbr:j. R. R. Tolkien dbr:children s literature dbr:the Hobbit dbr:j. R. R. Tolkien dbr:fantasy dbr:the Adventures of Tom Bombadil dbr:j. R. R. Tolkien dbr:the Quest of Erebor dbr:j. R. R. Tolkien dbr:songs for the Philologists dbr:j. R. R. Tolkien... Wiltrud Kessler SPARQL: An RDF Query Language 24 / 49

25 Quiz: OPTIONAL Some mountains have an alternative name (dbp:altname), some have a first person to ascent (dbo:firstascentperson). Add this information to the query (if available): SELECT?name?altname?person WHERE {?mountain rdf:type dbo:mountain.?mountain dbp:name?name.... A?mountain dbp:altname?altname.?mountain dbo:firstascentperson?person. B OPTIONAL {?mountain dbp:altname?altname. OPTIONAL {?mountain dbo:firstascentperson?person. C OPTIONAL {?mountain dbp:altname?altname.?mountain dbo:firstascentperson?person. D?mountain dbp:altname?altname. OPTIONAL {?mountain dbo:firstascentperson?person. Wiltrud Kessler SPARQL: An RDF Query Language 25 / 49

26 Outline Basic SPARQL OPTIONAL UNION FILTER Inference Summary References Wiltrud Kessler SPARQL: An RDF Query Language 26 / 49

27 UNION A sequence of patterns in a SPARQL query is always interpreted as a conjunction (logical and). To use the logical or for parts of the pattern, pattern alternatives must be used. Pattern alternatives are specified with the UNION keyword. Wiltrud Kessler SPARQL: An RDF Query Language 27 / 49

28 UNION Example Query: SELECT?book?author?releasedate WHERE {?book dbo:author?author. {?book dbp:releasedate?releasedate. UNION {?book dbp:pubdate?releasedate. Result:?book?author?releasedate dbr:the Hobbit dbr:j. R. R. Tolkien dbr:the Adventures of Tom Bombadil dbr:j. R. R. Tolkien 1962 dbr:the Quest of Erebor dbr:j. R. R. Tolkien 1980 dbr:songs for the Philologists dbr:j. R. R. Tolkien Wiltrud Kessler SPARQL: An RDF Query Language 28 / 49

29 Combining OPTIONAL and UNION OPTIONAL and UNION are left-associative: pattern OPTIONAL { pattern OPTIONAL { pattern is equivalent to { pattern OPTIONAL { pattern OPTIONAL { pattern Both operators have the same precedence: {s1 p1 o1 OPTIONAL {s2 p2 o2 UNION {s3 p3 o3 OPTIONAL {s4 p4 o4 OPTIONAL {s5 p5 o5 is equivalent to { { { {s1 p1 o1 OPTIONAL {s2 p2 o2 UNION {s3 p3 o3 OPTIONAL {s4 p4 o4 OPTIONAL {s5 p5 o5 Additional { may always be used to group patterns. Wiltrud Kessler SPARQL: An RDF Query Language 29 / 49

30 OPTIONAL and UNION Example (1) Query: SELECT?book?author?releasedate WHERE {?book dbo:author?author. OPTIONAL { {?book dbp:releasedate?releasedate. UNION {?book dbp:pubdate?releasedate. Result:?book?author?releasedate dbr:the Hobbit dbr:j. R. R. Tolkien dbr:the Adventures of Tom Bombadil dbr:j. R. R. Tolkien 1962 dbr:the Quest of Erebor dbr:j. R. R. Tolkien 1980 dbr:songs for the Philologists dbr:j. R. R. Tolkien 1936 dbr:the Children of Húrin dbr:j. R. R. Tolkien... Wiltrud Kessler SPARQL: An RDF Query Language 30 / 49

31 OPTIONAL and UNION Example (2) Query: SELECT?book?author?releasedate?illustrator WHERE {?book dbo:author?author. {?book dbp:releasedate?releasedate. UNION {?book dbp:pubdate?releasedate. OPTIONAL {?book dbo:illustrator?illustrator. Result:?book?author?releasedate?illustrator dbr:the Hobbit dbr:j. R. R. Tolkien dbr:j. R. R. Tolkien dbr:the Adventures of Tom Bombadil dbr:j. R. R. Tolkien 1962 dbr:pauline Baynes dbr:the Quest of Erebor dbr:j. R. R. Tolkien 1980 dbr:songs for the Philologists dbr:j. R. R. Tolkien Wiltrud Kessler SPARQL: An RDF Query Language 31 / 49

32 OPTIONAL and UNION Example (3) Query: SELECT?book?author?releasedate?illustrator WHERE {?book dbo:author?author. {?book dbp:releasedate?releasedate. UNION {?book dbp:pubdate?releasedate. OPTIONAL {?book dbo:illustrator?illustrator. Result:?book?author?releasedate?illustrator dbr:the Hobbit dbr:j. R. R. Tolkien dbr:the Adventures of Tom Bombadil dbr:j. R. R. Tolkien 1962 dbr:pauline Baynes dbr:the Quest of Erebor dbr:j. R. R. Tolkien 1980 dbr:songs for the Philologists dbr:j. R. R. Tolkien Wiltrud Kessler SPARQL: An RDF Query Language 32 / 49

33 Quiz: UNION Some locations are given with dbo:locationarea some with dbp:location. Replace the given query pattern to handle both: SELECT?mountain?location WHERE {?mountain rdf:type dbo:mountain.?mountain dbo:locationarea?location. A?mountain rdf:type dbo:mountain. {?mountain dbo:locationarea?location. UNION {?mountain dbp:location?location. B {?mountain rdf:type dbo:mountain.?mountain dbo:locationarea?location. UNION {?mountain dbp:location?location. C?mountain rdf:type dbo:mountain.?mountain dbo:locationarea?location. OPTIONAL {?mountain dbp:location?location. Wiltrud Kessler SPARQL: An RDF Query Language 33 / 49

34 Outline Basic SPARQL OPTIONAL UNION FILTER Inference Summary References Wiltrud Kessler SPARQL: An RDF Query Language 34 / 49

35 FILTER Sometimes it is useful to restrict the values of a variable. Example: List all books published after FILTER can be used to filter out lines in the result for which the filter expression evaluates to false. A filter is always applied to the whole pattern group in which the filter appears. Filters can be connected with boolean operators: &&,,! Wiltrud Kessler SPARQL: An RDF Query Language 35 / 49

36 FILTER Example (1) Query: SELECT?book?author?releasedate WHERE {?book dbo:author?author. {?book dbp:releasedate?releasedate. UNION {?book dbp:pubdate?releasedate. FILTER (?releasedate > 1950 ) Result:?book?author?releasedate dbr:the Adventures of Tom Bombadil dbr:j. R. R. Tolkien 1962 dbr:the Quest of Erebor dbr:j. R. R. Tolkien 1980 dbr:songs for the Philologists dbr:j. R. R. Tolkien Wiltrud Kessler SPARQL: An RDF Query Language 36 / 49

37 FILTER Example (2) Query: SELECT?book?author?releasedate WHERE {?book dbo:author?author. {?book dbp:releasedate?releasedate. UNION {?book dbp:pubdate?releasedate. FILTER (?releasedate > 1970 ) Result:?book?author?releasedate dbr:the Adventures of Tom Bombadil dbr:j. R. R. Tolkien dbr:the Quest of Erebor dbr:j. R. R. Tolkien 1980 dbr:songs for the Philologists dbr:j. R. R. Tolkien Wiltrud Kessler SPARQL: An RDF Query Language 37 / 49

38 FILTER Syntax For numerical types, different operators for comparison are defined: <, =, >, <=, >=,!= For other types, only = and!= are defined. Literals of incompatible types cannot be compared. Arithmetic operators can be used in filters: FILTER (?weight / (?height *?height) >= 25 ) There are several other predefined filters (see literature), e.g.: BOUND(A) true if A is a bound variable isuri(a) true if A is a URI isliteral(a) true if A is a literal DATATYPE(A) returns the URI of the datatype of A REGEX(A,B) true if regular expression B can be found in A Wiltrud Kessler SPARQL: An RDF Query Language 38 / 49

39 FILTER Example (3) Query: SELECT?book?author?releasedate WHERE {?book dbo:author?author. {?book dbp:releasedate?releasedate. UNION {?book dbp:pubdate?releasedate. FILTER (?releasedate > 1950 &&!((?releasedate + 5) >= 1970) ) Result:?book?author?releasedate dbr:the Adventures of Tom Bombadil dbr:j. R. R. Tolkien Wiltrud Kessler SPARQL: An RDF Query Language 39 / 49

40 Quiz: FILTER Determine at which point the line FILTER (?elevation > 8000) has to be inserted, so that only 8000ers are retrieved. 1 SELECT?mountain?name?elevation?location 2 WHERE { 3?mountain rdf:type dbo:mountain. 4?mountain dbp:name?name. 5 [A] 6 OPTIONAL { 7?mountain dbp:location?location. 8 [B] 9 10 OPTIONAL { 11?mountain dbp:elevationm?elevation. 12 [C] [D] 15 Wiltrud Kessler SPARQL: An RDF Query Language 40 / 49

41 More... Modifiers to influence the presentation: ORDER BY establishes the ordering of the resulting lines by some variable, ascending or descending. LIMIT limits the number of solutions returned. OFFSET causes the solutions generated to start after the specified number of solutions (only predictable in combination with ORDER BY). DISTINCT eliminates duplicate solutions (a solution that binds the same variables to the same RDF terms as another solution). Different query forms, besides SELECT covered here, there is ASK, DESCRIBE and CONSTRUCT. Wiltrud Kessler SPARQL: An RDF Query Language 41 / 49

42 Outline Basic SPARQL OPTIONAL UNION FILTER Inference Summary References Wiltrud Kessler SPARQL: An RDF Query Language 42 / 49

43 Explicit and Inferred Information SELECT?author WHERE {?book dbo:author?author.?author rdf:type dbo:person. In the ontology we have several subclasses of dbo:person (e.g. dbo:writer or dbo:athlete) and some instances of these. What is the result of the above query? We would expect to get all authors if something is a instance of a subclass of Person, it is also an instance of Person. Unfortunately this does not work, because SPARQL does no inference, it queries only what is explicitly contained in the graph (it queries RDF, not RDFS or OWL!). Wiltrud Kessler SPARQL: An RDF Query Language 43 / 49

44 How to Include Inferred Information We cannot (or don t want to) enumerate all posible levels of subclasses of subclasses of... We want to query inferred information! But SPARQL is only a query language, there is no inference in the query language itself. Fortunately, some implementations (e.g., Jena) have a reasoner included. Otherwise, it is possible to let a reasoner work on the ontology and then export the ontology including inferred statements (in Protégé this should work with Menu Export inferred axioms as ontology ). Wiltrud Kessler SPARQL: An RDF Query Language 44 / 49

45 Exercise: SPARQL Write some SPARQL queries that your application might use. Discuss your solution with your neighbour. Example: List the title and year of writing (if available) of all songs written by Michael Jackson. SELECT?title?year WHERE {?song rdf:type ex:song.?song ex:writtenby ex:michaeljackson.?song ex:hastitle?title. OPTIONAL {?song ex:writtenin?date.?date ex:hasyear?year. Wiltrud Kessler SPARQL: An RDF Query Language 45 / 49

46 Outline Basic SPARQL OPTIONAL UNION FILTER Inference Summary References Wiltrud Kessler SPARQL: An RDF Query Language 46 / 49

47 Summary: SPARQL matches graph patterns in the query with an RDF graph, if the query contains variables, the variables get bound to the parts of the triple that correspond to them. Several patterns are regarded as a conjunction, to express a disjunction ( or ), UNION can be used. OPTIONAL can be used to include the information if available, otherwise the result is returned with the variable unbound. FILTER can be used to filter out lines in the result for which the filter expression evaluates to false. We can only query explicit information, to access inferred information, a reasoner must be run on the ontology first. Wiltrud Kessler SPARQL: An RDF Query Language 47 / 49

48 Outline Basic SPARQL OPTIONAL UNION FILTER Inference Summary References Wiltrud Kessler SPARQL: An RDF Query Language 48 / 49

49 Suggested Reading [HKRS08] Pascal Hitzler, Markus Krötzsch, Sebastian Rudolph and York Sure. Semantic Web. Grundlagen. Springer textbook, (Chapter 7) [HKR09] Pascal Hitzler, Markus Krötzsch and Sebastian Rudolph. Foundations of Semantic Web Technologies. Chapman & Hall/CRC, (Chapter 7) Wiltrud Kessler SPARQL: An RDF Query Language 49 / 49

Linking Data with RDF

Linking Data with RDF Linking Data with RDF Wiltrud Kessler Institut für Maschinelle Sprachverarbeitung Universität Stuttgart Semantic Web Winter 2014/15 This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike

More information

Semantic Web and Natural Language Processing

Semantic Web and Natural Language Processing Semantic Web and Natural Language Processing Wiltrud Kessler Institut für Maschinelle Sprachverarbeitung Universität Stuttgart Semantic Web Winter 2014/2015 This work is licensed under a Creative Commons

More information

RDF AND SPARQL. Part IV: Syntax of SPARQL. Dresden, August Sebastian Rudolph ICCL Summer School

RDF AND SPARQL. Part IV: Syntax of SPARQL. Dresden, August Sebastian Rudolph ICCL Summer School RDF AND SPARQL Part IV: Syntax of SPARQL Sebastian Rudolph ICCL Summer School Dresden, August 2013 Agenda 1 Introduction and Motivation 2 Simple SPARQL Queries 3 Complex Graph Pattern 4 Filters 5 Solution

More information

Knowledge Representation for the Semantic Web

Knowledge Representation for the Semantic Web Knowledge Representation for the Semantic Web Winter Quarter 2012 Pascal Hitzler Slides 2 01/05/2011 Kno.e.sis Center Wright State University, Dayton, OH http://www.knoesis.org/pascal/ KR4SW Winter 2012

More information

Querying the Semantic Web

Querying the Semantic Web Querying the Semantic Web CSE 595 Semantic Web Instructor: Dr. Paul Fodor Stony Brook University http://www3.cs.stonybrook.edu/~pfodor/courses/cse595.html Lecture Outline SPARQL Infrastructure Basics:

More information

Semantic Web Information Management

Semantic Web Information Management Semantic Web Information Management Norberto Fernández ndez Telematics Engineering Department berto@ it.uc3m.es.es 1 Motivation n Module 1: An ontology models a domain of knowledge n Module 2: using the

More information

MI-PDB, MIE-PDB: Advanced Database Systems

MI-PDB, MIE-PDB: Advanced Database Systems MI-PDB, MIE-PDB: Advanced Database Systems http://www.ksi.mff.cuni.cz/~svoboda/courses/2015-2-mie-pdb/ Lecture 11: RDF, SPARQL 3. 5. 2016 Lecturer: Martin Svoboda svoboda@ksi.mff.cuni.cz Author: Martin

More information

a paradigm for the Introduction to Semantic Web Semantic Web Angelica Lo Duca IIT-CNR Linked Open Data:

a paradigm for the Introduction to Semantic Web Semantic Web Angelica Lo Duca IIT-CNR Linked Open Data: Introduction to Semantic Web Angelica Lo Duca IIT-CNR angelica.loduca@iit.cnr.it Linked Open Data: a paradigm for the Semantic Web Course Outline Introduction to SW Give a structure to data (RDF Data Model)

More information

Semantic Web Fundamentals

Semantic Web Fundamentals Semantic Web Fundamentals Web Technologies (706.704) 3SSt VU WS 2018/19 with acknowledgements to P. Höfler, V. Pammer, W. Kienreich ISDS, TU Graz January 7 th 2019 Overview What is Semantic Web? Technology

More information

SPARQL Protocol And RDF Query Language

SPARQL Protocol And RDF Query Language SPARQL Protocol And RDF Query Language WS 2011/12: XML Technologies John Julian Carstens Department of Computer Science Communication Systems Group Christian-Albrechts-Universität zu Kiel March 1, 2012

More information

Semantic Web Fundamentals

Semantic Web Fundamentals Semantic Web Fundamentals Web Technologies (706.704) 3SSt VU WS 2017/18 Vedran Sabol with acknowledgements to P. Höfler, V. Pammer, W. Kienreich ISDS, TU Graz December 11 th 2017 Overview What is Semantic

More information

Semantics. KR4SW Winter 2011 Pascal Hitzler 1

Semantics. KR4SW Winter 2011 Pascal Hitzler 1 Semantics KR4SW Winter 2011 Pascal Hitzler 1 Knowledge Representation for the Semantic Web Winter Quarter 2011 Pascal Hitzler Slides 5 01/20+25/2010 Kno.e.sis Center Wright State University, Dayton, OH

More information

Knowledge Representation for the Semantic Web

Knowledge Representation for the Semantic Web Knowledge Representation for the Semantic Web Winter Quarter 2011 Pascal Hitzler Slides 4 01/13/2010 Kno.e.sis Center Wright State University, Dayton, OH http://www.knoesis.org/pascal/ KR4SW Winter 2011

More information

Reasoning with Rules SWRL as Example. Jan Pettersen Nytun, UIA

Reasoning with Rules SWRL as Example. Jan Pettersen Nytun, UIA Reasoning with Rules SWRL as Example Jan Pettersen Nytun, UIA 1 JPN, UiA 2 What is a rule? Consist of premise and a conclusion. Meaning: In any situation where the premise applies the conclusion must also

More information

Final Exam. Semantic Web Wiltrud Kessler WS 2014/15. Please do not forget to write your name or initials on every sheet you hand in.

Final Exam. Semantic Web Wiltrud Kessler WS 2014/15. Please do not forget to write your name or initials on every sheet you hand in. Final Exam Semantic Web Wiltrud Kessler WS 2014/15 Notes: Please do not forget to write your name or initials on every sheet you hand in. You may answer the questions in German or English. You may not

More information

infoh509 xml & web technologies lecture 9: sparql Stijn Vansummeren February 14, 2017

infoh509 xml & web technologies lecture 9: sparql Stijn Vansummeren February 14, 2017 infoh509 xml & web technologies lecture 9: sparql Stijn Vansummeren February 14, 2017 what have we gained? Current no structure Future structured by RDF (subject, predicate, object) b:genome b:field b:molecular-bio

More information

SPARQL QUERY LANGUAGE WEB:

SPARQL QUERY LANGUAGE   WEB: SPARQL QUERY LANGUAGE JELENA JOVANOVIC EMAIL: JELJOV@GMAIL.COM WEB: HTTP://JELENAJOVANOVIC.NET SPARQL query language W3C standard for querying RDF graphs Can be used to query not only native RDF data,

More information

Ontological Modeling: Part 2

Ontological Modeling: Part 2 Ontological Modeling: Part 2 Terry Halpin LogicBlox This is the second in a series of articles on ontology-based approaches to modeling. The main focus is on popular ontology languages proposed for the

More information

Introduction to Semantic Web Databases. Version 1 Prepared By: Amgad Madkour Ph.D. Candidate Purdue University April 2018

Introduction to Semantic Web Databases. Version 1 Prepared By: Amgad Madkour Ph.D. Candidate Purdue University April 2018 Introduction to Semantic Web Databases Version 1 Prepared By: Amgad Madkour Ph.D. Candidate Purdue University April 2018 Semantic Web Motivation Represents the next generation of the the world wide web

More information

Day 2. RISIS Linked Data Course

Day 2. RISIS Linked Data Course Day 2 RISIS Linked Data Course Overview of the Course: Friday 9:00-9:15 Coffee 9:15-9:45 Introduction & Reflection 10:30-11:30 SPARQL Query Language 11:30-11:45 Coffee 11:45-12:30 SPARQL Hands-on 12:30-13:30

More information

3. Queries Applied Artificial Intelligence Prof. Dr. Bernhard Humm Faculty of Computer Science Hochschule Darmstadt University of Applied Sciences

3. Queries Applied Artificial Intelligence Prof. Dr. Bernhard Humm Faculty of Computer Science Hochschule Darmstadt University of Applied Sciences 3. Queries Applied Artificial Intelligence Prof. Dr. Bernhard Humm Faculty of Computer Science Hochschule Darmstadt University of Applied Sciences 1 Retrospective Knowledge Representation (1/2) What is

More information

Today: RDF syntax. + conjunctive queries for OWL. KR4SW Winter 2010 Pascal Hitzler 3

Today: RDF syntax. + conjunctive queries for OWL. KR4SW Winter 2010 Pascal Hitzler 3 Today: RDF syntax + conjunctive queries for OWL KR4SW Winter 2010 Pascal Hitzler 3 Today s Session: RDF Schema 1. Motivation 2. Classes and Class Hierarchies 3. Properties and Property Hierarchies 4. Property

More information

RDF AND SPARQL. Part V: Semantics of SPARQL. Dresden, August Sebastian Rudolph ICCL Summer School

RDF AND SPARQL. Part V: Semantics of SPARQL. Dresden, August Sebastian Rudolph ICCL Summer School RDF AND SPARQL Part V: Semantics of SPARQL Sebastian Rudolph ICCL Summer School Dresden, August 2013 Agenda 1 Recap 2 SPARQL Semantics 3 Transformation of Queries into Algebra Objects 4 Evaluation of the

More information

KNOWLEDGE GRAPHS. Lecture 4: Introduction to SPARQL. TU Dresden, 6th Nov Markus Krötzsch Knowledge-Based Systems

KNOWLEDGE GRAPHS. Lecture 4: Introduction to SPARQL. TU Dresden, 6th Nov Markus Krötzsch Knowledge-Based Systems KNOWLEDGE GRAPHS Lecture 4: Introduction to SPARQL Markus Krötzsch Knowledge-Based Systems TU Dresden, 6th Nov 2018 Review We can use reification to encode complex structures in RDF graphs: Film Actor

More information

FOUNDATIONS OF SEMANTIC WEB TECHNOLOGIES

FOUNDATIONS OF SEMANTIC WEB TECHNOLOGIES FOUNDATIONS OF SEMANTIC WEB TECHNOLOGIES Semantics of SPARQL Sebastian Rudolph Dresden, June 14 Content Overview & XML 9 APR DS2 Hypertableau II 7 JUN DS5 Introduction into RDF 9 APR DS3 Tutorial 5 11

More information

SPARQL. Fausto Giunchiglia and Mattia Fumagallli. University of Trento

SPARQL. Fausto Giunchiglia and Mattia Fumagallli. University of Trento SPARQL Fausto Giunchiglia and Mattia Fumagallli University of Trento Roadmap Introduction Basic query forms SELECT CONSTRUCT ASK DESCRIBE Other clauses and modifiers SPARQL Federated Query Exercises 2

More information

An Introduction to the Semantic Web. Jeff Heflin Lehigh University

An Introduction to the Semantic Web. Jeff Heflin Lehigh University An Introduction to the Semantic Web Jeff Heflin Lehigh University The Semantic Web Definition The Semantic Web is not a separate Web but an extension of the current one, in which information is given well-defined

More information

CS Knowledge Representation and Reasoning (for the Semantic Web)

CS Knowledge Representation and Reasoning (for the Semantic Web) CS 7810 - Knowledge Representation and Reasoning (for the Semantic Web) 02 Resource Description Framework (RDF) Adila Krisnadhi Data Semantics Lab, Wright State University, Dayton, OH Outline 1. Motivation:

More information

Semantic Information Retrieval: An Ontology and RDFbased

Semantic Information Retrieval: An Ontology and RDFbased Semantic Information Retrieval: An Ontology and RDFbased Model S. Mahaboob Hussain Assistant Professor, CSE Prathyusha Kanakam Assistant Professor, CSE D. Suryanarayana Professor, CSE Swathi Gunnam PG

More information

FOUNDATIONS OF SEMANTIC WEB TECHNOLOGIES

FOUNDATIONS OF SEMANTIC WEB TECHNOLOGIES FOUNDATIONS OF SEMANTIC WEB TECHNOLOGIES Semantics of RDF(S) Sebastian Rudolph Dresden, 25 April 2014 Content Overview & XML Introduction into RDF RDFS Syntax & Intuition Tutorial 1 RDFS Semantics RDFS

More information

KNOWLEDGE GRAPHS. Lecture 11: Cypher / Knowledge Graph Quality. TU Dresden, 8th Jan Markus Krötzsch Knowledge-Based Systems

KNOWLEDGE GRAPHS. Lecture 11: Cypher / Knowledge Graph Quality. TU Dresden, 8th Jan Markus Krötzsch Knowledge-Based Systems KNOWLEDGE GRAPHS Lecture 11: Cypher / Knowledge Graph Quality Markus Krötzsch Knowledge-Based Systems TU Dresden, 8th Jan 2019 Review: The Cypher Query Language Example: Find pairs of siblings: MATCH (parent)-[:has_child]->(child1),

More information

Semantic Web Technologies: Assignment 1. Axel Polleres Siemens AG Österreich

Semantic Web Technologies: Assignment 1. Axel Polleres Siemens AG Österreich Semantic Web Technologies: Assignment 1 Siemens AG Österreich 1 The assignment: 2 FOAF: 1. Create your own FOAF file. You can use a generator tool such as FOAF- a- Ma>c to generate a skeleton. 2. Make

More information

Knowledge Representation RDF Turtle Namespace

Knowledge Representation RDF Turtle Namespace Knowledge Representation RDF Turtle Namespace Jan Pettersen Nytun, UiA 1 URIs Identify Web Resources Web addresses are the most common URIs, i.e., uniform Resource Locators (URLs). RDF resources are usually

More information

Semantics. Matthew J. Graham CACR. Methods of Computational Science Caltech, 2011 May 10. matthew graham

Semantics. Matthew J. Graham CACR. Methods of Computational Science Caltech, 2011 May 10. matthew graham Semantics Matthew J. Graham CACR Methods of Computational Science Caltech, 2011 May 10 semantic web The future of the Internet (Web 3.0) Decentralized platform for distributed knowledge A web of databases

More information

SEMANTIC WEB 03 RDF DATA MODEL RESOURCE DESCRIPTION FRAMEWORK IMRAN IHSAN ASSISTANT PROFESSOR, AIR UNIVERSITY, ISLAMABAD

SEMANTIC WEB 03 RDF DATA MODEL RESOURCE DESCRIPTION FRAMEWORK IMRAN IHSAN ASSISTANT PROFESSOR, AIR UNIVERSITY, ISLAMABAD SEMANTIC WEB 03 RDF DATA MODEL RESOURCE DESCRIPTION FRAMEWORK IMRAN IHSAN ASSISTANT PROFESSOR, AIR UNIVERSITY, ISLAMABAD WWW.IMRANIHSAN.COM MOTIVATION How do you encode the piece of knowledge: or

More information

Grid Resources Search Engine based on Ontology

Grid Resources Search Engine based on Ontology based on Ontology 12 E-mail: emiao_beyond@163.com Yang Li 3 E-mail: miipl606@163.com Weiguang Xu E-mail: miipl606@163.com Jiabao Wang E-mail: miipl606@163.com Lei Song E-mail: songlei@nudt.edu.cn Jiang

More information

From the Web to the Semantic Web: RDF and RDF Schema

From the Web to the Semantic Web: RDF and RDF Schema From the Web to the Semantic Web: RDF and RDF Schema Languages for web Master s Degree Course in Computer Engineering - (A.Y. 2016/2017) The Semantic Web [Berners-Lee et al., Scientific American, 2001]

More information

Lars Schmidt-Thieme, Information Systems and Machine Learning Lab (ISMLL), University of Hildesheim, Germany, Course on XML and Semantic Web

Lars Schmidt-Thieme, Information Systems and Machine Learning Lab (ISMLL), University of Hildesheim, Germany, Course on XML and Semantic Web Course on XML and Semantic Web Technologies, summer term 2012 0/45 XML and Semantic Web Technologies XML and Semantic Web Technologies II. Semantic Web / 3. SPARQL Query Language for RDF Lars Schmidt-Thieme

More information

Deep integration of Python with Semantic Web technologies

Deep integration of Python with Semantic Web technologies Deep integration of Python with Semantic Web technologies Marian Babik, Ladislav Hluchy Intelligent and Knowledge Technologies Group Institute of Informatics, SAS Goals of the presentation Brief introduction

More information

Orchestrating Music Queries via the Semantic Web

Orchestrating Music Queries via the Semantic Web Orchestrating Music Queries via the Semantic Web Milos Vukicevic, John Galletly American University in Bulgaria Blagoevgrad 2700 Bulgaria +359 73 888 466 milossmi@gmail.com, jgalletly@aubg.bg Abstract

More information

Multi-agent and Semantic Web Systems: RDF Data Structures

Multi-agent and Semantic Web Systems: RDF Data Structures Multi-agent and Semantic Web Systems: RDF Data Structures Fiona McNeill School of Informatics 31st January 2013 Fiona McNeill Multi-agent Semantic Web Systems: RDF Data Structures 31st January 2013 0/25

More information

Extracting knowledge from Ontology using Jena for Semantic Web

Extracting knowledge from Ontology using Jena for Semantic Web Extracting knowledge from Ontology using Jena for Semantic Web Ayesha Ameen I.T Department Deccan College of Engineering and Technology Hyderabad A.P, India ameenayesha@gmail.com Khaleel Ur Rahman Khan

More information

SRM UNIVERSITY. : Batch1: TP1102 Batch2: TP406

SRM UNIVERSITY. : Batch1: TP1102 Batch2: TP406 1 SRM UNIVERSITY FACULTY OF ENGINEERING AND TECHNOLOGY SCHOOL OF COMPUTING DEPARTMENT OF COMPUTERSCIENCE AND ENGINEERING COURSE PLAN Course Code Course Title Semester : 15CS424E : SEMANTIC WEB : V Course

More information

Schema-Agnostic Query Rewriting in SPARQL 1.1

Schema-Agnostic Query Rewriting in SPARQL 1.1 Fakultät Informatik, Institut Künstliche Intelligenz, Professur Computational Logic Schema-Agnostic Query Rewriting in SPARQL 1.1 Stefan Bischof, Markus Krötzsch, Axel Polleres and Sebastian Rudolph Plain

More information

Semantic Web Technologies

Semantic Web Technologies 1/57 Introduction and RDF Jos de Bruijn debruijn@inf.unibz.it KRDB Research Group Free University of Bolzano, Italy 3 October 2007 2/57 Outline Organization Semantic Web Limitations of the Web Machine-processable

More information

Semantic Web Modeling Languages Part I: RDF

Semantic Web Modeling Languages Part I: RDF Semantic Web Modeling Languages Part I: RDF Markus Krötzsch & Sebastian Rudolph ESSLLI 2009 Bordeaux slides available at http://semantic-web-book.org/page/esslli09_lecture Outline A Brief Motivation RDF

More information

FOUNDATIONS OF DATABASES AND QUERY LANGUAGES

FOUNDATIONS OF DATABASES AND QUERY LANGUAGES FOUNDATIONS OF DATABASES AND QUERY LANGUAGES Lecture 14: Database Theory in Practice Markus Krötzsch TU Dresden, 20 July 2015 Overview 1. Introduction Relational data model 2. First-order queries 3. Complexity

More information

The P2 Registry

The P2 Registry The P2 Registry -------------------------------------- Where the Semantic Web and Web 2.0 meet Digital Preservation David Tarrant, Steve Hitchcock & Les Carr davetaz / sh94r / lac @ecs.soton.ac.uk School

More information

Implementing and extending SPARQL queries over DLVHEX

Implementing and extending SPARQL queries over DLVHEX Implementing and extending SPARQL queries over DLVHEX Gennaro Frazzingaro Bachelor Thesis Presentation - October 5, 2007 From a work performed in Madrid, Spain Galway, Ireland Rende, Italy How to solve

More information

Using SPARQL with RDFS and OWL Entailment

Using SPARQL with RDFS and OWL Entailment Using SPARQL with RDFS and OWL Entailment Birte Glimm The University of Oxford, Department of Computer Science, UK Abstract. This chapter accompanies the lecture on SPARQL with entailment regimes at the

More information

2. Knowledge Representation Applied Artificial Intelligence

2. Knowledge Representation Applied Artificial Intelligence 2. Knowledge Representation Applied Artificial Intelligence Prof. Dr. Bernhard Humm Faculty of Computer Science Hochschule Darmstadt University of Applied Sciences 1 Retrospective Introduction to AI What

More information

Semantic Web Systems Querying Jacques Fleuriot School of Informatics

Semantic Web Systems Querying Jacques Fleuriot School of Informatics Semantic Web Systems Querying Jacques Fleuriot School of Informatics 5 th February 2015 In the previous lecture l Serialising RDF in XML RDF Triples with literal Object edstaff:9888 foaf:name Ewan Klein.

More information

FOUNDATIONS OF SEMANTIC WEB TECHNOLOGIES

FOUNDATIONS OF SEMANTIC WEB TECHNOLOGIES FOUNDATIONS OF SEMANTIC WEB TECHNOLOGIES Semantics of RDF(S) Sebastian Rudolph Dresden, 16 April 2013 Agenda 1 Motivation and Considerations 2 Simple Entailment 3 RDF Entailment 4 RDFS Entailment 5 Downsides

More information

Contents. G52IWS: The Semantic Web. The Semantic Web. Semantic web elements. Semantic Web technologies. Semantic Web Services

Contents. G52IWS: The Semantic Web. The Semantic Web. Semantic web elements. Semantic Web technologies. Semantic Web Services Contents G52IWS: The Semantic Web Chris Greenhalgh 2007-11-10 Introduction to the Semantic Web Semantic Web technologies Overview RDF OWL Semantic Web Services Concluding comments 1 See Developing Semantic

More information

H1 Spring B. Programmers need to learn the SOAP schema so as to offer and use Web services.

H1 Spring B. Programmers need to learn the SOAP schema so as to offer and use Web services. 1. (24 points) Identify all of the following statements that are true about the basics of services. A. If you know that two parties implement SOAP, then you can safely conclude they will interoperate at

More information

Library of Congress BIBFRAME Pilot. NOTSL Fall Meeting October 30, 2015

Library of Congress BIBFRAME Pilot. NOTSL Fall Meeting October 30, 2015 Library of Congress BIBFRAME Pilot NOTSL Fall Meeting October 30, 2015 THE BIBFRAME EDITOR AND THE LC PILOT The Semantic Web and Linked Data : a Recap of the Key Concepts Learning Objectives Describe the

More information

Making BioPAX SPARQL

Making BioPAX SPARQL Making BioPAX SPARQL hands on... start a terminal create a directory jena_workspace, move into that directory download jena.jar (http://tinyurl.com/3vlp7rw) download biopax data (http://www.biopax.org/junk/homosapiens.nt

More information

RDF AND SPARQL. Part III: Semantics of RDF(S) Dresden, August Sebastian Rudolph ICCL Summer School

RDF AND SPARQL. Part III: Semantics of RDF(S) Dresden, August Sebastian Rudolph ICCL Summer School RDF AND SPARQL Part III: Semantics of RDF(S) Sebastian Rudolph ICCL Summer School Dresden, August 2013 Agenda 1 Motivation and Considerations 2 Simple Entailment 3 RDF Entailment 4 RDFS Entailment 5 Downsides

More information

XML and Semantic Web Technologies. III. Semantic Web / 3. SPARQL Query Language for RDF

XML and Semantic Web Technologies. III. Semantic Web / 3. SPARQL Query Language for RDF XML and Semantic Web Technologies XML and Semantic Web Technologies III. Semantic Web / 3. SPARQL Query Language for RDF Lars Schmidt-Thieme Information Systems and Machine Learning Lab (ISMLL) Institute

More information

SPARQL ME-E4300 Semantic Web,

SPARQL ME-E4300 Semantic Web, SPARQL ME-E4300 Semantic Web, 27.1.2016 Jouni Tuominen Semantic Computing Research Group (SeCo), http://seco.cs.aalto.fi jouni.tuominen@aalto.fi SPARQL SPARQL Protocol and RDF Query Language sparkle 2

More information

For return on 19 January 2018 (late submission: 2 February 2018)

For return on 19 January 2018 (late submission: 2 February 2018) Semantic Technologies Autumn 2017 Coursework For return on 19 January 2018 (late submission: 2 February 2018) Electronic submission:.pdf and.owl files only 1. (6%) Consider the following XML document:

More information

The Semantic Web Revisited. Nigel Shadbolt Tim Berners-Lee Wendy Hall

The Semantic Web Revisited. Nigel Shadbolt Tim Berners-Lee Wendy Hall The Semantic Web Revisited Nigel Shadbolt Tim Berners-Lee Wendy Hall Today sweb It is designed for human consumption Information retrieval is mainly supported by keyword-based search engines Some problems

More information

Semantic Days 2011 Tutorial Semantic Web Technologies

Semantic Days 2011 Tutorial Semantic Web Technologies Semantic Days 2011 Tutorial Semantic Web Technologies Lecture 2: RDF, The Resource Description Framework Martin Giese 7th June 2011 Department of Informatics University of Oslo Outline 1 The RDF data model

More information

SPARQL. Dr Nicholas Gibbins

SPARQL. Dr Nicholas Gibbins SPARQL Dr Nicholas Gibbins nmg@ecs.soton.ac.uk Semantic Web Applications Technologies considered so far allow us to create representation schemes (RDFS, OWL) and to represent data (RDF) We can put data

More information

Using RDF to Model the Structure and Process of Systems

Using RDF to Model the Structure and Process of Systems Using RDF to Model the Structure and Process of Systems Marko A. Rodriguez Jennifer H. Watkins Johan Bollen Los Alamos National Laboratory {marko,jhw,jbollen}@lanl.gov Carlos Gershenson New England Complex

More information

Knowledge Representation for the Semantic Web

Knowledge Representation for the Semantic Web Knowledge Representation for the Semantic Web Winter Quarter 2010 Pascal Hitzler Slides 6 02/04/2010 Kno.e.sis Center Wright State University, Dayton, OH http://www.knoesis.org/pascal/ KR4SW Winter 2010

More information

The Semantic Web. Web Programming. Uta Priss ZELL, Ostfalia University. The Semantic Web RDF and OWL Ontologies

The Semantic Web. Web Programming. Uta Priss ZELL, Ostfalia University. The Semantic Web RDF and OWL Ontologies The Semantic Web Web Programming Uta Priss ZELL, Ostfalia University 2013 Web Programming The Semantic Web Slide 1/13 Outline The Semantic Web RDF and OWL Ontologies Web Programming The Semantic Web Slide

More information

Ontological Modeling: Part 7

Ontological Modeling: Part 7 Ontological Modeling: Part 7 Terry Halpin LogicBlox and INTI International University This is the seventh in a series of articles on ontology-based approaches to modeling. The main focus is on popular

More information

Knowledge Representation VII - IKT507. SPARQL stands for SPARQL Protocol And RDF Query Language

Knowledge Representation VII - IKT507. SPARQL stands for SPARQL Protocol And RDF Query Language Knowledge Representation VII - IKT507 This sentence is false! PARQL stands for PARQL Protocol And RDF Query Language Jan Pettersen Nytun, UiA 1 The emantic Web tack Hierarchy of languages, where each layer

More information

Chapter 3 Querying RDF stores with SPARQL

Chapter 3 Querying RDF stores with SPARQL Chapter 3 Querying RDF stores with SPARQL Why an RDF Query Language? l Why not use an XML query language? l XML at a lower level of abstraction than RDF l There are various ways of syntactically representing

More information

KNOWLEDGE GRAPHS. Lecture 2: Encoding Graphs with RDF. TU Dresden, 23th Oct Markus Krötzsch Knowledge-Based Systems

KNOWLEDGE GRAPHS. Lecture 2: Encoding Graphs with RDF. TU Dresden, 23th Oct Markus Krötzsch Knowledge-Based Systems KNOWLEDGE GRAPHS Lecture 2: Encoding Graphs with RDF Markus Krötzsch Knowledge-Based Systems TU Dresden, 23th Oct 2018 Encoding Graphs We have seen that graphs can be encoded in several ways: Adjacency

More information

SEMANTIC WEB AN INTRODUCTION. Luigi De https://elite.polito.it

SEMANTIC WEB AN INTRODUCTION. Luigi De https://elite.polito.it SEMANTIC WEB AN INTRODUCTION Luigi De Russis @luigidr https://elite.polito.it THE WEB IS A WEB OF DOCUMENT FOR PEOPLE, NOT FOR MACHINES 2 THE WEB IS A WEB OF DOCUMENT 3 THE SEMANTIC WEB IS A WEB OF DATA

More information

INF3580/4580 Semantic Technologies Spring 2017

INF3580/4580 Semantic Technologies Spring 2017 INF3580/4580 Semantic Technologies Spring 2017 Lecture 9: Model Semantics & Reasoning Martin Giese 13th March 2017 Department of Informatics University of Oslo Today s Plan 1 Repetition: RDF semantics

More information

Tony Mallia Edmond Scientific

Tony Mallia Edmond Scientific Tony Mallia Edmond Scientific www.edmondsci.com Exchange format W3C defines several formats RDF/XML, OWL/XML, OWL Functional syntax + others. RDF/XML can support OWL. Record (e.g. single FHIR Resource)

More information

Domain Specific Semantic Web Search Engine

Domain Specific Semantic Web Search Engine Domain Specific Semantic Web Search Engine KONIDENA KRUPA MANI BALA 1, MADDUKURI SUSMITHA 2, GARRE SOWMYA 3, GARIKIPATI SIRISHA 4, PUPPALA POTHU RAJU 5 1,2,3,4 B.Tech, Computer Science, Vasireddy Venkatadri

More information

Table of Contents. iii

Table of Contents. iii Current Web 1 1.1 Current Web History 1 1.2 Current Web Characteristics 2 1.2.1 Current Web Features 2 1.2.2 Current Web Benefits 3 1.2.3. Current Web Applications 3 1.3 Why the Current Web is not Enough

More information

Web NDL Authorities SPARQL API Specication

Web NDL Authorities SPARQL API Specication Web NDL Authorities SPARQL API Specication National Diet Library of Japan March 31th, 2014 Contents 1 The Outline of the Web NDLA SPARQL API 2 1.1 SPARQL query API.................................... 2

More information

PECULIARITIES OF LINKED DATA PROCESSING IN SEMANTIC APPLICATIONS. Sergey Shcherbak, Ilona Galushka, Sergey Soloshich, Valeriy Zavgorodniy

PECULIARITIES OF LINKED DATA PROCESSING IN SEMANTIC APPLICATIONS. Sergey Shcherbak, Ilona Galushka, Sergey Soloshich, Valeriy Zavgorodniy International Journal "Information Models and Analyses" Vol.2 / 2013, Number 2 139 PECULIARITIES OF LINKED DATA PROCESSING IN SEMANTIC APPLICATIONS Sergey Shcherbak, Ilona Galushka, Sergey Soloshich, Valeriy

More information

Semantic Web Engineering

Semantic Web Engineering Semantic Web Engineering Gerald Reif reif@ifi.unizh.ch Fr. 10:15-12:00, Room 2.A.10 RDF Schema Trust Proof Logic Ontology vocabulary RDF + RDF Schema XML + NS + XML Schema Unicode URI Digital Signature

More information

Semantic Web and Python Concepts to Application development

Semantic Web and Python Concepts to Application development PyCon 2009 IISc, Bangalore, India Semantic Web and Python Concepts to Application development Vinay Modi Voice Pitara Technologies Private Limited Outline Web Need better web for the future Knowledge Representation

More information

The Implementation of Semantic Web Technology in Traditional Plant Medicine

The Implementation of Semantic Web Technology in Traditional Plant Medicine The Implementation of Semantic Web Technology in Traditional Plant Medicine Nur Ana 1, A la Syauqi 2, M Faisal 3 123 Informatics Engineering, Faculty Science and Technology State Islamic University Maulana

More information

Profiles Research Networking Software API Guide

Profiles Research Networking Software API Guide Profiles Research Networking Software API Guide Documentation Version: March 13, 2013 Software Version: ProfilesRNS_1.0.3 Table of Contents Overview... 2 PersonID, URI, and Aliases... 3 1) Profiles RNS

More information

Querying RDF & RDFS. Several query languages exist to retrieve

Querying RDF & RDFS. Several query languages exist to retrieve Knowledge management: Querying with SPARQL 1 Querying RDF & RDFS Several query languages exist to retrieve resulting triples from RDF RDQL SERQL SPARQL These languages use triple patterns as input and

More information

Ontological Modeling: Part 14

Ontological Modeling: Part 14 Ontological Modeling: Part 14 Terry Halpin INTI International University This is the fourteenth in a series of articles on ontology-based approaches to modeling. The main focus is on popular ontology languages

More information

Developing markup metaschemas to support interoperation among resources with different markup schemas

Developing markup metaschemas to support interoperation among resources with different markup schemas Developing markup metaschemas to support interoperation among resources with different markup schemas Gary Simons SIL International ACH/ALLC Joint Conference 29 May to 2 June 2003, Athens, GA The Context

More information

Semantic reasoning for dynamic knowledge bases. Lionel Médini M2IA Knowledge Dynamics 2018

Semantic reasoning for dynamic knowledge bases. Lionel Médini M2IA Knowledge Dynamics 2018 Semantic reasoning for dynamic knowledge bases Lionel Médini M2IA Knowledge Dynamics 2018 1 Outline Summary Logics Semantic Web Languages Reasoning Web-based reasoning techniques Reasoning using SemWeb

More information

Semantic Web Solutions

Semantic Web Solutions MSc Thesis January 2007 Semantic Web Solutions By Hafiz Hammad Rubbani (hammad@itu.dk) Supervisors Henning Niss Thomas Hildebrandt ABSTRACT.5 AIM AND GOALS... 6 SCOPE.6 METHODOLOGY... 7 WHO SHOULD READ

More information

SPARQL By Example: The Cheat Sheet

SPARQL By Example: The Cheat Sheet SPARQL By Example: The Cheat Sheet Accompanies slides at: http://www.cambridgesemantics.com/semantic-university/sparql-by-example Comments & questions to: Lee Feigenbaum VP

More information

Knowledge Engineering with Semantic Web Technologies

Knowledge Engineering with Semantic Web Technologies This file is licensed under the Creative Commons Attribution-NonCommercial 3.0 (CC BY-NC 3.0) Knowledge Engineering with Semantic Web Technologies Lecture 3 Ontologies and Logic 3.7 Description Logics

More information

Efficient Querying of Web Services Using Ontologies

Efficient Querying of Web Services Using Ontologies Journal of Algorithms & Computational Technology Vol. 4 No. 4 575 Efficient Querying of Web Services Using Ontologies K. Saravanan, S. Kripeshwari and Arunkumar Thangavelu School of Computing Sciences,

More information

RuleML and SWRL, Proof and Trust

RuleML and SWRL, Proof and Trust RuleML and SWRL, Proof and Trust Semantic Web F. Abel and D. Krause IVS Semantic Web Group January 17, 2008 1 Solution 1: RuleML Express the following RuleML code as a human-readable First Order Logic

More information

Select all persons who belong to the class Father. SPARQL query PREFIX g: <

Select all persons who belong to the class Father. SPARQL query PREFIX g: < TASK 2 Mistakes: In general, tasks were done well Just to avoid unnecessary information overloading I provide possible right answers (some other solutions might also exist): Task 2-1: Select all persons

More information

COMPUTER AND INFORMATION SCIENCE JENA DB. Group Abhishek Kumar Harshvardhan Singh Abhisek Mohanty Suhas Tumkur Chandrashekhara

COMPUTER AND INFORMATION SCIENCE JENA DB. Group Abhishek Kumar Harshvardhan Singh Abhisek Mohanty Suhas Tumkur Chandrashekhara JENA DB Group - 10 Abhishek Kumar Harshvardhan Singh Abhisek Mohanty Suhas Tumkur Chandrashekhara OUTLINE Introduction Data Model Query Language Implementation Features Applications Introduction Open Source

More information

SADI Semantic Web Services

SADI Semantic Web Services SADI Semantic Web Services London, UK 8 December 8 2011 SADI Semantic Web Services Instructor: Luke McCarthy http:// sadiframework.org/training/ 2 Contents 2.1 Introduction to Semantic Web Services 2.1

More information

Semantic Integration with Apache Jena and Apache Stanbol

Semantic Integration with Apache Jena and Apache Stanbol Semantic Integration with Apache Jena and Apache Stanbol All Things Open Raleigh, NC Oct. 22, 2014 Overview Theory (~10 mins) Application Examples (~10 mins) Technical Details (~25 mins) What do we mean

More information

KNOWLEDGE GRAPHS. Lecture 3: Modelling in RDF/Introduction to SPARQL. TU Dresden, 30th Oct Markus Krötzsch Knowledge-Based Systems

KNOWLEDGE GRAPHS. Lecture 3: Modelling in RDF/Introduction to SPARQL. TU Dresden, 30th Oct Markus Krötzsch Knowledge-Based Systems KNOWLEDGE GRAPHS Lecture 3: Modelling in RDF/Introduction to SPARQL Markus Krötzsch Knowledge-Based Systems TU Dresden, 30th Oct 2018 Review: RDF Graphs The W3C Resource Description Framework considers

More information

The Semantic Web DEFINITIONS & APPLICATIONS

The Semantic Web DEFINITIONS & APPLICATIONS The Semantic Web DEFINITIONS & APPLICATIONS Data on the Web There are more an more data on the Web Government data, health related data, general knowledge, company information, flight information, restaurants,

More information

Interacting with Linked Data Part I: General Introduction

Interacting with Linked Data Part I: General Introduction Interacting with Linked Data Part I: General Introduction Agenda Part 0: Welcome Part I: General Introduction to Semantic Technologies Part II: Advanced Concepts Part III: OWLIM Part IV: Information Workbench-

More information

Semantic-Based Web Mining Under the Framework of Agent

Semantic-Based Web Mining Under the Framework of Agent Semantic-Based Web Mining Under the Framework of Agent Usha Venna K Syama Sundara Rao Abstract To make automatic service discovery possible, we need to add semantics to the Web service. A semantic-based

More information

arxiv: v1 [cs.ai] 19 Oct 2017

arxiv: v1 [cs.ai] 19 Oct 2017 Swift Linked Data Miner: Mining OWL 2 EL Class Expressions Directly from Online RDF Datasets J. Potoniec a,, P. Jakubowski a, A. Ławrynowicz a a Faculty of Computing, Poznan University of Technology, ul.

More information