Fix rules about names
This commit is contained in:
@@ -1,10 +0,0 @@
|
|||||||
PREFIX persoon: <https://data.vlaanderen.be/ns/persoon#>
|
|
||||||
PREFIX persoon_loket: <http://data.vlaanderen.be/ns/persoon#>
|
|
||||||
|
|
||||||
# Map from http persoon to https persoon namespace
|
|
||||||
|
|
||||||
CONSTRUCT {
|
|
||||||
?s persoon:gebruikteVoornaam ?o .
|
|
||||||
} WHERE {
|
|
||||||
?s persoon_loket:gebruikteVoornaam ?o .
|
|
||||||
}
|
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
|
||||||
|
PREFIX persoon: <https://data.vlaanderen.be/ns/persoon#>
|
||||||
|
PREFIX person: <http://www.w3.org/ns/person#>
|
||||||
|
|
||||||
|
# DL and OP both use persoon:gebruikteVoornaam but with different semantics (!)
|
||||||
|
|
||||||
|
# Alternatieve voornaam: foaf:name => persoon:gebruikteVoornaam
|
||||||
|
|
||||||
|
CONSTRUCT {
|
||||||
|
?s persoon:gebruikteVoornaam ?name .
|
||||||
|
} WHERE {
|
||||||
|
?s a person:Person ;
|
||||||
|
foaf:name ?name .
|
||||||
|
}
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
|
||||||
|
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
|
||||||
|
|
||||||
|
CONSTRUCT {
|
||||||
|
?s foaf:givenName ?gebruikteVoornaam .
|
||||||
|
} WHERE {
|
||||||
|
?s a person:Person ;
|
||||||
|
persoon_loket:gebruikteVoornaam ?gebruikteVoornaam .
|
||||||
|
}
|
||||||
@@ -1,22 +0,0 @@
|
|||||||
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
|
|
||||||
|
|
||||||
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 . }
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user