Script to merge examples to single turtle file
authorStian Soiland-Reyes <soiland-reyes@cs.manchester.ac.uk>
Mon, 02 Jul 2012 22:41:36 +0100
changeset 3588 c2e2917fcfac
parent 3587 41d010028b2b
child 3589 654f630d094a
Script to merge examples to single turtle file
examples/eg-24-prov-o-html-examples/rdf/create/merge-with-cwm.bash
examples/eg-24-prov-o-html-examples/rdf/create/merged-header.ttl
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/examples/eg-24-prov-o-html-examples/rdf/create/merge-with-cwm.bash	Mon Jul 02 22:41:36 2012 +0100
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+BASE="http://dvcs.w3.org/hg/prov/raw-file/tip/examples/eg-24-prov-o-html-examples/rdf/create/"
+
+set -e
+cp merged-header.ttl merged.ttl
+# Only parseables are included in merging
+./check-with-cwm.bash 2>/dev/null | while read f ; do
+    echo "@base <${BASE}${f}> ." >> merged.ttl
+    cat $f >> merged.ttl
+done
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/examples/eg-24-prov-o-html-examples/rdf/create/merged-header.ttl	Mon Jul 02 22:41:36 2012 +0100
@@ -0,0 +1,10 @@
+@prefix owl:  <http://www.w3.org/2002/07/owl#> .
+@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
+@prefix prov: <http://www.w3.org/ns/prov-o/> .
+
+@base <http://dvcs.w3.org/hg/prov/raw-file/tip/examples/rdf/create/> .
+
+<>
+   a owl:Ontology;
+   owl:imports <../../../ontology/ProvenanceOntology.owl> .
+