SPARQL. Part III. Jan Pettersen Nytun, UiA

Size: px
Start display at page:

Download "SPARQL. Part III. Jan Pettersen Nytun, UiA"

Transcription

1 ARQL Part III Jan Pettersen Nytun, UiA 1

2 Agenda P Example with: - RDER BY - UM Example continues with: - GRUP BY - GRUP BY together with UM Example continues with: - HAVING - BIND - CNCAT New example with: - CNTRUCT - INERT - DELETE - UNIN - CUNT page 2

3 Example: Explore salaries of the employees of a company Jan Pettersen Nytun, UIA, page 3

4 4

5 Jan Pettersen Nytun, UIA, page 5

6 Jan Pettersen Nytun, UIA, page 6 P List alaries, i.e., list employee, year and amount tep 1: What to list PREFIX rdf: < PREFIX owl: < PREFIX rdfs: < PREFIX xsd: < PREFIX : < ELECT?employee?year?amount WHERE { }

7 Jan Pettersen Nytun, UIA, page 7 P tep 2: Get all resources with salary ELECT?employee?year?amount WHERE {?employee :hasalary :salary }?salary :hasalary?employee

8 Jan Pettersen Nytun, UIA, page 8 P :hasalary?salary?employee Totally 6 matches: :bob :hasalary :bobalaray2013. :bob :hasalary :bobalaray2014.

9 What if some other types of resources have salaries? ELECT?employee?year?amount WHERE {?employee :hasalary?salary.?employee rdf:type :Employee }?salary Employee :hasalary rdf:type?employee Jan Pettersen Nytun, UIA, page 9

10 Jan Pettersen Nytun, UIA, page 10 P?salary :hasalary rdf:type Employee?employee Again there are 6 matches. howing one of them: (composed of 2 triples): :bob :hasalary :bobalaray2014. :bob rdf:type :Employee. Totally 6 matches, but showing only one match:

11 tep 3: Get year and amount also [4] PREFIX rdf: < PREFIX owl: < PREFIX rdfs: < PREFIX xsd: < PREFIX : < ELECT?employee?year?amount WHERE {?employee :hasalary?salary.?salary :hasyear?year.?salary :hasamount?amount} Jan Pettersen Nytun, UIA, page 11

12 List alaries rdered By Year [4] P PREFIX rdf: < PREFIX owl: < PREFIX rdfs: < PREFIX xsd: < PREFIX : < ELECT?employee?year?amount WHERE {?employee :hasalary?salary.?salary :hasyear?year.?salary :hasamount?amount} RDER BY?year Jan Pettersen Nytun, UIA, page 12

13 Agenda P Example with: - RDER BY - UM Example continues with: - GRUP BY - GRUP BY together with UM Example continues with: - HAVING - BIND - CNCAT New example with: - CNTRUCT - INERT - DELETE - UNIN - CUNT page 13

14 P Total um f All alaries [4] PREFIX rdf: < PREFIX owl: < PREFIX rdfs: < PREFIX xsd: < PREFIX : < ELECT (UM (?amount) A?total) WHERE {?employee :hasalary?salary.?salary :hasyear?year.?salary :hasamount?amount} Jan Pettersen Nytun, UIA, page 14

15 Agenda P Example with: - RDER BY - UM Example continues with: - GRUP BY - GRUP BY together with UM Example continues with: - HAVING - BIND - CNCAT New example with: - CNTRUCT - INERT - DELETE - UNIN - CUNT page 15

16 How to get: alaries Per Year Jan Pettersen Nytun, UIA, page 16

17 [3] By default a solution set consists of a single group, containing all solutions. WHERE {?employee :hasalary?salary.?salary :hasyear?year.?salary :hasamount?amount} Assume this gives the following 4 matches: :e1 :hasalary :s1. :s1 :hasyear :s1 :hasamount 100. :e2 :hasalary :s2. :s2 :hasyear :s2 :hasamount 200. :e3 :hasalary :s3. :s3 :hasyear :s3 :hasamount :e4 :hasalary :s4. :s4 :hasyear :s4 :hasamount 400. Jan Pettersen Nytun, UIA, page 17

18 Grouping may be specified using GRUP BY. ELECT WHERE {?employee :hasalary?salary.?salary :hasyear?year.?salary :hasamount?amount} GRUP BY?year Jan Pettersen Nytun, UIA, page 18

19 :e1 :hasalary :s1. :s1 :hasyear :s1 :hasamount 100. :e2 :hasalary :s2. :s2 :hasyear :s2 :hasamount 200. :e3 :hasalary :s3. :s3 :hasyear :s3 :hasamount :e4 :hasalary :s4. :s4 :hasyear :s4 :hasamount 400. WHERE { } GRUP BY?year Gives 2 groups: :e1 :hasalary :s1. :s1 :hasyear :s1 :hasamount 100. :e4 :hasalary :s4. :s4 :hasyear :s4 :hasamount 400. :e2 :hasalary :s2. :s2 :hasyear :s2 :hasamount 200. :e3 :hasalary :s3. :s3 :hasyear :s3 :hasamount page 19

20 Aggregates Aggregates apply expressions over groups of solutions. Aggregates defined in version 1.1 of PARQL are CUNT, UM, MIN, MAX, AVG,... ELECT?year (UM (?amount) A?total) WHERE {?employee :hasalary?salary.?salary :hasyear?year.?salary :hasamount?amount} GRUP BY?year Jan Pettersen Nytun, UIA, page 20

21 :e1 :hasalary :s1. :s1 :hasyear :s1 :hasamount 100. :e4 :hasalary :s4. :s4 :hasyear :s4 :hasamount 400. :e2 :hasalary :s2. :s2 :hasyear :s2 :hasamount 200. :e3 :hasalary :s3. :s3 :hasyear :s3 :hasamount ELECT?year (UM (?amount) A?total). Gives 2 results: year total page 21

22 P alaries Per Year [4] PREFIX rdf: < PREFIX owl: < PREFIX rdfs: < PREFIX xsd: < PREFIX : < ELECT?year (UM (?amount) A?total) WHERE {?employee :hasalary?salary. GRUP BY?year?salary :hasyear?year.?salary :hasamount?amount} page 22

23 Adding several salaries per year for some employees : Jan Pettersen Nytun, UIA, page 23

24 ntology : owl: rdf: xml: xsd: rdfs: < < rdf:type owl:ntology. :hasalary rdf:type owl:bjectproperty ; rdfs:domain :Employee ; rdfs:range :alary. :hasamount rdf:type owl:datatypeproperty ; rdfs:range xsd:int. :hasname rdf:type owl:datatypeproperty. :hasyear rdf:type owl:datatypeproperty ; rdfs:range xsd:int. 24

25 How to see the salaries summed up for each employees by year [4] ELECT?year?employee (UM (?amount) A?total) WHERE {?employee :hasalary?salary.?salary :hasyear?year.?salary :hasamount?amount } GRUP BY?year?employee Jan Pettersen Nytun, UIA, page 25

26 P [4] ELECT?year?employee (UM (?amount) A?total) WHERE {?employee :hasalary?salary.?salary :hasyear?year.?salary :hasamount?amount } GRUP BY?year?employee RDER BY?year?employee

27 Agenda P Example with: - RDER BY - UM Example continues with: - GRUP BY - GRUP BY together with UM Example continues with: - HAVING - BIND - CNCAT New example with: - CNTRUCT - INERT - DELETE - UNIN - CUNT page 27

28 nly showing yearly salaries higher than [4] ELECT?year?employee (UM (?amount) A?total) WHERE {?employee :hasalary?salary.?salary :hasyear?year.?salary :hasamount?amount } GRUP BY?year?employee HAVING (?total > ) RDER BY?year?employee ld query result: Jan Pettersen Nytun, UIA, page 28

29 [4]: HAVING and FILTER are very similar... FILTER refers to variables bound within a particular graph pattern always appears in the pattern (between { and } ), while HAVING refers to variables defined by aggregations in the ELECT clause, and hence always appears outside a graph pattern. Jan Pettersen Nytun, UIA, page 29

30 Agenda P Example with: - RDER BY - UM Example continues with: - GRUP BY - GRUP BY together with UM Example continues with: - HAVING - BIND - CNCAT New example with: - CNTRUCT - INERT - DELETE - UNIN - CUNT page 30

31 Assignment [4]: An assignment lets the query write specifically the value of a variable through some computation assigning a value to that variable, rather than matching some value in the data. Jan Pettersen Nytun, UIA, page 31

32 : :Bart :hasparent :Homer. :Bart :hasparent :Marge. :Lisa :hasparent :Homer. :Lisa :hasparent :Marge. :Maggie :hasparent :Homer. :Maggie :hasparent :Marge. :Ling :hasparent :elma. ### :Herb :hasparent :Abraham. :Herb :hasparent :Mona. :Homer :hasparent :Abraham. :Homer :hasparent :Mona. :Marge :hasparent :Clancy. :Marge :hasparent :Jackie. :Patty :hasparent :Clancy. :Patty :hasparent :Jackie. :elma :hasparent :Clancy. :elma :hasparent :Jackie. ### :Abraham :gender :male. :Mona :gender :female. :Clancy :gender :male. :Jackie :gender :female. :Herb :gender :male. :Homer :gender :male. :Marge :gender :female. :Patty :gender :female. :elma :gender :female. :Bart :gender :male. :Lisa :gender :female. :Maggie :gender :female. :Ling :gender :female.

33 How to also list grandchild which in our example is always :Maggie 2 Etc. Jan Pettersen Nytun, UIA, page 33

34 PREFIX : < PREFIX foaf: < PREFIX rdf: < PREFIX owl: < PREFIX rdfs: < PREFIX xsd: < ELECT?grandmother WHERE { :Maggie :hasparent?parent.?parent :hasmother?grandmother } RDER BY?grandmother 2 Etc. Jan Pettersen Nytun, UIA, page 34

35 P PREFIX : < PREFIX foaf: < PREFIX rdf: < PREFIX owl: < PREFIX rdfs: < PREFIX xsd: < ELECT?grandchildName?grandmother WHERE { :Maggie foaf:name?grandchildname. :Maggie :hasparent?parent.?parent :hasmother?grandmother } RDER BY?grandmother 2 Etc. Jan Pettersen Nytun, UIA, page 35

36 P PREFIX : < PREFIX foaf: < PREFIX rdf: < PREFIX owl: < PREFIX rdfs: < PREFIX xsd: < ELECT?grandchildName?grandmother WHERE { :Maggie :hasparent?parent.?parent :hasmother?grandmother BIND ("some name" as?grandchildname) } RDER BY?grandmother 2 Etc. Jan Pettersen Nytun, UIA, page 36

37 [3]: Jan Pettersen Nytun, UIA, page 37

