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.
10 lines
288 B
SPARQL
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)
|
|
}
|