Conditionally creating triples #53
-
I have a CSV file that looks like this:
I want to produce triples like this: ex:1 rdfs:label "Snickers" ; ex:hasIngredient ex:peanuts , ex:caramel , ex:nougat .
ex:2 rdfs:label "Three Musketeers" ; ex:hasIngredient ex:nougat . Is this possible using e.g. RMLMapper? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hi! You can achieve this in RMLMapper with the help of some FnO functions. With the function
|
Beta Was this translation helpful? Give feedback.
-
Thank you for the clear and detailed answer! Suppose there are several dozen ingredient binaries |
Beta Was this translation helpful? Give feedback.
Hi!
You can achieve this in RMLMapper with the help of some FnO functions.
RMLMapper has several default functions included, an overview is available here
With the function
if
you can do a check if the column has1
and output a constant likeex:peanuts
: