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.
23 lines
830 B
SPARQL
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 .
|
|
}
|