migrants/updates_step05/007-classes.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

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