added hadLocation for example numbers.
authorTim L <lebot@rpi.edu>
Tue, 06 Mar 2012 21:31:42 -0500
changeset 1792 cddec1eeadbd
parent 1791 71221d60b8c1
child 1793 01b340030cc8
added hadLocation for example numbers.
examples/bin/ckan-metadata.sh
examples/meta/w3c-provenance-working-group-prov-examples.void.ttl
--- a/examples/bin/ckan-metadata.sh	Tue Mar 06 21:03:39 2012 -0500
+++ b/examples/bin/ckan-metadata.sh	Tue Mar 06 21:31:42 2012 -0500
@@ -33,10 +33,15 @@
 
 for example in `find . -type d -name rdf`; do
    example="${example#./}"
+   num="${example#eg-}"
+   num="${num/-*/}"
    echo
    echo "# $example"
    echo "<$DATAHUB>"
-   echo "   dcterms:hasPart <$BASE/$example> ."
+   echo "   dcterms:hasPart <$BASE/$example>;"
+   echo "   dcterms:title \"$example\";"
+   echo "   prov:hadLocation $num;"
+   echo "."
    echo
    echo "<$BASE/$example>"
    echo "   a dcat:Dataset, void:Dataset;"
--- a/examples/meta/w3c-provenance-working-group-prov-examples.void.ttl	Tue Mar 06 21:03:39 2012 -0500
+++ b/examples/meta/w3c-provenance-working-group-prov-examples.void.ttl	Tue Mar 06 21:31:42 2012 -0500
@@ -165,7 +165,10 @@
 
 # eg-10-trust-agent-annotation/rdf
 <http://thedatahub.org/dataset/w3c-provenance-working-group-prov-examples>
-   dcterms:hasPart <http://dvcs.w3.org/hg/prov/file/tip/examples/eg-10-trust-agent-annotation/rdf> .
+   dcterms:hasPart <http://dvcs.w3.org/hg/prov/file/tip/examples/eg-10-trust-agent-annotation/rdf>;
+   dcterms:title "eg-10-trust-agent-annotation/rdf";
+   prov:hadLocation 10;
+.
 
 <http://dvcs.w3.org/hg/prov/file/tip/examples/eg-10-trust-agent-annotation/rdf>
    a dcat:Dataset, void:Dataset;
@@ -174,7 +177,10 @@
 
 # eg-11-w3c-publication/asn/convert/rdf
 <http://thedatahub.org/dataset/w3c-provenance-working-group-prov-examples>
-   dcterms:hasPart <http://dvcs.w3.org/hg/prov/file/tip/examples/eg-11-w3c-publication/asn/convert/rdf> .
+   dcterms:hasPart <http://dvcs.w3.org/hg/prov/file/tip/examples/eg-11-w3c-publication/asn/convert/rdf>;
+   dcterms:title "eg-11-w3c-publication/asn/convert/rdf";
+   prov:hadLocation 11;
+.
 
 <http://dvcs.w3.org/hg/prov/file/tip/examples/eg-11-w3c-publication/asn/convert/rdf>
    a dcat:Dataset, void:Dataset;
@@ -184,7 +190,10 @@
 
 # eg-12-pnnl-atmospheric-climate-science-data-node/rdf
 <http://thedatahub.org/dataset/w3c-provenance-working-group-prov-examples>
-   dcterms:hasPart <http://dvcs.w3.org/hg/prov/file/tip/examples/eg-12-pnnl-atmospheric-climate-science-data-node/rdf> .
+   dcterms:hasPart <http://dvcs.w3.org/hg/prov/file/tip/examples/eg-12-pnnl-atmospheric-climate-science-data-node/rdf>;
+   dcterms:title "eg-12-pnnl-atmospheric-climate-science-data-node/rdf";
+   prov:hadLocation 12;
+.
 
 <http://dvcs.w3.org/hg/prov/file/tip/examples/eg-12-pnnl-atmospheric-climate-science-data-node/rdf>
    a dcat:Dataset, void:Dataset;
@@ -193,7 +202,10 @@
 
 # eg-13-unqualified-and-qualified-involvement/rdf
 <http://thedatahub.org/dataset/w3c-provenance-working-group-prov-examples>
-   dcterms:hasPart <http://dvcs.w3.org/hg/prov/file/tip/examples/eg-13-unqualified-and-qualified-involvement/rdf> .
+   dcterms:hasPart <http://dvcs.w3.org/hg/prov/file/tip/examples/eg-13-unqualified-and-qualified-involvement/rdf>;
+   dcterms:title "eg-13-unqualified-and-qualified-involvement/rdf";
+   prov:hadLocation 13;
+.
 
 <http://dvcs.w3.org/hg/prov/file/tip/examples/eg-13-unqualified-and-qualified-involvement/rdf>
    a dcat:Dataset, void:Dataset;
@@ -202,7 +214,10 @@
 
 # eg-14-unqualified-and-qualified-times/rdf
 <http://thedatahub.org/dataset/w3c-provenance-working-group-prov-examples>
