added dependency checks, handles prov.ttl as a component aggregation.
authorTim L <lebot@rpi.edu>
Thu, 06 Oct 2011 08:59:23 -0400
changeset 549 ecb890741234
parent 548 266035d8d652
child 550 056d5d418bc2
child 552 99576ec6cf64
added dependency checks, handles prov.ttl as a component aggregation.
ontology/component-aggregations/aggregate.sh
ontology/component-aggregations/prov-variant-1.owl.prov.ttl
--- a/ontology/component-aggregations/aggregate.sh	Thu Oct 06 13:50:44 2011 +0100
+++ b/ontology/component-aggregations/aggregate.sh	Thu Oct 06 08:59:23 2011 -0400
@@ -16,10 +16,21 @@
 
 base="http://dvcs.w3.org/hg/prov/raw-file/tip/ontology/component-aggregations"
 
+if [ ! `which md5` ]; then
+   echo "need md5 to proceed"
+   exit 1
+fi
+
+if [ ! `which rapper` ]; then
+   echo "need rapper to proceed; install http://download.librdf.org/source/raptor2-1.9.1.tar.gz "
+   echo "see http://librdf.org/raptor/INSTALL.html "
+   exit 1
+fi
+
 rm -f "_"`basename $0`*.tmp
 TEMP="_"`basename $0``date +%s`_$$.tmp
 
-for aggregation_file in `find . -name "*.ttl" | grep -v ".prov.ttl" | sed 's/^\.\///'`; do
+for aggregation_file in `find . -name "*.ttl" | grep -v "\.prov.ttl" | sed 's/^\.\///'`; do
    aggregation_url="${base}/${aggregation_file}"
    echo "$aggregation_url"
    rm -f $TEMP
--- a/ontology/component-aggregations/prov-variant-1.owl.prov.ttl	Thu Oct 06 13:50:44 2011 +0100
+++ b/ontology/component-aggregations/prov-variant-1.owl.prov.ttl	Thu Oct 06 08:59:23 2011 -0400
@@ -11,3 +11,94 @@
    a prov:Entity;
    nfo:fileURL <http://dvcs.w3.org/hg/prov/raw-file/tip/ontology/component-aggregations/prov-variant-1.ttl>;
 .
+@prefix nfo:  <http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#> .
+@prefix prov: <http://dvcs.w3.org/hg/prov/raw-file/tip/ontology/ProvenanceOntology.owl#> .
+@prefix :     <#> .
+
+:result
+   a prov:Entity;
+   nfo:fileURL <prov-variant-1.owl>;
+   prov:wasDerivedFrom :input;
+.
+:input
+   a prov:Entity;
+   nfo:fileURL <http://dvcs.w3.org/hg/prov/raw-file/tip/ontology/component-aggregations/prov-variant-1.ttl>;
+.
+@prefix nfo:  <http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#> .
+@prefix prov: <http://dvcs.w3.org/hg/prov/raw-file/tip/ontology/ProvenanceOntology.owl#> .
+@prefix :     <#> .
+
+:result
+   a prov:Entity;
+   nfo:fileURL <prov-variant-1.owl>;
+   prov:wasDerivedFrom :input;
+.
+:input
+   a prov:Entity;
+   nfo:fileURL <http://dvcs.w3.org/hg/prov/raw-file/tip/ontology/component-aggregations/prov-variant-1.ttl>;
+.
+@prefix nfo:  <http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#> .
+@prefix prov: <http://dvcs.w3.org/hg/prov/raw-file/tip/ontology/ProvenanceOntology.owl#> .
+@prefix :     <#> .
+
+:result
+   a prov:Entity;
+   nfo:fileURL <prov-variant-1.owl>;
+   prov:wasDerivedFrom :input;
+.
+:input
+   a prov:Entity;
+   nfo:fileURL <http://dvcs.w3.org/hg/prov/raw-file/tip/ontology/component-aggregations/prov-variant-1.ttl>;
+.
+@prefix nfo:  <http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#> .
+@prefix prov: <http://dvcs.w3.org/hg/prov/raw-file/tip/ontology/ProvenanceOntology.owl#> .
+@prefix :     <#> .
+
+:result
+   a prov:Entity;
+   nfo:fileURL <prov-variant-1.owl>;
+   prov:wasDerivedFrom :input;
+.
+:input
+   a prov:Entity;
+   nfo:fileURL <http://dvcs.w3.org/hg/prov/raw-file/tip/ontology/component-aggregations/prov-variant-1.ttl>;
+.
+@prefix nfo:  <http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#> .
+@prefix prov: <http://dvcs.w3.org/hg/prov/raw-file/tip/ontology/ProvenanceOntology.owl#> .
+@prefix :     <#> .
+
+:result
+   a prov:Entity;
+   nfo:fileURL <prov-variant-1.owl>;
+   prov:wasDerivedFrom :input;
+.
+:input
+   a prov:Entity;
+   nfo:fileURL <http://dvcs.w3.org/hg/prov/raw-file/tip/ontology/component-aggregations/prov-variant-1.ttl>;
+.
+@prefix nfo:  <http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#> .
+@prefix prov: <http://dvcs.w3.org/hg/prov/raw-file/tip/ontology/ProvenanceOntology.owl#> .
+@prefix :     <#> .
+
+:result
+   a prov:Entity;
+   nfo:fileURL <prov-variant-1.owl>;
+   prov:wasDerivedFrom :input;
+.
+:input
+   a prov:Entity;
+   nfo:fileURL <http://dvcs.w3.org/hg/prov/raw-file/tip/ontology/component-aggregations/prov-variant-1.ttl>;
+.
+@prefix nfo:  <http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#> .
+@prefix prov: <http://dvcs.w3.org/hg/prov/raw-file/tip/ontology/ProvenanceOntology.owl#> .
+@prefix :     <#> .
+
+:result
+   a prov:Entity;
+   nfo:fileURL <prov-variant-1.owl>;
+   prov:wasDerivedFrom :input;
+.
+:input
+   a prov:Entity;
+   nfo:fileURL <http://dvcs.w3.org/hg/prov/raw-file/tip/ontology/component-aggregations/prov-variant-1.ttl>;
+.