Skip to content

conversion:predicate

timrdf edited this page Feb 21, 2011 · 25 revisions

See conversion:Enhancement.

Arbitrary attribute-value descriptions can be added to 1) the subjects created from a particular row and 2) the objects created from a particular cell.

Annotating the object (i.e., "cell")

For a given conversion:predicate/conversion:object pair, the default behavior ("annotating the object") is to annotate the rdfs:Resource resulting from a cell value's resource promotion. This is the case for columns 1 and greater. Note that the conversion:range must be rdfs:Resource to promote the cell's value to a resource.

conversion:enhance [
   ov:csvCol 1;
   conversion:predicate "Predicate for subjects pointing to column 1";
   conversion:object    "Value of predicate";
];

Annotating the subject (i.e., "row")

The one special case is to apply a conversion:predicate/conversion:object pair to an enhancement for column 0. Since column counting begins at 1, we aren't annotating any cell. Conceptually, the row is at position 0. Since the subject is created from the row by default, annotating column 0 will annotate the subject instead of the object.

conversion:enhance [
   ov:csvCol 0;
   conversion:predicate "";
   conversion:object    "";
];

see Enhancement pattern: adding units to measurements for an example.

Clone this wiki locally