migrants/updates_step05/006-skos-concepts.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

23 lines
830 B
SPARQL

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
INSERT { ?s a skos:Concept . ?s skos:prefLabel ?label . }
WHERE {
VALUES ?type {
<http://example.org/migrants/Gender>
<http://example.org/migrants/Profession>
<http://example.org/migrants/MigrationReason>
<http://example.org/migrants/EmploymentType>
<http://example.org/migrants/InstitutionType>
<http://example.org/migrants/RelationshipType>
<http://example.org/migrants/RelationshipTypePrecise>
<http://example.org/migrants/Nametype>
<http://example.org/migrants/Religion>
<http://example.org/migrants/Continent>
<http://example.org/migrants/Country>
<http://example.org/migrants/City>
<http://example.org/migrants/State>
}
?s a ?type .
?s rdfs:label ?label .
}