Skip to content

Instantly share code, notes, and snippets.

@daniel-dgi
Last active August 29, 2015 14:22
Show Gist options
  • Save daniel-dgi/a9335b5080fafb8f86c4 to your computer and use it in GitHub Desktop.
Save daniel-dgi/a9335b5080fafb8f86c4 to your computer and use it in GitHub Desktop.
=== FIRST QUERY ===
PREFIX dc: <http://purl.org/dc/terms/>
DELETE WHERE
{
<> dc:title ?o0 .
} ;
INSERT DATA {
<> dc:title "Stuff" .
}
=== SECOND QUERY ===
=== FIRST TIME YOU RUN THIS YOU'LL GET BOTH TITLES INSTEAD OF UPDATING ===
=== RUN A SECOND TIME AND IT WORKS FINE ===
PREFIX dc: <http://purl.org/dc/terms/>
DELETE WHERE
{
<> dc:title ?o0 .
<> dc:author ?o1 .
} ;
INSERT DATA {
<> dc:title "Things" .
<> dc:author "Danny" .
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment