-
Notifications
You must be signed in to change notification settings - Fork 35
conversion:date_pattern
timrdf edited this page Feb 19, 2011
·
24 revisions
conversion:date_pattern specifies how to parse the literal value into a date. The value uses Java's date patterns.
bash-3.2$ ./convert-uk-offshore-oil-wells.sh
...
DATE FAILED: "1989-10-02" !~ 0 templates @ :thing_2 :completion_date
...
Change the parameters from:
conversion:enhance [
ov:csvCol 4;
ov:csvHeader "Completion_Date";
conversion:label "Completion_Date";
conversion:comment "";
conversion:range xsd:date;
];
to:
conversion:enhance [
ov:csvCol 4;
ov:csvHeader "Completion_Date";
conversion:label "Completion_Date";
conversion:eg "1989-10-02";
conversion:date_pattern "yyyy-mm-dd";
conversion:comment "";
conversion:range xsd:date;
];
42
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX conversion: <http://purl.org/twc/vocab/conversion/>
SELECT count(distinct ?enhancement) as ?count
WHERE {
GRAPH <http://purl.org/twc/vocab/conversion/ConversionProcess> {
?dataset a void:Dataset;
conversion:conversion_process [
conversion:enhance ?enhancement
]
.
?enhancement conversion:date_pattern ?pattern .
}
}