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

consider multiple domain_templates; one on an explicit bundle #67

Open timrdf opened 13 years ago

timrdf commented 13 years ago

Data row:

1: entrez gene ID 3: GO gene ID 6: GO gend ID's label

enhancements:

     conversion:enhance [         ov:csvCol         2;         ov:csvHeader     "GeneID";         conversion:domain_template "http://bio2rdf.org/geneid:[.]" ;         conversion:label "has entrez gene id";         conversion:comment "";         conversion:domain "Gene";         conversion:range  rdfs:Literal;         conversion:subproperty_of dcterms:identifier;      ];      conversion:enhance [         ov:csvCol         3;         ov:csvHeader     "GO_ID";         conversion:label "has GO concept";         conversion:comment "";         conversion:range_name "GOTerm";         conversion:rangetemplate "http://purl.org/obo/owl/GO#GO[.]";         conversion:range  rdfs:Resource;         conversion:subproperty_of skos:broadMatch;      ];      conversion:enhance [         conversion:class_name "GOTerm";         conversion:subclass_of skos:Concept;      ];

conversion:enhance [         ov:csvCol         6;         ov:csvHeader     "GO_term"; conversion:domaintemplate  "http://purl.org/obo/owl/GO#GO[3]"; conversion:domain "GOTerm";         conversion:label "has GO term";         conversion:comment ""; conversion:bundled_by [ov:csvCol 3];         conversion:range  todo:Literal;      ];

timrdf commented 13 years ago

converter currently just looks for "THE" domain_template (misnomer - will become subject-template). But when bundling a property to another column, the subject_template should then apply to the column being bundled into. This would require a more general consideration of subject_template.