timrdf/csv2rdf4lod-automation

lod linking not lodlinking

Closed this issue · 0 comments

What is first

  • [[conversion:links_via]]

Let's get to it

With tabular input:

bash-3.2$ head manual/NUTR_DEF.txt.csv
"203","g","PROCNT","Protein","2","600"
"204","g","FAT","Total lipid (fat)","2","800"
"205","g","CHOCDF","Carbohydrate, by difference","2","1100"
"207","g","ASH","Ash","2","1000"
"208","kcal","ENERC_KCAL","Energy","0","300"
"209","g","STARCH","Starch","2","2200"
"210","g","SUCS","Sucrose","2","1600"
"211","g","GLUS","Glucose (dextrose)","2","1700"
"212","g","FRUS","Fructose","2","1800"
"213","g","LACS","Lactose","2","1900"

and enhancement:

      conversion:enhance [
         ov:csvCol          2;
         ov:csvHeader       "g";
         conversion:label   "Measurement Unit";
         conversion:interpret [
            conversion:symbol         "g";
            conversion:interpretation "gram";
         ];
         conversion:equivalent_property units:hasUnit;
         conversion:range   rdfs:Resource;
         conversion:range_template "[/]units/[.]";

         conversion:links_via <http://purl.obolibrary.org/obo/uo.owl#>;
         conversion:subject_of rdfs:label;

and initial conversion:

<http://semanticdiet.com/nutrient/Protein>
   dcterms:isReferencedBy <http://semanticdiet.com/source/usgs-gov/dataset/nutrient-database/version/release-25> ;
   void:inDataset <http://semanticdiet.com/source/usgs-gov/dataset/nutrient-database/version/release-25> ;
   a nutrition:Nutrient , nutrient-database_vocab:Nutrient ;
   dcterms:identifier "203" ;
   units:hasUnit <http://semanticdiet.com/units/gram> ;
   e1:short_name "PROCNT" ;
   skos:altLabel "PROCNT" ;
   dcterms:identifier "PROCNT" ;
   e1:long_name "Protein" ;
   rdfs:label "Protein" ;
   dcterms:identifier "Protein" ;
   skos:prefLabel "Protein" ;

we want to link to "gram" http://purl.obolibrary.org/obo/UO_0000021 in http://www.berkeleybop.org/ontologies/uo.owl#