38 Agenda P Example with: - RDER BY - UM Example continues with: - GRUP BY - GRUP BY together with UM Example continues with: - HAVING - BIND - CNCAT New example with: - CNTRUCT - INERT - DELETE - UNIN - CUNT page 38

39 [4]: concat ELECT (concat (?first, " ",?last) A?fullname) WHERE { :Workingntologist dc:creator?author.?author :firstname?first.?author :lastname?last. } [3]: page 39

40 Agenda P Example with: - RDER BY - UM Example continues with: - GRUP BY - GRUP BY together with UM Example continues with: - HAVING - BIND - CNCAT New example with: - CNTRUCT - INERT - DELETE - UNIN - CUNT page 40

41 page 41

42 Who is who's grandfather??grandchild :hasparent?parent.?parent :hasparent?grandfather.

43 REFIX xsd: < PREFIX rdf: < PREFIX owl: < PREFIX rdfs: < PREFIX : < ELECT?grandchild?grandfather WHERE {?grandchild :hasparent?parent.?parent :hasparent?grandfather.?grandfather :gender :male }

44 PARQL RULE UING PARQL A A RULE LANGUAGE [4] PARQL CNTRUCT allows us to specify templates of new information based on patterns found in old information sometimes called a Rule Whenever you see this, conclude that. Example.: If John s father is Joe, then Joe s son is John Jan Pettersen Nytun, UIA, page 44

45 CNTRUCT The result of a query may be an RDF graph. [3]: The CNTRUCT query form returns a single RDF graph specified by a graph template. Jan Pettersen Nytun, UIA, page 45

46 CNTRUCT QUERY Returns a single RDF graph specified by a graph template 46

47 UING REULT F CNTRUCT QUERIE [4] ophisticated RDF query systems provide workbenches a variety of options for what to do with constructed triples: Insert the constructed triples back into the original data source tore the constructed triples as a separate graph tore the constructed triples into a new dataset (in another database) erialize the results and save them to a file. Jan Pettersen Nytun, UIA, page 47

48 Agenda P Example with: - RDER BY - UM Example continues with: - GRUP BY - GRUP BY together with UM Example continues with: - HAVING - BIND - CNCAT New example with: - CNTRUCT - INERT - DELETE - UNIN - CUNT page 48

49 The CNTRUCT tatement returns a separate graph. Use INERT if you want to have the triples stored in the ontology.

50 REFIX xsd: < PREFIX rdf: < PREFIX owl: < PREFIX rdfs: < PREFIX : < INERT {?grandchild :hasgrandfather?grandfather } WHERE {?grandchild :hasparent?parent.?parent :hasparent?grandfather.?grandfather :gender :male } Adds to ontology: < < < Etc.

51 Agenda P Example with: - RDER BY - UM Example continues with: - GRUP BY - GRUP BY together with UM Example continues with: - HAVING - BIND - CNCAT New example with: - CNTRUCT - INERT - DELETE - UNIN - CUNT page 51

52 DELETE tatement 52

53 Agenda P Example with: - RDER BY - UM Example continues with: - GRUP BY - GRUP BY together with UM Example continues with: - HAVING - BIND - CNCAT New example with: - CNTRUCT - INERT - DELETE - UNIN - CUNT page 53

54 Rule Example: The Nephew/Niece-Uncle Relation Construct all nephew-uncle triples given the following triples: :Ester rdf:type :Woman ; :hasbrother :lav, :igmund. :Jan rdf:type :Man ; :hasparent :igmund. :Kirsten rdf:type :Woman ; :hasparent :igmund. :lav rdf:type :Man ; :hasister :Ester ; :hasbrother :igmund. :igmund rdf:type :Man ; :hasister :Ester. :igrund rdf:type :Woman ; :hasparent :igmund. The following triples should be produced: :Jan :hasuncle :lav. :Kirsten :hasuncle :lav. (The niece/nephew-ant relations are ignored.) Jan Pettersen Nytun, UIA, page 54

55 :Ester rdf:type :Woman ; :hasbrother :lav, :igmund. :Jan rdf:type :Man ; :hasparent :igmund. :Kirsten rdf:type :Woman ; :hasparent :igmund. :lav rdf:type :Man ; :hasister :Ester ; :hasbrother :igmund. :igmund rdf:type :Man ; :hasister :Ester. :igrund rdf:type :Woman ; :hasparent :igmund. PREFIX : < PREFIX rdf: < PREFIX owl: < PREFIX rdfs: < PREFIX xsd: < CNTRUCT {?n :hasuncle?uncle} WHERE {?n :hasparent?parent.?parent :hasbrother?uncle } The result of this CNTRUCT statement is empty why? Jan Pettersen Nytun, UIA, page 55

56 :Ester rdf:type :Woman ; :hasbrother :lav, :igmund. :Jan rdf:type :Man ; :hasparent :igmund. :Kirsten rdf:type :Woman ; :hasparent :igmund. :lav rdf:type :Man ; :hasister :Ester ; :hasbrother :igmund. :igmund rdf:type :Man ; :hasister :Ester. :igrund rdf:type :Woman ; :hasparent :igmund. PREFIX : < PREFIX rdf: < PREFIX owl: < PREFIX rdfs: < PREFIX xsd: < CNTRUCT {?n :hasuncle?uncle} WHERE {?n :hasparent?parent.?parent :hasbrother?uncle } Change order of?parent and?uncle in last triple of the WHERE-clause and there will be match on :lav :hasbrother :igmund. However, one could add triple :igmund :hasbrother :lav. to the RDF data. Jan Pettersen Nytun, UIA, page 56