-   dcterms:hasPart <http://dvcs.w3.org/hg/prov/file/tip/examples/eg-14-unqualified-and-qualified-times/rdf> .
+   dcterms:hasPart <http://dvcs.w3.org/hg/prov/file/tip/examples/eg-14-unqualified-and-qualified-times/rdf>;
+   dcterms:title "eg-14-unqualified-and-qualified-times/rdf";
+   prov:hadLocation 14;
+.
 
 <http://dvcs.w3.org/hg/prov/file/tip/examples/eg-14-unqualified-and-qualified-times/rdf>
    a dcat:Dataset, void:Dataset;
@@ -211,7 +226,10 @@
 
 # eg-2-rdf-stub/rdf
 <http://thedatahub.org/dataset/w3c-provenance-working-group-prov-examples>
-   dcterms:hasPart <http://dvcs.w3.org/hg/prov/file/tip/examples/eg-2-rdf-stub/rdf> .
+   dcterms:hasPart <http://dvcs.w3.org/hg/prov/file/tip/examples/eg-2-rdf-stub/rdf>;
+   dcterms:title "eg-2-rdf-stub/rdf";
+   prov:hadLocation 2;
+.
 
 <http://dvcs.w3.org/hg/prov/file/tip/examples/eg-2-rdf-stub/rdf>
    a dcat:Dataset, void:Dataset;
@@ -220,7 +238,10 @@
 
 # eg-6-pcurl-py/rdf
 <http://thedatahub.org/dataset/w3c-provenance-working-group-prov-examples>
-   dcterms:hasPart <http://dvcs.w3.org/hg/prov/file/tip/examples/eg-6-pcurl-py/rdf> .
+   dcterms:hasPart <http://dvcs.w3.org/hg/prov/file/tip/examples/eg-6-pcurl-py/rdf>;
+   dcterms:title "eg-6-pcurl-py/rdf";
+   prov:hadLocation 6;
+.
 
 <http://dvcs.w3.org/hg/prov/file/tip/examples/eg-6-pcurl-py/rdf>
    a dcat:Dataset, void:Dataset;
@@ -229,7 +250,10 @@
 
 # eg-7-magetab2rdf/rdf
 <http://thedatahub.org/dataset/w3c-provenance-working-group-prov-examples>
-   dcterms:hasPart <http://dvcs.w3.org/hg/prov/file/tip/examples/eg-7-magetab2rdf/rdf> .
+   dcterms:hasPart <http://dvcs.w3.org/hg/prov/file/tip/examples/eg-7-magetab2rdf/rdf>;
+   dcterms:title "eg-7-magetab2rdf/rdf";
+   prov:hadLocation 7;
+.
 
 <http://dvcs.w3.org/hg/prov/file/tip/examples/eg-7-magetab2rdf/rdf>
    a dcat:Dataset, void:Dataset;
@@ -237,7 +261,10 @@
 
 # eg-8-datafaqs-faqt-brick/rdf
 <http://thedatahub.org/dataset/w3c-provenance-working-group-prov-examples>
-   dcterms:hasPart <http://dvcs.w3.org/hg/prov/file/tip/examples/eg-8-datafaqs-faqt-brick/rdf> .
+   dcterms:hasPart <http://dvcs.w3.org/hg/prov/file/tip/examples/eg-8-datafaqs-faqt-brick/rdf>;
+   dcterms:title "eg-8-datafaqs-faqt-brick/rdf";
+   prov:hadLocation 8;
+.
 
 <http://dvcs.w3.org/hg/prov/file/tip/examples/eg-8-datafaqs-faqt-brick/rdf>
    a dcat:Dataset, void:Dataset;
@@ -245,7 +272,10 @@
 
 # eg-9-provrdf-owl-coverage/rdf
 <http://thedatahub.org/dataset/w3c-provenance-working-group-prov-examples>
-   dcterms:hasPart <http://dvcs.w3.org/hg/prov/file/tip/examples/eg-9-provrdf-owl-coverage/rdf> .
+   dcterms:hasPart <http://dvcs.w3.org/hg/prov/file/tip/examples/eg-9-provrdf-owl-coverage/rdf>;
+   dcterms:title "eg-9-provrdf-owl-coverage/rdf";
+   prov:hadLocation 9;
+.
 
 <http://dvcs.w3.org/hg/prov/file/tip/examples/eg-9-provrdf-owl-coverage/rdf>
    a dcat:Dataset, void:Dataset;
@@ -254,7 +284,10 @@
 
 # eg-9-provrdf-owl-coverage/rdf/create/rdf
 <http://thedatahub.org/dataset/w3c-provenance-working-group-prov-examples>
-   dcterms:hasPart <http://dvcs.w3.org/hg/prov/file/tip/examples/eg-9-provrdf-owl-coverage/rdf/create/rdf> .
+   dcterms:hasPart <http://dvcs.w3.org/hg/prov/file/tip/examples/eg-9-provrdf-owl-coverage/rdf/create/rdf>;
+   dcterms:title "eg-9-provrdf-owl-coverage/rdf/create/rdf";
+   prov:hadLocation 9;
+.
 
 <http://dvcs.w3.org/hg/prov/file/tip/examples/eg-9-provrdf-owl-coverage/rdf/create/rdf>
    a dcat:Dataset, void:Dataset;