- 
                Notifications
    
You must be signed in to change notification settings  - Fork 36
 
conversion:subject_template
        Timothy Lebo edited this page Feb 14, 2012 
        ·
        15 revisions
      
    
                csv2rdf4lod-automation is licensed under the [Apache License, Version 2.0](https://github.com/timrdf/csv2rdf4lod-automation/wiki/License)
          (NOTE: subject_template will be the new predicate but is not recognized yet; use domain_template for now)
@prefix conversion: <http://purl.org/twc/vocab/conversion/> .
@prefix : 
<http://logd.tw.rpi.edu/source/data-gov/dataset/financial-yahoo/version/2009-May-18/params/enhancement/1/> .
 
:dataset a void:Dataset;
   conversion:base_uri           "http://logd.tw.rpi.edu"^^xsd:anyURI;
   conversion:source_identifier  "data-gov";
   conversion:dataset_identifier "financial-yahoo";
   conversion:dataset_version    "2009-May-18";
   conversion:conversion_process [
      a conversion:RawConversionProcess;
      conversion:enhancement_identifier "1";
      conversion:enhance [
         conversion:domain_template "[#1]-[#3]-[#4]"; # Only one domain_template is needed; they are equivalent.
      ];
      conversion:enhance [
         ov:csvCol         1;
         conversion:domain_template "[.]-[#3]-[#4]";  # Only one domain_template is needed; they are equivalent.
      ];
@prefix financial-yahoo: <http://logd.tw.rpi.edu/source/data-gov/dataset/financial-yahoo/version/2009-May-18/> .
@prefix raw:             <http://logd.tw.rpi.edu/source/data-gov/dataset/financial-yahoo/vocab/raw/> .
financial-yahoo:thing_2
   raw:symbol          "CLK10.NYM" ;
   raw:last_trade_date "4/7/2010" ;
   raw:last_trade_time "8:48am" ;
   ov:csvRow 2 .
becomes
@prefix e1:              <http://logd.tw.rpi.edu/source/data-gov/dataset/financial-yahoo/vocab/enhancement/1/> .
financial-yahoo:CLK10_NYM_4_7_2010_8_48am
   raw:symbol          "CLK10.NYM" ;
   raw:last_trade_date "4/7/2010" ;
   raw:last_trade_time "8:48am" ;
   ov:csvRow 2 .
The special case conversion:domain_template "[.]" is equivalent to a conversion:PrimaryKeyEnhancement (the latter is deprecated).
domain_templates can not be conversion:bundled_by any bundle.
conversion:domain_template 
   rdfs:domain [ owl:onProperty conversion:bundled_by; owl:cardinality 0; a owl:Restriction ] .
(results):
PREFIX conversion: <http://purl.org/twc/vocab/conversion/>
SELECT distinct ?dataset ?template
WHERE {
  GRAPH <http://logd.tw.rpi.edu/vocab/Dataset>  {
    ?dataset conversion:conversion_process [
       conversion:enhance [
          conversion:domain_template ?template
       ]
    ]
  }
}
https://github.com/timrdf/csv2rdf4lod-automation/issues#issue/67
- For more descriptions on template variables (e.g. 
[/sd]), see Using template variables to construct new values