57 :Ester rdf:type :Woman ; :hasbrother :lav, :igmund. :Jan rdf:type :Man ; :hasparent :igmund. :Kirsten rdf:type :Woman ; :hasparent :igmund. :lav rdf:type :Man ; :hasister :Ester ; :hasbrother :igmund. :igmund rdf:type :Man ; :hasister :Ester. :igrund rdf:type :Woman ; :hasparent :igmund. PREFIX : < PREFIX rdf: < PREFIX owl: < PREFIX rdfs: < PREFIX xsd: < CNTRUCT {?n :hasuncle?uncle} WHERE {?n :hasparent?parent.?uncle :hasbrother?parent.?uncle rdf:type :Man. } Jan Pettersen Nytun, UIA, page 57

58 UNIN A graph pattern is made up of several triples all of which have to match in order for the pattern to match there is an implicit and operation between the triples if we want one or another triple to match we may use UNIN (if both match then there will be two different matches). Jan Pettersen Nytun, UIA, page 58

59 Use UNIN to fix the following: PREFIX : < PREFIX rdf: < PREFIX owl: < PREFIX rdfs: < PREFIX xsd: < CNTRUCT {?n :hasuncle?uncle} WHERE {?n :hasparent?parent.?parent :hasbrother?uncle } We need an or (i.e., UNIN) between?parent :hasbrother?uncle and?uncle :hasbrother?parent Jan Pettersen Nytun, UIA, page 59

60 :Ester rdf:type :Woman ; :hasbrother :lav, :igmund. :Jan rdf:type :Man ; :hasparent :igmund. :Kirsten rdf:type :Woman ; :hasparent :igmund. :lav rdf:type :Man ; :hasister :Ester ; :hasbrother :igmund. :igmund rdf:type :Man ; :hasister :Ester; :hasbrother :Rolf. :igrund rdf:type :Woman ; :hasparent :igmund. :Rolf rdf:type :Man. PREFIX : < PREFIX rdf: < PREFIX owl: < PREFIX rdfs: < PREFIX xsd: < CNTRUCT {?n :hasuncle?uncle} WHERE {?n :hasparent?parent. {?uncle :hasbrother?parent.} UNIN {?parent :hasbrother?uncle }.?uncle rdf:type :Man. } Jan Pettersen Nytun, UIA, page 60

61 [4] Mapping several related relationships (mother, father, son, daughter) onto a single hierarchy (parent); CNTRUCT {?s :hasparent?o} WHERE{ {?s :hasmother?o} UNIN {?s :hasfather?o} UNIN {?o :hason?s} UNIN {?o :hasdaughter?s}} Jan Pettersen Nytun, UIA, page 61

62 Agenda P Example with: - RDER BY - UM Example continues with: - GRUP BY - GRUP BY together with UM Example continues with: - HAVING - BIND - CNCAT New example with: - CNTRUCT - INERT - DELETE - UNIN - CUNT page 62

63 Aggregates And Grouping [3] Aggregates apply expressions over groups of solutions. By default a solution set consists of a single group, containing all solutions. Grouping may be specified using the GRUP BY. Aggregates: CUNT, UM, MIN,. Jan Pettersen Nytun, UIA, page 63

64 Count [3]: Count is a PARQL set function which counts the number of times a given expression has a bound... [4]: For example, we could find out how many movies James Dean has played in: ELECT (CUNT (?movie) A?howmany) WHERE {:JamesDean?playedIn?movie.} Jan Pettersen Nytun, UIA, page 64

65 How many uncles do :Jan have? Jan Pettersen Nytun, UIA, page 65

66 PREFIX : < PREFIX rdf: < PREFIX owl: < PREFIX rdfs: < PREFIX xsd: < ELECT DITINCT (CUNT (?uncle) A?numberfUnclesForJan) WHERE { :Jan :hasparent?parent. {?uncle :hasbrother?parent.} UNIN {?parent :hasbrother?uncle }.?uncle rdf:type :Man. } Jan Pettersen Nytun, UIA, page 66

67 References [1] Book: David Poole and Alan Mackworth, Artificial Intelligence: Foundations of Computational Agents, Cambridge University Press, 2010, [2] [3] PARQL 1.1 Query Language, W3C Recommendation 21 March 2013, [4] emantic Web for the Working ntologist, econd Edition: Effective Modeling in RDF and WL, May 20, 2011, by Dean Allemang, James Hendler [5] Appreciating PARQL CNTRUCT more, Bob DuCharme's weblog, Jan Pettersen Nytun, UIA, page 67

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

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

RDF Storage and Retrieval Systems. Jan Pettersen Nytun, UiA

RDF Storage and Retrieval Systems. Jan Pettersen Nytun, UiA RDF torage and Retrieval ystems Jan Pettersen Nytun, UiA 1 P Federating Data [1] The common standards simplifies the issue of federating data that are housed in multiple RDF stores, possibly coming from

More information

RDF Storage and Retrieval Systems. Jan Pettersen Nytun, UiA

RDF Storage and Retrieval Systems. Jan Pettersen Nytun, UiA RDF torage and Retrieval ystems Jan Pettersen Nytun, UiA 1 Following lides - Ref.: Chapter 4 emantic Web application architecture - emantic Web for the Working ntologist, econd Edition: Effective Modeling

More information

INF3580 SPRING 2014 EXERCISES WEEK 4

INF3580 SPRING 2014 EXERCISES WEEK 4 INF3580 SPRING 2014 EXERCISES WEEK 4 Martin G. Skjæveland 10 mars 2014 4 SPARQL Read Semantic Web Programming: chapter 6. Foundations of Semantic Web Technologies: chapter 7. 4.1 Query engine In this exercise

More information

2. RDF Semantic Web Basics Semantic Web

2. RDF Semantic Web Basics Semantic Web 2. RDF Semantic Web Basics Semantic Web Prof. Dr. Bernhard Humm Faculty of Computer Science Hochschule Darmstadt University of Applied Sciences Summer semester 2011 1 Agenda Semantic Web Basics Literature

More information

Knowledge Representation. Apache Jena Part II. Jan Pettersen Nytun, UiA

Knowledge Representation. Apache Jena Part II. Jan Pettersen Nytun, UiA Knowledge Representation Apache Jena Part II Jan Pettersen Nytun, UiA 1 P S O This presentation is based on: Jena Ontology API http://jena.apache.org/documentation/ontology/ Jan Pettersen Nytun, UIA, page

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

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

INFO216: Advanced Modelling

INFO216: Advanced Modelling INFO216: Advanced Modelling Theme, spring 2018: Modelling and Programming the Web of Data Andreas L. Opdahl Session 3: SPARQL Themes: introducing SPARQL Update SPARQL 1.1 Update

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

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

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

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

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

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

Building Blocks of Linked Data

Building Blocks of Linked Data Building Blocks of Linked Data Technological foundations Identifiers: URIs Data Model: RDF Terminology and Semantics: RDFS, OWL 23,019,148 People s Republic of China 20,693,000 population located in capital

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

Appendix B: The LCA ontology (lca.owl)

Appendix B: The LCA ontology (lca.owl) Appendix B: The LCA ontology (lca.owl)

More information

The Semantic Web. What is the Semantic Web?

The Semantic Web. What is the Semantic Web? The Semantic Web Alun Preece Computing Science, University of Aberdeen (from autumn 2007: School of Computer Science, Cardiff University) What is the Semantic Web, and why do we need it now? How does the

More information

Formalising the Semantic Web. (These slides have been written by Axel Polleres, WU Vienna)

Formalising the Semantic Web. (These slides have been written by Axel Polleres, WU Vienna) Formalising the Semantic Web (These slides have been written by Axel Polleres, WU Vienna) The Semantics of RDF graphs Consider the following RDF data (written in Turtle): @prefix rdfs: .

More information

Comparison of Semantic Web serialization syntaxes

Comparison of Semantic Web serialization syntaxes Comparison of Semantic Web serialization syntaxes Tony Mallia Edmond Scientific 7 March 2015 Introduction This is the comparison of serialization syntaxes supported by Protégé. The sample contains two

More information

ISWC 2017 Tutorial: Semantic Data Management in Practice

ISWC 2017 Tutorial: Semantic Data Management in Practice ISWC 2017 Tutorial: Semantic Data Management in Practice Part 1: Introduction Olaf Hartig Linköping University olaf.hartig@liu.se @olafhartig Olivier Curé University of Paris-Est Marne la Vallée olivier.cure@u-pem.fr

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

SPARQL Query Examples

SPARQL Query Examples SPARQL Query Examples 2015/07/24 Molecular Profiling Research Center for Drug Discovery (MolProf), AIST 1. frnadb As an example, a SPARQL search for frnadb shall be executed by following search frnadb

More information

Energy-related data integration using Semantic data models for energy efficient retrofitting projects

Energy-related data integration using Semantic data models for energy efficient retrofitting projects Sustainable Places 2017 28 June 2017, Middlesbrough, UK Energy-related data integration using for energy efficient retrofitting projects Álvaro Sicilia ascilia@salleurl.edu FUNITEC, La Salle Architecture

More information

Short notes about OWL 1

Short notes about OWL 1 University of Rome Tor Vergata Short notes about OWL 1 Manuel Fiorelli fiorelli@info.uniroma2.it [1] this presentation is limited to OWL 1 features. A new version of OWL (OWL 2), which adds further features

More information

Reasoning with the Web Ontology Language (OWL)

Reasoning with the Web Ontology Language (OWL) Reasoning with the Web Ontology Language (OWL) JESSE WEAVER, PH.D. Fundamental & Computational Sciences Directorate, Senior Research Computer Scientist Discovery 2020 Short Course on Semantic Data Analysis

More information

BASI DI DATI II 2 modulo Parte VIII: SPARQL

BASI DI DATI II 2 modulo Parte VIII: SPARQL BASI DI DATI II 2 modulo Parte VIII: SPARQL Prof. Riccardo Torlone Università Roma Tre Outline Querying RDF SPARQL Query Languages: SQL A language for querying collections of tuples: SELECT SALARY, HIRE_DATE

More information

INF3580/4580 MANDATORY EXERCISE no. 2

INF3580/4580 MANDATORY EXERCISE no. 2 INF3580/4580 MANDATORY EXERCISE no. 2 Published date: 30.01.2018 Due date: 07.02.2018 23:59. Delivery file: 1: Simpsons.java. Delivery attempts: 1. Read the whole of this document thoroughly before solving

More information

TDDD43 Databases and Data Models - Advanced course

TDDD43 Databases and Data Models - Advanced course Lena Strömbäck Written exam in TDDD43 Databases and Data Models - Advanced course Location: Date: 2010-04-08 Time: 08-12 Equipment: None Requirements: 15 points is required for passing the exam Approx.

More information

SPAR-QL. Mario Arrigoni Neri

SPAR-QL. Mario Arrigoni Neri SPAR-QL Mario Arrigoni Neri 1 Introduction 2 SPARQL = SPARQL Protocol and RDF Query Language SPARQL - query language to manipulate information in RDF graphs. It provides support to: extract information

More information

OWL a glimpse. OWL a glimpse (2) requirements for ontology languages. requirements for ontology languages

OWL a glimpse. OWL a glimpse (2) requirements for ontology languages. requirements for ontology languages OWL a glimpse OWL Web Ontology Language describes classes, properties and relations among conceptual objects lecture 7: owl - introduction of#27# ece#720,#winter# 12# 2# of#27# OWL a glimpse (2) requirements

More information

Generating of RDF graph from a relational database using Jena API

Generating of RDF graph from a relational database using Jena API Generating of RDF graph from a relational database using Jena API Jamal BAKKAS #1, Mohamed BAHAJ #2 # Department of Mathematics and computer science, University Hassan I, FSTS FST Settat, Km 3, B.P.:57,

More information

A Frame-based Resource Description Framework Expert System

A Frame-based Resource Description Framework Expert System A Frame-based Resource Description Framework Expert System NAPAT PRAPAKORN*, SUPHAMIT CHITTAYASOTHORN** Department of Computer Engineering King Mongkut's Institute of Technology Ladkrabang Faculty of Engineering,

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

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

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

CC LA WEB DE DATOS PRIMAVERA Lecture 4: Web Ontology Language (I) Aidan Hogan

CC LA WEB DE DATOS PRIMAVERA Lecture 4: Web Ontology Language (I) Aidan Hogan CC6202-1 LA WEB DE DATOS PRIMAVERA 2015 Lecture 4: Web Ontology Language (I) Aidan Hogan aidhog@gmail.com PREVIOUSLY ON LA WEB DE DATOS (1) Data, (2) Rules/Ontologies, (3) Query, RDF: Resource Description

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

An RDF-based Distributed Expert System

An RDF-based Distributed Expert System An RDF-based Distributed Expert System NAPAT PRAPAKORN*, SUPHAMIT CHITTAYASOTHORN** Department of Computer Engineering King Mongkut's Institute of Technology Ladkrabang Faculty of Engineering, Bangkok

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

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

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

6. RDFS Modeling Patterns Semantic Web

6. RDFS Modeling Patterns Semantic Web 6. RDFS Modeling Patterns Semantic Web Prof. Dr. Bernhard Humm Faculty of Computer Science Hochschule Darmstadt University of Applied Sciences Summer semester 2011 1 Agenda RDFS Modeling Patterns Literature

More information

Transforming Data from into DataPile RDF Structure into RDF

Transforming Data from into DataPile RDF Structure into RDF Transforming Data from DataPile Structure Transforming Data from into DataPile RDF Structure into RDF Jiří Jiří Dokulil Charles Faculty of University, Mathematics Faculty and Physics, of Mathematics Charles

More information

Semantic Web. Querying on the Web: XQuery, RDQL, SparQL. Morteza Amini. Sharif University of Technology Fall 94-95

Semantic Web. Querying on the Web: XQuery, RDQL, SparQL. Morteza Amini. Sharif University of Technology Fall 94-95 ه عا ی Semantic Web Querying on the Web: XQuery, RDQL, SparQL Morteza Amini Sharif University of Technology Fall 94-95 Outline XQuery Querying on XML Data RDQL Querying on RDF Data SparQL Another RDF query

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

Exercise 3.1 (Win-Move Game: Draw Nodes) Consider again the Win-Move-Game. There, WinNodes and LoseNodes have been axiomatized.

Exercise 3.1 (Win-Move Game: Draw Nodes) Consider again the Win-Move-Game. There, WinNodes and LoseNodes have been axiomatized. Semantic Web 12 3. Unit: OWL Exercise 3.1 (Win-Move Game: Draw Nodes) Consider again the Win-Move-Game. There, WinNodes and LoseNodes have been axiomatized. a) Is it possible to characterize DrawNodes

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

Limitations of the WWW

Limitations of the WWW A Semantic Web Application for the Air Tasking Order (ATO) ICCRTS Jun 13 2005 2:30-3:00 Albert Frantz, Milvio Franco In-house Program Air Force Research Laboratory AFRL/IFSA Rome NY Mentor: Prof. Bart

More information

Unit 2 RDF Formal Semantics in Detail

Unit 2 RDF Formal Semantics in Detail Unit 2 RDF Formal Semantics in Detail Axel Polleres Siemens AG Österreich VU 184.729 Semantic Web Technologies A. Polleres VU 184.729 1/41 Where are we? Last time we learnt: Basic ideas about RDF and how

More information

RDFS. Suresh Manandhar* & Dimitar Kazakov

RDFS. Suresh Manandhar* & Dimitar Kazakov ARIN KR Lecture 3 RDFS Suresh Manandhar* & Dimitar Kazakov *Several of these slides are based on tutorial by Ivan Herman (W3C) reproduced here with kind permission. All changes and errors are mine. 1 Lecture

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

Using ontologies function management

Using ontologies function management for Using ontologies function management Caroline Domerg, Juliette Fabre and Pascal Neveu 22th July 2010 O. Corby C.Faron-Zucker E.Gennari A. Granier I. Mirbel V. Negre A. Tireau Semantic Web tools Ontology

