Merge pull request #512 from lblod/fix/mkissing-formatting-dates-consumers

Add dates mapping rules for mandatarissen and leidinggevenden consumers
This commit is contained in:
Claire Lovisa
2025-02-05 14:21:50 +01:00
committed by GitHub
55 changed files with 61 additions and 9 deletions

View File

@@ -0,0 +1,11 @@
PREFIX mandaat: <http://data.vlaanderen.be/ns/mandaat#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
CONSTRUCT {
?s mandaat:einde ?endDateTime .
} WHERE {
?s mandaat:einde ?endDate .
BIND(SUBSTR(STR(?endDate), 1, 10) as ?endDateWithoutTimezone)
BIND(STRDT(CONCAT(?endDateWithoutTimezone, 'T02:00:00'), xsd:dateTime) as ?endDateTime)
}

View File

@@ -0,0 +1,11 @@
PREFIX mandaat: <http://data.vlaanderen.be/ns/mandaat#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
CONSTRUCT {
?s mandaat:start ?startDateTime .
} WHERE {
?s mandaat:start ?startDate .
BIND(SUBSTR(STR(?startDate), 1, 10) as ?startDateWithoutTimezone)
BIND(STRDT(CONCAT(?startDateWithoutTimezone, 'T02:00:00'), xsd:dateTime) as ?startDateTime)
}

View File

@@ -11,5 +11,4 @@ CONSTRUCT {
lblodlg:Functionaris
person:Person
}
}

View File

@@ -5,6 +5,7 @@ CONSTRUCT {
?s a ch:AgentInPositie .
} WHERE {
?s a ?type .
VALUES ?type {
lblodlg:Functionaris
}

View File

@@ -7,4 +7,4 @@ CONSTRUCT {
FILTER NOT EXISTS {
?s ?p "" .
}
}
}

View File

@@ -4,4 +4,4 @@ CONSTRUCT {
WHERE {
?s a <http://data.lblod.info/vocabularies/leidinggevenden/Bestuursfunctie>.
?s <http://schema.org/contactPoint> ?contactpoint.
}
}

View File

@@ -8,4 +8,4 @@ CONSTRUCT {
FILTER NOT EXISTS {
?s ?p "" .
}
}
}

View File

@@ -1,10 +1,14 @@
PREFIX mandaat: <http://data.vlaanderen.be/ns/mandaat#>
CONSTRUCT {
?s ?p ?o.
} WHERE {
?s a <http://data.lblod.info/vocabularies/leidinggevenden/Functionaris>;
?p ?o.
FILTER NOT EXISTS {
?s ?p "" .
}
}
FILTER (?p NOT IN (mandaat:start, mandaat:einde))
FILTER NOT EXISTS {
?s ?p "" .
}
}

View File

@@ -13,4 +13,4 @@ CONSTRUCT {
FILTER NOT EXISTS {
?s ?p "" .
}
}
}

View File

@@ -0,0 +1,11 @@
PREFIX mandaat: <http://data.vlaanderen.be/ns/mandaat#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
CONSTRUCT {
?s mandaat:einde ?endDateTime .
} WHERE {
?s mandaat:einde ?endDate .
BIND(SUBSTR(STR(?endDate), 1, 10) as ?endDateWithoutTimezone)
BIND(STRDT(CONCAT(?endDateWithoutTimezone, 'T02:00:00'), xsd:dateTime) as ?endDateTime)
}

View File

@@ -0,0 +1,11 @@
PREFIX mandaat: <http://data.vlaanderen.be/ns/mandaat#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
CONSTRUCT {
?s mandaat:start ?startDateTime .
} WHERE {
?s mandaat:start ?startDate .
BIND(SUBSTR(STR(?startDate), 1, 10) as ?startDateWithoutTimezone)
BIND(STRDT(CONCAT(?startDateWithoutTimezone, 'T02:00:00'), xsd:dateTime) as ?startDateTime)
}

View File

@@ -1,3 +1,5 @@
PREFIX mandaat: <http://data.vlaanderen.be/ns/mandaat#>
CONSTRUCT {
?s ?p ?o.
} WHERE {
@@ -19,6 +21,8 @@ CONSTRUCT {
<http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/5ab0e9b8a3b2ca7c5e000003>
))
FILTER (?p NOT IN (mandaat:start, mandaat:einde))
FILTER NOT EXISTS {
?s ?p "" .
}