CARVIEW |
Select Language
HTTP/2 200
date: Fri, 25 Jul 2025 07:19:19 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-robots-tag: none
etag: W/"68549c8130c8032a0f5ce7b35da67084"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=kNotNhE2Zfb%2FXh7NOaq3SNitptBpFBYCkxMxllqgCSs19ppllWnCYRG0Tyq6Fjbu1M4qiqMfebDPbDqZIOyFf0ykuxGsajjlt6p1g2L9uoWrx%2FZUvW69Zr9pc9KemVWe1R1YqZYMsckWPWag3B76phJw2WUd7nNazJyqU%2FoENp5%2Bz0CotVIv%2BPNKkrIO3fI2e4G4WnXG73BjY%2FURinvLY4A5%2BQJ363jUoWRX8x8jrCjSgkmIDjQFOKMJ0%2B4FtoQFK9Ne9I%2BqbHYLWCHjrMsFRw%3D%3D--pog85fEXRWF3%2Bxwg--2%2BxE1sWjXD6mUtc4T8BCMw%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1021106312.1753427958; Path=/; Domain=github.com; Expires=Sat, 25 Jul 2026 07:19:18 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Sat, 25 Jul 2026 07:19:18 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: B04E:167D14:441A59:538049:68832FF6
conversion:date_pattern · timrdf/csv2rdf4lod-automation Wiki · GitHub
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 36
conversion:date_pattern
Tim L edited this page Aug 12, 2013
·
24 revisions
csv2rdf4lod-automation is licensed under the [Apache License, Version 2.0](https://github.com/timrdf/csv2rdf4lod-automation/wiki/License)
See conversion:Enhancement. See also conversion:datetime_pattern.
Patterns are now processed with Joda time.
conversion:date_pattern specifies how to parse a cell's literal value into a date. The pattern is specified by Java's date patterns. This only has effect when conversion:range is xsd:date.
conversion:enhance [
ov:csvCol 4;
ov:csvHeader "Completion_Date";
conversion:label "Completion_Date";
conversion:comment "";
conversion:range xsd:date;
];
If you run the conversion without following Step 2 (below), you will see something like this in the stderr log:
bash-3.2$ ./convert-uk-offshore-oil-wells.sh
...
DATE FAILED: "1989-10-02" !~ 0 patterns @ :thing_2 :completion_date
...
This is telling you that the string did not match any of the zero patterns provided. So let's add some patterns!
This tells the converter how to parse the date.
conversion:enhance [
ov:csvCol 4;
ov:csvHeader "Completion_Date";
conversion:label "Completion_Date";
conversion:comment "";
conversion:eg "1989-10-02";
conversion:pattern "yyyy-MM-dd";
conversion:range xsd:date;
];
Patterns should be specified using Java's SimpleDateFormat, whose table of variables is reproduced here:
PREFIX rdfs: <https://www.w3.org/2000/01/rdf-schema#>
PREFIX xsd: <https://www.w3.org/2001/XMLSchema#>
PREFIX conversion: <https://purl.org/twc/vocab/conversion/>
SELECT distinct ?pattern
WHERE {
GRAPH <https://purl.org/twc/vocab/conversion/ConversionProcess> {
?enhancement conversion:pattern ?pattern .
}
}
PREFIX rdfs: <https://www.w3.org/2000/01/rdf-schema#>
PREFIX xsd: <https://www.w3.org/2001/XMLSchema#>
PREFIX conversion: <https://purl.org/twc/vocab/conversion/>
SELECT count(distinct ?enhancement) as ?count
WHERE {
GRAPH <https://purl.org/twc/vocab/conversion/ConversionProcess> {
?dataset a void:Dataset;
conversion:conversion_process [
conversion:enhance ?enhancement
]
.
?enhancement conversion:pattern ?pattern .
}
}
Clone this wiki locally
You can’t perform that action at this time.