SPARQL UPDATE queries add standard vocabulary properties alongside existing custom predicates: schema:Person/Place/Organization types, schema:givenName/familyName/birthDate, owl:sameAs for authority links, wgs84:lat/long for coordinates, skos:Concept/prefLabel for enumerations, and rdfs:label for persons.
13 lines
489 B
SPARQL
13 lines
489 B
SPARQL
PREFIX schema: <https://schema.org/>
|
|
|
|
DELETE { ?s a <http://example.org/migrants/person> . }
|
|
INSERT { ?s a schema:Person . }
|
|
WHERE { ?s a <http://example.org/migrants/person> . }
|
|
;
|
|
DELETE { ?s a <http://example.org/migrants/location> . }
|
|
INSERT { ?s a schema:Place . }
|
|
WHERE { ?s a <http://example.org/migrants/location> . }
|
|
;
|
|
DELETE { ?s a <http://example.org/migrants/organisation> . }
|
|
INSERT { ?s a schema:Organization . }
|
|
WHERE { ?s a <http://example.org/migrants/organisation> . }
|