95-733 Internet Technologies 1 Master of Information System Management Internet Technologies Making Queries on RDF.

Slides:



Advertisements
Similar presentations
Querying on the Web: XQuery, RDQL, SparQL Semantic Web - Spring 2006 Computer Engineering Department Sharif University of Technology.
Advertisements

Alexandra Cristea & Matthew Yau 1.
SPARQL Dimitar Kazakov, with references to material by Noureddin Sadawi ARIN, 2014.
Internet Technologies 1 Master of Information System Management Internet Technologies Lecture 7: SPARQL.
ESDSWG2011 – Semantic Web session Semantic Web Sub-group Session ESDSWG 2011 Meeting – Semantic Web sub-group session Wednesday, November 2, 2011 Norfolk,
RDF Tutorial.
Jena Sparql 4/11/2017.
SPARQL RDF Query.
SPARQL Nikhil Rajguru. W3C Standards SPARQL Query Language for RDF SPARQL 1.1 Update SPARQL 1.1 Protocol SPARQL 1.1 Graph Store HTTP Protocol SPARQL.
Chapter 3 Querying RDF stores with SPARQL. TL;DR We will want to query large RDF datasets, e.g. LOD SPARQL is the SQL of RDF SPARQL is a language to query.
5/17/20151 FOAF. 5/17/20152 Introduction Metadata is data about data The terms refer to data used to identify, describe, or locate information resources.
CSCI 572 Project Presentation Mohsen Taheriyan Semantic Search on FOAF profiles.
A division of Publishing Technology Facet Building Web Pages With SPARQL SWIG-UK Event, HP Labs November 23 rd 2007 Leigh Dodds Chief Technology Officer,
SKOS and Other W3C Vocabulary Related Activities Gail Hodge Information International Assoc. NKOS Workshop Denver, CO June 10, 2005.
RDF: Building Block for the Semantic Web Jim Ellenberger UCCS CS5260 Spring 2011.
Semantic Web Andrejs Lesovskis. Publishing on the Web Making information available without knowing the eventual use; reuse, collaboration; reproduction.
Intro to dot Net Dr. John Abraham UTPA – Fall 09 CSCI 3327.
Semantic Web Bootcamp Dominic DiFranzo PhD Student/Research Assistant Rensselaer Polytechnic Institute Tetherless World Constellation.
Logics for Data and Knowledge Representation SPARQL Protocol and RDF Query Language (SPARQL) Feroz Farazi.
© 2006 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice Publishing data on the Web (with.
1 Ontology Query and Reasoning Payam Barnaghi Institute for Communication Systems (ICS) Faculty of Engineering and Physical Sciences University of Surrey.
RDF (Resource Description Framework) Why?. XML XML is a metalanguage that allows users to define markup XML separates content and structure from formatting.
Example: Jena and Fuseki
1cs The Need “Most of the Web's content today is designed for humans to read, not for computer programs to manipulate meaningfully.” Berners-Lee,
Introduction to SPARQL. Acknowledgements This presentation is based on the W3C Candidate Recommendation “SPARQL Query Language for RDF” from
Entity Recognition via Querying DBpedia ElShaimaa Ali.
SPARQL Semantic Web - Spring 2008 Computer Engineering Department Sharif University of Technology.
Logics for Data and Knowledge Representation
The Semantic Web Web Science Systems Development Spring 2015.
Chapter 3 Querying RDF stores with SPARQL. Why an RDF Query Language? Why not use an XML query language? XML at a lower level of abstraction than RDF.
Semantic web course – Computer Engineering Department – Sharif Univ. of Technology – Fall Querying on the Web: XQuery, RDQL, SparQL Semantic Web.
SPARQL W3C Simple Protocol And RDF Query Language
SPARQL AN RDF Query Language. SPARQL SPARQL is a recursive acronym for SPARQL Protocol And Rdf Query Language SPARQL is the SQL for RDF Example: PREFIX.
CWM Closed World Machine. CWM Overview CWM is a popular Semantic Web program that can do the following tasks – Parse and pretty-print several RDF formats:
Semantic Web Exam 1 Review.
1 SPARQL A. Emrah Sanön. 2 RDF RDF is quite committed to Semantic Web. Data model Serialization by means of XML Formal semantics Still something is missing!
Semantic Web Basics Dominic DiFranzo PhD Student/Research Assistant Rensselaer Polytechnic Institute Tetherless World Constellation.
Accessing Relational Databases from the World Wide Web by Tam Nguyen & V. Srinivasan Presented by Megan Thomas and Randi Thomas CS294-7 February 11, 1999.
Using the DAWG Test Cases with Relational Databases Matthew Gheen October 26, 2007.
Practical RDF Chapter 10. Querying RDF: RDF as Data Shelley Powers, O’Reilly SNU IDB Lab. Hyewon Lim.
Introduction to the Semantic Web and Linked Data Module 1 - Unit 2 The Semantic Web and Linked Data Concepts 1-1 Library of Congress BIBFRAME Pilot Training.
Ontology engineering Lab #8 – October 20, 2014.
Dr. Lowell Vizenor Ontology and Semantic Technology Practice Lead Alion Science and Technology Semantic Technology: A Basic Introduction.
THE BIBFRAME EDITOR AND THE LC PILOT Module 3 – Unit 1 The Semantic Web and Linked Data : a Recap of the Key Concepts Library of Congress BIBFRAME Pilot.
05/01/2016 SPARQL SPARQL Protocol and RDF Query Language S. Garlatti.
Chapter 3 Querying RDF stores with SPARQL
RDF Syntax and examples ดร. มารุต บูรณรัช : หัวข้อพิเศษด้านเทคโนโลยีสารสนเทศขั้นสูง - เทคโนโลยีเว็บเชิงความหมาย.
Alexandra Cristea 1.  pronounced "sparkle“  recursive acronym for: ◦ SPARQL Protocol and RDF Query Language  a semantic query language  a query language.
Web Services Martin Nečaský, Ph.D. Faculty of Mathematics and Physics Charles University in Prague, Czech Republic Summer 2014.
RDF & SPARQL Introduction Dongfang Xu Ph.D student, School of Information, University of Arizona Sept 10, 2015.
Steven Perry Dave Vieglais. W a s a b i Web Applications for the Semantic Architecture of Biodiversity Informatics Overview WASABI is a framework for.
Lala Hajibayova.  Project aims to  Create RDF model of FRBR, based on sample of five OCLC bibliographic records  Query model using SPARQL and Jena.
Other RDF Capabilities. Exercise: Write the following information into a set of statements (triples) and then draw them into and RDF graph The article.
Semantic Web In Depth Resource Description Framework Dr Nicholas Gibbins –
CWM Closed World Machine. CWM Overview CWM is a simple Semantic Web program that can do the following tasks – Read and pretty-print several RDF formats.
SPARQL Query Andy Seaborne. Apache Jena he.org/jena ● Open source - Apache License ● Apache Incubator (accepted November 2010) ●
SPARQLing SERVICES Leigh Dodds Engineering Manager, Ingenta XTech, May 2006.
1 RDF Storage and Retrieval Systems Jan Pettersen Nytun, UiA.
What's New in RDF 1.1 Cambridge Semantic Web Gathering 9 April 2013
Introduction to Persistent Identifiers
SPARQL.
SPARQL SPARQL Protocol and RDF Query Language
SPARQL: A query language for RDF
SPARQL Exercise Much of this exercise has been copied from: INF3580/INF4580 – MANDATORY EXERCISE 3
Jena Sparql (for Mac) 9/22/2018.
SPARQL Exercise Most of this exercise has been copied from: INF3580/INF4580 – MANDATORY EXERCISE 3
JSON-LD 1.0 Yanan Zhang.
CC La Web de Datos Primavera 2018 Lecture 8: SPARQL [1.1]
Logics for Data and Knowledge Representation
Triple Stores.
Presentation transcript:

Internet Technologies 1 Master of Information System Management Internet Technologies Making Queries on RDF

Internet Technologies Two Approaches SPARQL - Simple Protocol And RDF Query Language - Looks like SQL - Used by Dbpedia MQL - Metaweb Query Language - Based on JSON - Used by Freebase 2 Master of Information System Management Both freebase and Dbpedia make their statements available in RDF.

Internet Technologies Today’s Lecture A brief look at SPARQL A brief look at MQL 3 Master of Information System Management

Internet Technologies 4 Master of Information System Management SPARQL SPARQL Simple Protocol and RDF Query Language W3C Recommendation January 2008 Queries written using Turtle - Terse RDF Triple Language Download Jena and ARQ Query Engine For Ruby, see ActiveRDF

Internet Technologies 5 Master of Information System Management SPARQL Three specifications: (1) A query language (2) A query results XML format (3) A WSDL 2.0 Data Access Protocol using HTTP and SOAP SPARQL is read only and cannot modify the RDF data

Internet Technologies 6 Master of Information System Management Input <rdf:RDF xmlns:rdf=" xmlns:foaf=" xmlns:rdfs=" xmlns:rss=" xmlns:dc=" xmlns:html=" John Barstow Visions of Aestia by John Barstow This is shortblogger.xml The file bloggers.xml has many bloggers.

Internet Technologies 7 Master of Information System Management Processing PREFIX foaf: SELECT ?url FROM WHERE { ?contributor foaf:name "John Barstow". ?contributor foaf:weblog ?url. } Stored in a file called ex1.rq

Internet Technologies 8 Master of Information System Management Output sparql --query ex1.rq | url | ========================= |

Internet Technologies 9 Master of Information System Management Processing PREFIX foaf: PREFIX rdf: SELECT ?url FROM WHERE { ?contributor rdf:type foaf:Person. ?contributor foaf:weblog ?url. } Output sparql --query ex2.rq | url | =============== |

Internet Technologies 10 Master of Information System Management Processing PREFIX foaf: PREFIX rdf: SELECT ?x ?n FROM WHERE { ?contributor rdf:type foaf:Person. ?contributor foaf:weblog ?x. ?contributor foaf:name ?n } All three conditions must be satisfied to match the query.

Internet Technologies 11 Master of Information System Management Output sparql --query ex4.rq | x | n | ================================================ | | "Seth Ladd" | | | "Morten Frederiksen" | | | "Ora Lassila" | | | "Hazaël-Massieux" | | | "Leigh Dodds" | | | "Henry Story" | | | "Jeen Broekstra" | | | "Danny Weitzner" | | | "Dan Brickley" |

Internet Technologies 12 Master of Information System Management Processing PREFIX foaf: PREFIX rdf: SELECT DISTINCT ?n FROM WHERE { ?contributor foaf:name ?n } Output | n | ================= | ”Mike McCarthy" | | "Pasquale Popolizio" | | "Dean Allemang" | :

Internet Technologies 13 Master of Information System Management Processing PREFIX foaf: PREFIX rdf: SELECT DISTINCT ?n FROM WHERE { ?contributor foaf:name ?n } ORDER BY ?n | n | ============= | "Alexandre Passant" | | "Alistair Miles" | | "Andrew Matthews" | | "Benjamin Nowack" :

Internet Technologies 14 Master of Information System Management Semi-Structured Data Definition: If two nodes of the same type are allowed to hold different sets of properties the data is called semi- structured. SPARQL uses the OPTIONAL keyword to process semi- structured data.

Internet Technologies 15 Master of Information System Management Processing PREFIX foaf: PREFIX rdf: SELECT DISTINCT ?n ?interest FROM WHERE { ?contributor foaf:name ?n. OPTIONAL { ?contributor foaf:interest ?interest } } ORDER BY ?n "Tetherless World Constellation group RPI" "Tim Berners-Lee" "Uldis Bojars"

Internet Technologies 16 Master of Information System Management Generating XML PREFIX foaf: PREFIX rdf: SELECT ?n FROM WHERE { ?contributor foaf:name ?n. }

Internet Technologies 17 Master of Information System Management From The Command Line sparql --query ex8.rq --results rs/xml <sparql xmlns:rdf=" xmlns:xs=" xmlns=" > John Barstow

Internet Technologies MQL Metaweb Query Language Make queries against the freebase data store. The input and outputs are JSON strings. 18 Master of Information System Management

Internet Technologies Using MQL In A URL 19 Master of Information System Management Example from the MQL documentation. Enter the following in your browser: {“query”:{“type”:”/music/artist”,”name”:”The Police”,”album”:[]}} This is a query to freebase represented in JSON.

Internet Technologies Output { "code": "/api/status/ok", "result": { "album": [ "Outlandos d'Amour", "Reggatta de Blanc", "Zenyatt\u00e0 Mondatta” "The Police Live!" ], "name": "The Police", "type": "/music/artist" }, "status": "200 OK", "transaction_id”:"cache;cache03.p01.sjc1:8101; T15” } 20 Master of Information System Management Many more albums in the real query result.

Internet Technologies Another look at the query. { "query": { "type":"/music/artist", "name":"The Police", "album":[] } 21 Master of Information System Management

Internet Technologies Use The Query Editor 22 Master of Information System Management