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.
14 lines
631 B
SPARQL
14 lines
631 B
SPARQL
PREFIX schema: <https://schema.org/>
|
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
|
|
|
DELETE { ?s <http://example.org/migrants/organisation#inst_name> ?v . }
|
|
INSERT { ?s schema:name ?v . }
|
|
WHERE { ?s <http://example.org/migrants/organisation#inst_name> ?v . }
|
|
;
|
|
DELETE { ?s <http://example.org/migrants/organisation#ref-IDLocation> ?v . }
|
|
INSERT { ?s schema:location ?v . }
|
|
WHERE { ?s <http://example.org/migrants/organisation#ref-IDLocation> ?v . }
|
|
;
|
|
DELETE { ?s <http://example.org/migrants/organisation#comment> ?v . }
|
|
INSERT { ?s rdfs:comment ?v . }
|
|
WHERE { ?s <http://example.org/migrants/organisation#comment> ?v . }
|