Skip to content

conversion:SubjectAnnotation

timrdf edited this page Jul 13, 2012 · 18 revisions
csv2rdf4lod-automation is licensed under the [Apache License, Version 2.0](https://github.com/timrdf/csv2rdf4lod-automation/wiki/License)

see conversion:predicate.

Input:

Alabama,Tobacco Price/Tax/Funding,Government,1991,State excise tax per pack,0.17,US Dollars,1990,1991
Alabama,Tobacco Price/Tax/Funding,Government,1991,Total cigarette tax per pack,0.345,US Dollars,1990,1991

Enhancement parameters:

<http://logd.tw.rpi.edu/source/twc-rpi-edu/dataset/iogds-upstream/version/2012-Jan-07/conversion/enhancement/1>
   a conversion:LayerDataset, void:Dataset;

   ...

   conversion:conversion_process [
      a conversion:EnhancementConversionProcess;
      conversion:enhancement_identifier "1";

      ...

      conversion:enhance [
         a conversion:SubjectAnnotation;
         conversion:predicate  dcterms:description;
         conversion:object     "This is an awesome description!";
      ];

The output will have a dcterms:description on each subject:

:thing_2 
   dcterms:isReferencedBy <http://logd.tw.rpi.edu/source/lebot/dataset/templated-subject-annotations/version/2012-Jul-12> ;
   void:inDataset <http://logd.tw.rpi.edu/source/lebot/dataset/templated-subject-annotations/version/2012-Jul-12> ;

   dcterms:description "This is an awesome description!" ;

   e1:state     "Alabama" ;
   e1:category   value_of_category:Tobacco_Price_Tax_Funding ;
   e1:entity     "Government" ;
   e1:start_year "1991" ;
   e1:measure    "State excise tax per pack" ;
   e1:value      "0.17" ;
   e1:unit       "US Dollars" ;
   e1:succeeds   "1990" ;
   e1:end_year   "1991" ;
   ov:csvRow "2"^^xsd:integer .

...

:thing_3
   dcterms:description "This is an awesome description!" ;

...

:thing_4
   dcterms:description "This is an awesome description!" ;
a conversion:SubjectAnnotation;
conversion:predicate "p"; 
conversion:object "o"

Historical note

Used to be (but was deprecated and replaced; no longer works):

ov:csvCol 0; 
conversion:predicate "p"; 
conversion:object "o"

See also

Clone this wiki locally