migrants/updates_step05/004-organisation-properties.rq
Daniel Hernandez 3d0829aa9d Add Step 5: use well-known vocabularies (Schema.org, OWL, WGS84, SKOS)
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.
2026-03-01 12:07:01 +01:00

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 . }