SPARQL Update                                               OC Working Group, 2012-02-16©www.sti-innsbruck.at INNSBRUCK ww...
The Big SPARQL picture • SPARQL 1.0 (2008 Recommendation)           –      SELECT           –      ASK           –      DE...
The Big SPARQL 1.1 Picture • SPARQL 1.1 (2012 Draft)           – UPDATE              • Triple management (Load, Clear, Ins...
Load – Clear – Insert - Delete •       LOAD uri [ INTO GRAPH uri ] •       CLEAR GRAPH uri •       INSERT DATA { quads } •...
WITH and USING • WITH uri • USING uriwww.sti-innsbruck.at   5
Update - Example                  PREFIX foaf: <http://xmlns.com/foaf/0.1/>                  WITH <http://example/addresse...
Drop, Create, Copy, Move, Add• CREATE [ SILENT ] GRAPH uri• DROP [ SILENT ] GRAPH uri• COPY [ SILENT ] GRAPH uri1 TO GRAPH...
Additional Material •       W3C SPARQL, http://www.w3.org/TR/rdf-sparql-query/ •       W3C SPARQL 1.1 http://www.w3.org/TR...
Upcoming SlideShare
Loading in...5
×

Sparql update

494

Published on

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

  • Be the first to like this

No Downloads
Views
Total Views
494
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
10
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Sparql update

  1. 1. SPARQL Update OC Working Group, 2012-02-16©www.sti-innsbruck.at INNSBRUCK www.sti-innsbruck.at Copyright 2008 STI
  2. 2. The Big SPARQL picture • SPARQL 1.0 (2008 Recommendation) – SELECT – ASK – DESCRIBE – CONSTRUCTwww.sti-innsbruck.at 2
  3. 3. The Big SPARQL 1.1 Picture • SPARQL 1.1 (2012 Draft) – UPDATE • Triple management (Load, Clear, Insert, Delete) • Graph management (Create, Drop, Copy, Move, Add ) – Graph Store HTTP Protocol – Service descriptions – Entailments – Basic federated querywww.sti-innsbruck.at 3
  4. 4. Load – Clear – Insert - Delete • LOAD uri [ INTO GRAPH uri ] • CLEAR GRAPH uri • INSERT DATA { quads } • DELETE DATA { quads } • UPDATE: WITH uri1 DELETE {quad_pattern} INSERT {quad_pattern} USING uri1 WHERE {group_graph_pattern}www.sti-innsbruck.at 4
  5. 5. WITH and USING • WITH uri • USING uriwww.sti-innsbruck.at 5
  6. 6. Update - Example PREFIX foaf: <http://xmlns.com/foaf/0.1/> WITH <http://example/addresses> DELETE { ?person foaf:firstName Bill } INSERT { ?person foaf:firstName William } USING <http://example/addresses> WHERE { ?person a foaf:Person . ?person foaf:firstName Bill }www.sti-innsbruck.at 6
  7. 7. Drop, Create, Copy, Move, Add• CREATE [ SILENT ] GRAPH uri• DROP [ SILENT ] GRAPH uri• COPY [ SILENT ] GRAPH uri1 TO GRAPH uri2• MOVE [ SILENT ] GRAPH uri1 TO GRAPH uri2• ADD [ SILENT ] GRAPH uri1 TO GRAPH uri2www.sti-innsbruck.at 7
  8. 8. Additional Material • W3C SPARQL, http://www.w3.org/TR/rdf-sparql-query/ • W3C SPARQL 1.1 http://www.w3.org/TR/sparql11-query/ • W3C SPARQL Update http://www.w3.org/TR/sparql11-update/ • SPARQL by example http://www.cambridgesemantics.com/2008/09/sparql-by-example/ • SPARQL Cheatsheet http://www.slideshare.net/LeeFeigenbaum/sparql- cheat-sheetwww.sti-innsbruck.at 8
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×