More information

Querying Semantic Web Data

Querying Semantic Web Data Querying Semantic Web Data Lalana Kagal Decentralized Information Group MIT CSAIL Eric Prud'hommeaux Sanitation Engineer World Wide Web Consortium SPARQL Program Graph patterns Motivations for RDF RDF

More information

INF3580/4580 Semantic Technologies Spring 2017

INF3580/4580 Semantic Technologies Spring 2017 INF3580/4580 Semantic Technologies Spring 2017 Lecture 10: OWL, the Web Ontology Language Leif Harald Karlsen 20th March 2017 Department of Informatics University of Oslo Reminders Oblig. 5: First deadline

More information

Scaling the Semantic Wall with AllegroGraph and TopBraid Composer. A Joint Webinar by TopQuadrant and Franz

Scaling the Semantic Wall with AllegroGraph and TopBraid Composer. A Joint Webinar by TopQuadrant and Franz Scaling the Semantic Wall with AllegroGraph and TopBraid Composer A Joint Webinar by TopQuadrant and Franz Dean Allemang Chief Scientist, TopQuadrant Inc. Jans Aasman CTO, Franz Inc. July 07 1 This Seminar

More information

KDI OWL. Fausto Giunchiglia and Mattia Fumagallli. University of Trento

KDI OWL. Fausto Giunchiglia and Mattia Fumagallli. University of Trento KDI OWL Fausto Giunchiglia and Mattia Fumagallli University of Trento Roadmap Introduction The OWL Full Language OWL DL and OWL lite Exercises 2 Introduction Chapter 1 3 Requirements for Ontology Languages

More information

Unit 1 a Bird s Eye View on RDF(S), OWL & SPARQL

Unit 1 a Bird s Eye View on RDF(S), OWL & SPARQL Unit 1 a Bird s Eye View on RDF(S), OWL & SPARQL Axel Polleres Siemens AG Österreich VU 184.729 Semantic Web Technologies A. Polleres VU 184.729 1/48 Unit Outline 1. Motivation Aggregating Web Data 2.

More information

Semantic Web Rules. - Tools and Languages - Holger Knublauch. Tutorial at Rule ML 2006, Athens, GA

Semantic Web Rules. - Tools and Languages - Holger Knublauch. Tutorial at Rule ML 2006, Athens, GA Semantic Web Rules - Tools and Languages - Tutorial at Rule ML 2006, Athens, GA Holger Knublauch Semantic Web Languages RDF Schema OWL SWRL Jena Rules Language SPARQL RDF Triples are the common foundation

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

INF3580 Semantic Technologies Spring 2012

INF3580 Semantic Technologies Spring 2012 INF3580 Semantic Technologies Spring 2012 Lecture 10: OWL, the Web Ontology Language Martin G. Skjæveland 20th March 2012 Department of Informatics University of Oslo Outline Reminder: RDFS 1 Reminder:

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

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

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

Ontological Modeling: Part 15

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

More information

Semantic Web. Lecture 12: SW Programming Dr. Knarig Arabshian

Semantic Web. Lecture 12: SW Programming Dr. Knarig Arabshian Semantic Web Lecture 12: SW Programming Dr. Knarig Arabshian Knarig.arabshian@hofstra.edu Hello Semantic Web World Example Say hello to the Semantic Web Say hello to some friends of the Semantic Web Expand

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

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

Semantic Web. MPRI : Web Data Management. Antoine Amarilli Friday, January 11th 1/29

Semantic Web. MPRI : Web Data Management. Antoine Amarilli Friday, January 11th 1/29 Semantic Web MPRI 2.26.2: Web Data Management Antoine Amarilli Friday, January 11th 1/29 Motivation Information on the Web is not structured 2/29 Motivation Information on the Web is not structured This

More information

12th ICCRTS. On the Automated Generation of an OWL Ontology based on the Joint C3 Information Exchange Data Model (JC3IEDM)

12th ICCRTS. On the Automated Generation of an OWL Ontology based on the Joint C3 Information Exchange Data Model (JC3IEDM) 12th ICCRTS On the Automated Generation of an OWL Ontology based on the Joint C3 Information Exchange Data Model (JC3IEDM) Christopher J. Matheus and Brian Ulicny VIStology, Inc. Framingham, MA, U.S.A.

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

Classical DB Questions on New Kinds of Data

Classical DB Questions on New Kinds of Data 1 Classical DB Questions on New Kinds of Data Marcelo Arenas & Pablo Barceló, Center for Semantic Web Research PUC Chile Universidad de Chile Evolution of data models 80s early 90s Overcome expressiveness

More information

Stream and Complex Event Processing A brief introduc:on to the seman:c Web technologies

Stream and Complex Event Processing A brief introduc:on to the seman:c Web technologies Stream and Complex Event Processing A brief introduc:on to the seman:c Web technologies G. Cugola E. Della Valle A. Margara Politecnico di Milano gianpaolo.cugola@polimi.it emanuele.dellavalle@polimi.it

More information

BUILDING THE SEMANTIC WEB

BUILDING THE SEMANTIC WEB BUILDING THE SEMANTIC WEB You might have come across the term Semantic Web Applications often, during talks about the future of Web apps. Check out what this is all about There are two aspects to the possible

More information

RESOURCES DESCRIPTION FRAMEWORK: RDF

