Conditional if statement support in mapping.ttl

(Radu Marian) #1

It would be nice to say:

:Car-{_ROW_} a vso:Automobile, gr:ActualProductOrServiceInstance ;
   (_ROW_==0) ? rdfs:label "({_ROW_} {Make} {Model} ({Year})" : rdfs:label "({Make} {Model} ({Year})" ;

i need this conditional if to avoid adding extra column each time.

(Jess Balint) #2

Hi Radu,

We don't currently expose a facility to express conditional mappings. If you import the file first, you can subsequently perform a SPARQL update to achieve the required data representation.

Jess