NFR Verdikt Project n o  2342453  Semantic Technology SPARQL SPARQL Protocol And RDF Query Language Robert Engels
from local to global Information management in the digital age   From Locally isolated ... ... to Globally interconnected
But What CAN you get out of this?
<ul><li>What is SPARQL? </li><ul><li>Query Language for interlinked graphs represented using RDF/OWL annotations
SPARQL 1.0: W3C recommendation 2008
SPARQL 1.1: nearly a recommendation </li></ul></ul>
<ul><li>Why SPARQL? </li><ul><li>allows for querying RDF/OWL data & models
allows to define  globally unambiguous queries
allows for distributed querying of datasets
query results can be merged automatically </li></ul></ul>
<ul><li>Differences with SQL? </li><ul><li>querying “graphs” instead of tables
local keys are replaced with global identifiers
tables need to provide the same schema, graphs do not </li></ul></ul>
<ul><li>What can you do with SPARQL? </li><ul><li>various result types </li><ul><li>DESCRIBE, SELECT,  ASK & CONSTRUCT </l...
a set representing the reverse of a statement (NOT)
… . </li></ul><li>algoritmic operators like  count, avg , &  sum  </li><ul><li>specific to SPARQL 1.1 </li></ul></ul></ul>
SPARQL - “DESCRIBE” Suppose The only thing you have is an Uri like this And no idea what is known about it.... http://data...
“ DESCRIBE” This node for me: Result of SPARQL - “DESCRIBE”
Upcoming SlideShare
Loading in …5
×

Sesam4 project presentation sparql - april 2011

767 views

Published on

This slide set is a provided by the SESAM4 consortium as one out of three Technology Primers on Semantic Web technology. This Primer is on SPARQL and gives you a short introduction to its constructs followed by some examples. You can find the belonging slideset at youtube,

Published in: Technology, Education
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
767
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
8
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • Retorics: - where before information was locally managed, using local keys, and only accessible through customised interfaces using these “local keys” to identify information … … today this very same information is available from many different sources, represented in a standard way using globally unique identifiers … .. which are connected to each other and in such a way provide explicit key-references between different data-sets which can be used for automated harvesting and discovery
  • So now you think: - this is too large, too complex and too big. I cannot possible see how I can work with this and yes: I cannot see what is wrong with normal relational databases and SQL querying .. - well there is good and bad news. The good news is that it is indeed BIG, the bad news is that it is also complex and maybe even huge. … - But there is more good news: some smart people at W3C have found a way to let you use this graphs using a query language which is very similar to SQL, called SPARQL.
  • Sesam4 project presentation sparql - april 2011

    1. 1. NFR Verdikt Project n o 2342453 Semantic Technology SPARQL SPARQL Protocol And RDF Query Language Robert Engels
    2. 2. from local to global Information management in the digital age From Locally isolated ... ... to Globally interconnected
    3. 3. But What CAN you get out of this?
    4. 4. <ul><li>What is SPARQL? </li><ul><li>Query Language for interlinked graphs represented using RDF/OWL annotations
    5. 5. SPARQL 1.0: W3C recommendation 2008
    6. 6. SPARQL 1.1: nearly a recommendation </li></ul></ul>
    7. 7. <ul><li>Why SPARQL? </li><ul><li>allows for querying RDF/OWL data & models
    8. 8. allows to define globally unambiguous queries
    9. 9. allows for distributed querying of datasets
    10. 10. query results can be merged automatically </li></ul></ul>
    11. 11. <ul><li>Differences with SQL? </li><ul><li>querying “graphs” instead of tables
    12. 12. local keys are replaced with global identifiers
    13. 13. tables need to provide the same schema, graphs do not </li></ul></ul>
    14. 14. <ul><li>What can you do with SPARQL? </li><ul><li>various result types </li><ul><li>DESCRIBE, SELECT, ASK & CONSTRUCT </li></ul><li>create result sets using known operators </li><ul><li>a union of two sets (UNION)
    15. 15. a set representing the reverse of a statement (NOT)
    16. 16. … . </li></ul><li>algoritmic operators like count, avg , & sum </li><ul><li>specific to SPARQL 1.1 </li></ul></ul></ul>
    17. 17. SPARQL - “DESCRIBE” Suppose The only thing you have is an Uri like this And no idea what is known about it.... http://data.esis.no/resource/projectID_111667 Simply send a SPARQL “DESCRIBE” to a sparql endpoint DESCRIBE <http://data.esis.no/resource/projectID_111667>
    18. 18. “ DESCRIBE” This node for me: Result of SPARQL - “DESCRIBE”
    19. 19. Result of SPARQL - “DESCRIBE” 1 1 1 1 1 2 2
    20. 20. SPARQL - “SElect” ... or you know what to look for and want to select specific resources. Send a sparql “select” to a sparql endpoint PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX dct: <http://purl.org/dc/terms/> PREFIX nfr: <http://data.esis.no/resource/> PREFIX foaf: <http://xmlns.com/foaf/0.1/> SELECT ?projectID ?projectName WHERE { ?projectID a foaf:Project ; dct:title ?projectName ; nfr:orgnrResponsibleOrg <https://ws.brreg.no/lod/enhet/962392687> . }
    21. 21. SPARQL - “SELECT”
    22. 22. RESULT SPARQL - “SELECT”
    23. 23. SPARQL - “CONSTRUCT” PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX dct: <http://purl.org/dc/terms/> PREFIX nfr: <http://data.esis.no/resource/> PREFIX foaf: <http://xmlns.com/foaf/0.1/> PREFIX funder: <http://research.data.gov.uk/def/project/> CONSTRUCT { ?projectID funder:title ?title } WHERE { ?projectID a foaf:Project; dct:title ?title ; nfr:orgnrResponsibleOrg <https://ws.brreg.no/lod/enhet/962392687> . } REPLACE NEW
    24. 24. SPARQL - “ASK” TRUE or FALSE? PREFIX nfr: <http://data.esis.no/resource/> ASK { ?projectID nfr:orgnrResponsibleOrg <https://ws.brreg.no/lod/enhet/962392687> }
    25. 25. Try it yourself! http://data.esis.no:2020/query.html http://opendata.computas.no:7001/joseki/
    26. 26. Further reading SPARQL 1.0 - W3C recommendation 2008 http://www.w3.org/TR/rdf-sparql-query/ SPARQL 1.1 – W3C SPARQL working group Wiki http://www.w3.org/2009/sparql/wiki/Main_Page Extensive tutorials by HP and Talis (and many others...) http://openjena.org/ARQ/Tutorial/index.html http://www.slideshare.net/ldodds/sparql-tutorial
    27. 27. www.sesam4.net

    ×