ckan void metadata script and output
authorTim L <lebot@rpi.edu>
Tue, 06 Mar 2012 20:26:51 -0500
changeset 1787 2c00040f748a
parent 1786 e0d829825ec9
child 1788 aee3f1740f43
ckan void metadata script and output
examples/bin/ckan-metadata.sh
examples/meta/w3c-provenance-working-group-prov-examples.void.ttl
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/examples/bin/ckan-metadata.sh	Tue Mar 06 20:26:51 2012 -0500
@@ -0,0 +1,39 @@
+#!/bin/bash
+
+BASE="http://dvcs.w3.org/hg/prov/file/tip/examples"
+
+echo "@prefix void:    <http://rdfs.org/ns/void#> ."
+echo "@prefix dcterms: <http://purl.org/dc/terms/> ."
+echo "@prefix dcat:    <http://www.w3.org/ns/dcat#> ."
+echo "@prefix rdfs:    <http://www.w3.org/2000/01/rdf-schema#> ."
+echo "@prefix foaf:    <http://xmlns.com/foaf/0.1/> ."
+echo "@prefix prov:    <http://www.w3.org/ns/prov#> ."
+
+for example in `find . -type d -name "eg-*"`; do
+   example="${example#./}"
+   echo
+   echo "# $example"
+   echo "<$BASE/$example> a dcat:Dataset;"
+   echo "   dcterms:title \"$example\";"
+   if [ -e $example/document/homepage ]; then
+      for homepage in `cat $example/document/homepage`; do
+         echo "   foaf:homepage <$homepage>;"
+      done
+   fi
+   #for format in asn rdf xml json; do
+   #done
+   echo "."
+done
+
+for example in `find . -type d -name rdf`; do
+   example="${example#./}"
+   echo
+   echo "# $example"
+   echo "<$BASE/$example>"
+   echo "   a dcat:Dataset, void:Dataset;"
+   for dump in `find $example -name "*.rdf" -or -name "*.ttl" -or -name "*.nt" -or -name "*.trig"`; do
+      dump="${dump#./}"
+      echo "   void:dataDump <$BASE/$dump>;"
+   done
+   echo "."
+done
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/examples/meta/w3c-provenance-working-group-prov-examples.void.ttl	Tue Mar 06 20:26:51 2012 -0500
@@ -0,0 +1,169 @@
+@prefix void:    <http://rdfs.org/ns/void#> .
+@prefix dcterms: <http://purl.org/dc/terms/> .
+@prefix dcat:    <http://www.w3.org/ns/dcat#> .
+@prefix rdfs:    <http://www.w3.org/2000/01/rdf-schema#> .
+@prefix foaf:    <http://xmlns.com/foaf/0.1/> .
+@prefix prov:    <http://www.w3.org/ns/prov#> .
+
+# eg-1-asn-stub
+<http://dvcs.w3.org/hg/prov/file/tip/examples/eg-1-asn-stub> a dcat:Dataset;
+   dcterms:title "eg-1-asn-stub";
+   foaf:homepage <http://www.w3.org/2011/prov/wiki/Eg-1-asn-stub>;
+.
+
+# eg-10-trust-agent-annotation
+<http://dvcs.w3.org/hg/prov/file/tip/examples/eg-10-trust-agent-annotation> a dcat:Dataset;
+   dcterms:title "eg-10-trust-agent-annotation";
+   foaf:homepage <http://www.w3.org/2011/prov/track/issues/260>;
+   foaf:homepage <http://www.w3.org/2011/prov/wiki/eg-10-trust-agent-annotation>;
+.
+
+# eg-11-w3c-publication
+<http://dvcs.w3.org/hg/prov/file/tip/examples/eg-11-w3c-publication> a dcat:Dataset;
+   dcterms:title "eg-11-w3c-publication";
+   foaf:homepage <http://www.w3.org/mid/EMEW3|dfd9b4f11131321fb55e13247fb34d1ao1GCHn08L.Moreau|ecs.soton.ac.uk|4F3E4569.7000800@ecs.soton.ac.uk>;
+   foaf:homepage <http://www.w3.org/2011/prov/wiki/Eg-11-w3c-publication>;
+.
+
+# eg-12-pnnl-atmospheric-climate-science-data-node
+<http://dvcs.w3.org/hg/prov/file/tip/examples/eg-12-pnnl-atmospheric-climate-science-data-node> a dcat:Dataset;
+   dcterms:title "eg-12-pnnl-atmospheric-climate-science-data-node";
+   foaf:homepage <http://www.w3.org/2011/prov/wiki/Eg-12-pnnl-atmospheric-climate-science-data-node>;
+   foaf:homepage <http://dvcs.w3.org/hg/prov/file/tip/examples/eg-12-pnnl-atmospheric-climate-science-data-node>;
+.
+
+# eg-13-unqualified-and-qualified-involvement
+<http://dvcs.w3.org/hg/prov/file/tip/examples/eg-13-unqualified-and-qualified-involvement> a dcat:Dataset;
+   dcterms:title "eg-13-unqualified-and-qualified-involvement";
+   foaf:homepage <http://www.w3.org/2011/prov/wiki/Eg-13-unqualified-and-qualified-involvement>;
+   foaf:homepage <http://dvcs.w3.org/hg/prov/file/tip/examples/g-13-unqualified-and-qualified-involvement>;
+.
+
+# eg-14-unqualified-and-qualified-times
+<http://dvcs.w3.org/hg/prov/file/tip/examples/eg-14-unqualified-and-qualified-times> a dcat:Dataset;
+   dcterms:title "eg-14-unqualified-and-qualified-times";
+   foaf:homepage <http://www.w3.org/2011/prov/wiki/Eg-14-unqualified-and-qualified-times>;
+   foaf:homepage <http://dvcs.w3.org/hg/prov/file/tip/examples/g-14-unqualified-and-qualified-times>;
+.
+
+# eg-15-crime-file
+<http://dvcs.w3.org/hg/prov/file/tip/examples/eg-15-crime-file> a dcat:Dataset;
+   dcterms:title "eg-15-crime-file";
+   foaf:homepage <http://www.w3.org/2011/prov/wiki/Eg-15-crime-file>;
+   foaf:homepage <http://dvcs.w3.org/hg/prov/file/tip/examples/eg-15-crime-file>;
+.
+
+# eg-2-rdf-stub
+<http://dvcs.w3.org/hg/prov/file/tip/examples/eg-2-rdf-stub> a dcat:Dataset;
+   dcterms:title "eg-2-rdf-stub";
+   foaf:homepage <http://www.w3.org/2011/prov/wiki/Eg-2-rdf-stub>;
+.
+
+# eg-3-xml-stub
+<http://dvcs.w3.org/hg/prov/file/tip/examples/eg-3-xml-stub> a dcat:Dataset;
+   dcterms:title "eg-3-xml-stub";
+   foaf:homepage <http://www.w3.org/2011/prov/wiki/Eg-3-xml-stub>;
+.
+
+# eg-4-json-stub
+<http://dvcs.w3.org/hg/prov/file/tip/examples/eg-4-json-stub> a dcat:Dataset;
+   dcterms:title "eg-4-json-stub";
+   foaf:homepage <http://www.w3.org/2011/prov/wiki/Eg-4-json-stub>;
+.
+
+# eg-5-self-portrait
+<http://dvcs.w3.org/hg/prov/file/tip/examples/eg-5-self-portrait> a dcat:Dataset;
+   dcterms:title "eg-5-self-portrait";
+.
+
+# eg-6-pcurl-py
+<http://dvcs.w3.org/hg/prov/file/tip/examples/eg-6-pcurl-py> a dcat:Dataset;
+   dcterms:title "eg-6-pcurl-py";
+   foaf:homepage <https://github.com/timrdf/csv2rdf4lod-automation/wiki/Script:-pcurl.py>;
+   foaf:homepage <https://github.com/timrdf/csv2rdf4lod-automation/blob/master/bin/util/pcurl.py>;
+   foaf:homepage <http://www.w3.org/2011/prov/wiki/Eg-6-pcurl-py>;
+.
+
+# eg-7-magetab2rdf
+<http://dvcs.w3.org/hg/prov/file/tip/examples/eg-7-magetab2rdf> a dcat:Dataset;
+   dcterms:title "eg-7-magetab2rdf";
+   foaf:homepage <http://code.google.com/p/magetab2rdf/wiki/Mappings>;
+.
+
+# eg-8-datafaqs-faqt-brick
+<http://dvcs.w3.org/hg/prov/file/tip/examples/eg-8-datafaqs-faqt-brick> a dcat:Dataset;
+   dcterms:title "eg-8-datafaqs-faqt-brick";
+   foaf:homepage <https://github.com/timrdf/DataFAQs/wiki/FAqT-Brick>;
+.
+
+# eg-9-provrdf-owl-coverage
+<http://dvcs.w3.org/hg/prov/file/tip/examples/eg-9-provrdf-owl-coverage> a dcat:Dataset;
+   dcterms:title "eg-9-provrdf-owl-coverage";
+   foaf:homepage <http://www.w3.org/2011/prov/wiki/Eg-9-provrdf-owl-coverage>;
+   foaf:homepage <http://aquarius.tw.rpi.edu/prov-wg/provrdf-owl-coverage>;
+.
+
+# eg-10-trust-agent-annotation/rdf
+<http://dvcs.w3.org/hg/prov/file/tip/examples/eg-10-trust-agent-annotation/rdf>
+   a dcat:Dataset, void:Dataset;
+   void:dataDump <http://dvcs.w3.org/hg/prov/file/tip/examples/eg-10-trust-agent-annotation/rdf/eg-10-trust-agent-annotation-via-notes.ttl>;
+.
+
+# eg-11-w3c-publication/asn/convert/rdf
+<http://dvcs.w3.org/hg/prov/file/tip/examples/eg-11-w3c-publication/asn/convert/rdf>
+   a dcat:Dataset, void:Dataset;
+   void:dataDump <http://dvcs.w3.org/hg/prov/file/tip/examples/eg-11-w3c-publication/asn/convert/rdf/eg-11-w3c-publication.n3.rdf>;
+   void:dataDump <http://dvcs.w3.org/hg/prov/file/tip/examples/eg-11-w3c-publication/asn/convert/rdf/eg-11-w3c-publication.n3.ttl>;
+.
+
+# eg-12-pnnl-atmospheric-climate-science-data-node/rdf
+<http://dvcs.w3.org/hg/prov/file/tip/examples/eg-12-pnnl-atmospheric-climate-science-data-node/rdf>
+   a dcat:Dataset, void:Dataset;
+   void:dataDump <http://dvcs.w3.org/hg/prov/file/tip/examples/eg-12-pnnl-atmospheric-climate-science-data-node/rdf/eg-12-pnnl-atmospheric-climate-science-data-node.ttl>;
+.
+
+# eg-13-unqualified-and-qualified-involvement/rdf
+<http://dvcs.w3.org/hg/prov/file/tip/examples/eg-13-unqualified-and-qualified-involvement/rdf>
+   a dcat:Dataset, void:Dataset;
+   void:dataDump <http://dvcs.w3.org/hg/prov/file/tip/examples/eg-13-unqualified-and-qualified-involvement/rdf/eg-13-unqualified-and-qualified-involvement.ttl>;
+.
+
+# eg-14-unqualified-and-qualified-times/rdf
+<http://dvcs.w3.org/hg/prov/file/tip/examples/eg-14-unqualified-and-qualified-times/rdf>
+   a dcat:Dataset, void:Dataset;
+   void:dataDump <http://dvcs.w3.org/hg/prov/file/tip/examples/eg-14-unqualified-and-qualified-times/rdf/eg-14-unqualified-and-qualified-times.ttl>;
+.
+
+# eg-2-rdf-stub/rdf
+<http://dvcs.w3.org/hg/prov/file/tip/examples/eg-2-rdf-stub/rdf>
+   a dcat:Dataset, void:Dataset;
+   void:dataDump <http://dvcs.w3.org/hg/prov/file/tip/examples/eg-2-rdf-stub/rdf/eg-2-rdf-stub.ttl>;
+.
+
+# eg-6-pcurl-py/rdf
+<http://dvcs.w3.org/hg/prov/file/tip/examples/eg-6-pcurl-py/rdf>
+   a dcat:Dataset, void:Dataset;
+   void:dataDump <http://dvcs.w3.org/hg/prov/file/tip/examples/eg-6-pcurl-py/rdf/Eg-6-pcurl-py.prov.ttl>;
+.
+
+# eg-7-magetab2rdf/rdf
+<http://dvcs.w3.org/hg/prov/file/tip/examples/eg-7-magetab2rdf/rdf>
+   a dcat:Dataset, void:Dataset;
+.
+
+# eg-8-datafaqs-faqt-brick/rdf
+<http://dvcs.w3.org/hg/prov/file/tip/examples/eg-8-datafaqs-faqt-brick/rdf>
+   a dcat:Dataset, void:Dataset;
+.
+
+# eg-9-provrdf-owl-coverage/rdf
+<http://dvcs.w3.org/hg/prov/file/tip/examples/eg-9-provrdf-owl-coverage/rdf>
+   a dcat:Dataset, void:Dataset;
+   void:dataDump <http://dvcs.w3.org/hg/prov/file/tip/examples/eg-9-provrdf-owl-coverage/rdf/create/rdf/eg-9-provrdf-owl-coverage.html.ttl>;
+.
+
+# eg-9-provrdf-owl-coverage/rdf/create/rdf
+<http://dvcs.w3.org/hg/prov/file/tip/examples/eg-9-provrdf-owl-coverage/rdf/create/rdf>
+   a dcat:Dataset, void:Dataset;
+   void:dataDump <http://dvcs.w3.org/hg/prov/file/tip/examples/eg-9-provrdf-owl-coverage/rdf/create/rdf/eg-9-provrdf-owl-coverage.html.ttl>;
+.