Skip to content

Enhancement pattern: using a cell value to rdf:type a row or another cell

timrdf edited this page Apr 11, 2011 · 10 revisions

Template within range_name

todo

Typing a row

      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: :thing_1 a :d

Typing another cell

Clone this wiki locally