migrants/updates_step05/005-labels.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

10 lines
288 B
SPARQL

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX schema: <https://schema.org/>
INSERT { ?s rdfs:label ?label . }
WHERE {
?s a <http://example.org/migrants/person> .
?s schema:givenName ?fn .
?s schema:familyName ?ln .
BIND(CONCAT(STR(?fn), " ", STR(?ln)) AS ?label)
}