timrdf / csv2rdf4lod-automation

Shell script automation to support csv2rdf4lod converter
https://github.com/timrdf/csv2rdf4lod-automation/wiki
Apache License 2.0
109 stars 36 forks source link

"explicit bundling an implicit bundle" #343

Open timrdf opened 11 years ago

timrdf commented 11 years ago

From

Big Moose    7/25/94    0    0    0    0    0    0    0

want:

:thing_2_3 a :Measurement;
                 rdf:value "100"; 
                 oboe:ofEntity :sample_2 .
:sample_2 a :Sample;
                oboe:hasContext :Big_Moose .

:thing_2_4 a :Measurement;
                 rdf:value "200"; 
                 oboe:ofEntity :sample_2 .
:sample_2 a :Sample;
                oboe:hasContext :Big_Moose .

csv2rdf4lod/test/source/lebot/explicit-bundling-an-implicit-bundle-issue-343/version/2013-Jul-04

timrdf commented 11 years ago
   conversion:enhance [
         ov:csvCol          1;
         ov:csvHeader       "lake";
         conversion:bundled_by :a_bundle;
         conversion:equivalent_property oboe:inContext;
         conversion:comment "";
         conversion:range   rdfs:Resource;
      ];

gives

:thing_2_3
   oboe:ofEntity <http://localhost/source/lebot/dataset/explicit-bundling-an-implicit-bundle-issue-343/sample/2> ;
   e1:date "1994-07-25"^^xsd:date ;
   e1:units_1 <http://localhost/source/lebot/dataset/explicit-bundling-an-implicit-bundle-issue-343/value-of/units_1/units_1> ;
   ov:csvRow "2"^^xsd:integer ;
   ov:csvCol "3"^^xsd:integer .

<http://localhost/source/lebot/dataset/explicit-bundling-an-implicit-bundle-issue-343/sample/2> a local_vocab:Sample ;
   oboe:inContext value_of_lake:Big_Moose .

value_of_lake:Big_Moose dcterms:identifier "Big Moose" ;
   rdfs:label "Big Moose" .