Skip to content

Instantly share code, notes, and snippets.

@jcoyne
Created August 3, 2018 21:28
Show Gist options
  • Save jcoyne/6a6167eb551629d519fb4d071012ae2c to your computer and use it in GitHub Desktop.
Save jcoyne/6a6167eb551629d519fb4d071012ae2c to your computer and use it in GitHub Desktop.
Rialto Sparql update sample
PREFIX bibo: <http://purl.org/ontology/bibo/>
PREFIX dct: <http://purl.org/dc/terms/>
PREFIX vivo: <http://vivoweb.org/ontology/core#>
PREFIX vcard: <http://www.w3.org/2006/vcard/ns#>
INSERT DATA
{
<http://example.com/book1> a bibo:Document;
dct:Title "My Book";
vivo:relatedBy <http://example.com/authorship1>, <http://example.com/editorship1> .
<http://example.com/authorship1> a vivo:Authorship;
vivo:relates <http://example.com/people/1> .
<http://example.com/editorship1> a vivo:Editorship;
vivo:relates <http://example.com/people/2> .
<http://example.com/people/1> a vivo:Student;
vcard:hasName <http://example.com/people1#name> .
<http://example.com/people/2> a vivo:Student;
vcard:hasName <http://example.com/people2#name> .
<http://example.com/people2#name> a vcard:Name;
vcard:value "Christina Harlow" .
<http://example.com/people1#name> a vcard:Name;
vcard:value "Justin Coyne" .
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment