-
Notifications
You must be signed in to change notification settings - Fork 35
Enhancement pattern: using a cell value to rdf:type a row or another cell
timrdf edited this page Apr 11, 2011
·
10 revisions
todo
conversion:enhance [
ov:csvCol 3;
ov:csvHeader "Type";
conversion:equivalent_property rdf:type;
conversion:range rdfs:Resource;
conversion:range_template "[/sd]vocab/[.]";
conversion:interpret [
conversion:symbol "a";
conversion:interpretation "Apple";
];
conversion:interpret [
conversion:symbol "B";
conversion:interpretation "Banana";
];
];
input:
Name,Mood,Type
joe,happy,a
sally,sad,B
result:
@prefix local_vocab: <http://logd.tw.rpi.edu/source/lebot/dataset/enhancement-pattern-type-from-cell/vocab/> .
:thing_2
dcterms:title "joe" ;
e1:mood "happy" ;
a local_vocab:Apple ;
ov:csvRow "2"^^xsd:integer .