Updated mapping rules

This commit is contained in:
felix
2025-01-17 14:42:54 +01:00
parent a6571eefa5
commit dba1ada5e2
3 changed files with 27 additions and 7 deletions

View File

@@ -6,7 +6,8 @@ CONSTRUCT {
FILTER (?p IN (
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type>,
<http://xmlns.com/foaf/0.1/familyName>
<http://xmlns.com/foaf/0.1/familyName>,
<http://mu.semte.ch/vocabularies/core/uuid>
))
FILTER NOT EXISTS {

View File

@@ -0,0 +1,21 @@
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX persoon: <https://data.vlaanderen.be/ns/persoon#>
PREFIX persoon_loket: <http://data.vlaanderen.be/ns/persoon#>
PREFIX person: <http://www.w3.org/ns/person#>
# DL and OP both use persoon:gebruikteVoornaam but with different semantics (!)
# First name: persoon:gebruikteVoornaam => foaf:givenName
# Alternatieve voornaam: foaf:name => persoon:gebruikteVoornaam
# We do both in one query with an OPTIONAL because they need to happen simultaneously
# not to end up in a loop
# Part 1
CONSTRUCT {
?s persoon:gebruikteVoornaam ?name .
} WHERE {
?s a person:Person;
foaf:name ?name .
}

View File

@@ -11,13 +11,11 @@ PREFIX person: <http://www.w3.org/ns/person#>
# We do both in one query with an OPTIONAL because they need to happen simultaneously
# not to end up in a loop
# Part 2
CONSTRUCT {
?s foaf:givenName ?gebruikteVoornaam .
?s persoon:gebruikteVoornaam ?name .
} WHERE {
?s a person:Person .
OPTIONAL { ?s persoon_loket:gebruikteVoornaam ?gebruikteVoornaam . }
OPTIONAL { ?s foaf:name ?name . }
?s a person:Person ;
persoon_loket:gebruikteVoornaam ?gebruikteVoornaam .
}