RESOURCES DESCRIPTION FRAMEWORK: RDF 1 RESOURCES DESCRIPTION FRAMEWORK: RDF Hala Skaf-Molli Associate Professor Nantes University Hala.Skaf@univ-nantes.fr http://pagesperso.lina.univ-nantes.fr/~skaf-h Linked Data Stack (Semantic Web Cake)

More information

Mapping Existing Data Sources into VIVO. Pedro Szekely, Craig Knoblock, Maria Muslea and Shubham Gupta University of Southern California/ISI

Mapping Existing Data Sources into VIVO. Pedro Szekely, Craig Knoblock, Maria Muslea and Shubham Gupta University of Southern California/ISI Mapping Existing Data Sources into VIVO, Craig Knoblock, Maria Muslea and Shubham Gupta University of Southern California/ISI Outline Problem Current methods for importing data into VIVO Karma approach

More information

Jena.

Jena. Jena http://openjena.org/ The Beginning... From: McBride, Brian Date: Mon, 28 Aug 2000 13:40:03 +0100 To: "RDF Interest (E-mail)" A few weeks ago I posted

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

Filter: Evaluable Expression. List Syntax. Tests. Filter: Evaluable Expression. Tests : functions. Tests 06/09/2013. (1?x v )

Filter: Evaluable Expression. List Syntax. Tests. Filter: Evaluable Expression. Tests : functions. Tests 06/09/2013. (1?x v ) SPARQL 2 W3C RDF Data Access SPARQL W3C Simple Protocol And RDF Query Language olivier.corby@inria.fr Use Case and Requirements : http://www.w3.org/tr/rdf-dawg-uc Query language : http://www.w3.org/tr/rdf-sparql-query

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

Semantic Web Test

Semantic Web Test Semantic Web Test 24.01.2017 Group 1 No. A B C D 1 X X X 2 X X 3 X X 4 X X 5 X X 6 X X X X 7 X X 8 X X 9 X X X 10 X X X 11 X 12 X X X 13 X X 14 X X 15 X X 16 X X 17 X 18 X X 19 X 20 X X 1. Which statements

More information

Semantic Web. Gabriel de L. Rabelo 1

Semantic Web. Gabriel de L. Rabelo 1 Semantic Web Gabriel de L. Rabelo 1 1 Department of Computer and Information Sciences, Temple University, Philadelphia, PA. Abstract: This paper discusses the Semantics Web from the Artificial Intelligence

More information

Reminder: RDF triples

Reminder: RDF triples Reminder: RDF triples The RDF data model is similar to classical conceptual modelling approaches such as entity relationship or class diagrams it is based on the idea of making statements about resources

More information

Mustafa Jarrar: Lecture Notes on RDF Schema Birzeit University, Version 3. RDFS RDF Schema. Mustafa Jarrar. Birzeit University

Mustafa Jarrar: Lecture Notes on RDF Schema Birzeit University, Version 3. RDFS RDF Schema. Mustafa Jarrar. Birzeit University Mustafa Jarrar: Lecture Notes on RDF Schema Birzeit University, 2018 Version 3 RDFS RDF Schema Mustafa Jarrar Birzeit University 1 Watch this lecture and download the slides Course Page: http://www.jarrar.info/courses/ai/

More information

R2RML: RDB to RDF Mapping Language

R2RML: RDB to RDF Mapping Language 1 : RDB to RDF Mapping Language Werner Nutt 2 Acknowledgment These slides are based on a slide set by Mariano Rodriguez 3 Reading Material/Sources specification by W3C http://www.w3.org/tr/r2rml/ specification

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

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

Linked Data: What Now? Maine Library Association 2017

Linked Data: What Now? Maine Library Association 2017 Linked Data: What Now? Maine Library Association 2017 Linked Data What is Linked Data Linked Data refers to a set of best practices for publishing and connecting structured data on the Web. URIs - Uniform

More information

Licenses and Waivers in Practice

Licenses and Waivers in Practice shared innovation Licenses and Waivers in Practice Tom Heath Platform Division Talis Information Ltd tom.heath@talis.com http://tomheath.com/id/me ISWC2009 Tutorial on Legal and Social Frameworks for Sharing

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

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

Outline RDF. RDF Schema (RDFS) RDF Storing. Semantic Web and Metadata What is RDF and what is not? Why use RDF? RDF Elements

Outline RDF. RDF Schema (RDFS) RDF Storing. Semantic Web and Metadata What is RDF and what is not? Why use RDF? RDF Elements Knowledge management RDF and RDFS 1 RDF Outline Semantic Web and Metadata What is RDF and what is not? Why use RDF? RDF Elements RDF Schema (RDFS) RDF Storing 2 Semantic Web The Web today: Documents for

More information

SPARQL: An RDF Query Language

SPARQL: An RDF Query Language 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

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

Outline. Introduction Semantic Web

Outline. Introduction Semantic Web Outline Introduction Semantic Web o Vision o From the Web of Documents to the Web Of Data o Technologies o Advantages Semantic Web and Linguistics RDB2RDF o Concepts o Sparqlify (SML) PanLex2RDF Demo Discussion

More information

COMP6217 Social Networking Technologies Web evolution and the Social Semantic Web. Dr Thanassis Tiropanis

COMP6217 Social Networking Technologies Web evolution and the Social Semantic Web. Dr Thanassis Tiropanis COMP6217 Social Networking Technologies Web evolution and the Social Semantic Web Dr Thanassis Tiropanis t.tiropanis@southampton.ac.uk The narrative Semantic Web Technologies The Web of data and the semantic

More information