converted-date-to-datetime

This commit is contained in:
Elias Papanikitas
2023-12-05 11:58:54 +01:00
parent 53bbc00327
commit 329e87f0eb
2 changed files with 115 additions and 5 deletions

View File

@@ -0,0 +1,110 @@
PREFIX mandaat: <http://data.vlaanderen.be/ns/mandaat#>
PREFIX ch: <http://data.lblod.info/vocabularies/contacthub/>
PREFIX ere: <http://data.lblod.info/vocabularies/erediensten/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
DELETE {
GRAPH ?g {
?s mandaat:start ?o .
}
}
INSERT {
GRAPH ?g {
?s mandaat:start ?converteddate .
}
}
WHERE {
GRAPH ?g {
?s mandaat:start ?o .
}
VALUES ?g {
<http://mu.semte.ch/graphs/worship-service>
<http://mu.semte.ch/graphs/administrative-unit>
}
BIND(xsd:dateTime(?o) AS ?converteddate).
}
;
DELETE {
GRAPH ?g {
?s mandaat:einde ?o .
}
}
INSERT {
GRAPH ?g {
?s mandaat:einde ?converteddate .
}
}
WHERE {
GRAPH ?g {
?s mandaat:einde ?o .
}
VALUES ?g {
<http://mu.semte.ch/graphs/worship-service>
<http://mu.semte.ch/graphs/administrative-unit>
}
BIND(xsd:dateTime(?o) AS ?converteddate).
}
;
DELETE {
GRAPH ?g {
?s ch:startdatum ?o .
}
}
INSERT {
GRAPH ?g {
?s ch:startdatum ?converteddate .
}
}
WHERE {
GRAPH ?g {
?s ch:startdatum ?o .
}
VALUES ?g {
<http://mu.semte.ch/graphs/worship-service>
<http://mu.semte.ch/graphs/administrative-unit>
}
BIND(xsd:dateTime(?o) AS ?converteddate).
}
;
DELETE {
GRAPH ?g {
?s ch:eindedatum ?o .
}
}
INSERT {
GRAPH ?g {
?s ch:eindedatum ?converteddate .
}
}
WHERE {
GRAPH ?g {
?s ch:eindedatum ?o .
}
VALUES ?g {
<http://mu.semte.ch/graphs/worship-service>
<http://mu.semte.ch/graphs/administrative-unit>
}
BIND(xsd:dateTime(?o) AS ?converteddate).
}
;
DELETE {
GRAPH ?g {
?s ere:geplandeEinddatumAanstelling ?o .
}
}
INSERT {
GRAPH ?g {
?s ere:geplandeEinddatumAanstelling ?converteddate .
}
}
WHERE {
GRAPH ?g {
?s ere:geplandeEinddatumAanstelling ?o .
}
VALUES ?g {
<http://mu.semte.ch/graphs/worship-service>
<http://mu.semte.ch/graphs/administrative-unit>
}
BIND(xsd:dateTime(?o) AS ?converteddate).
}
;

View File

@@ -92,11 +92,11 @@
"super": ["agents"],
"attributes": {
"agent-start-date": {
"type": "date",
"type": "datetime",
"predicate": "ch:startdatum"
},
"agent-end-date": {
"type": "date",
"type": "datetime",
"predicate": "ch:eindedatum"
}
},
@@ -140,11 +140,11 @@
"super": ["agents-in-position"],
"attributes": {
"start-date": {
"type": "date",
"type": "datetime",
"predicate": "mandaat:start"
},
"end-date": {
"type": "date",
"type": "datetime",
"predicate": "mandaat:einde"
}
},
@@ -188,7 +188,7 @@
"super": ["mandatories"],
"attributes": {
"expected-end-date": {
"type": "date",
"type": "datetime",
"predicate": "ere:geplandeEinddatumAanstelling"
},
"reason-stopped": {