You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
id,name,genre
1,My first book,http://example.org/history;http://example.org/nonFiction
2,My second book,http://example.org/history
3,My third book,
Result with missing http://example.org/nonFiction
@prefix ex: <http://example.org/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix schema: <http://schema.org/> .
ex:book_1 a schema:Book;
schema:about ex:history;
schema:name "My first book" .
ex:book_2 a schema:Book;
schema:about ex:history;
schema:name "My second book" .
ex:book_3 a schema:Book;
schema:name "My third book" .
In case the source data is not empty, no condition is needed and the mapping with split produces all values.
Hi @pheyvaer thanks!
I would say medium priority, but given my late answer probably even low.
For now I use a workaround in such cases with some pre-processing and an additional mapping avoding str_split.
Instead of one mapping with the single input
id,prop1,prop2
myID,val1,val2.1;val2.2;val2.3
to create myID prop1 val1 and myID prop2 val2.1, myID prop2 val2.2 and myID prop2 val2.3,
I have one mapping for all "regular" columns (i.e. myID prop1 val1) and create a separate input like this
id,prop2
myID,val2.1
myID,val2.2
myID,val2.3
with a separate mapping where I do not have to use the str_split function
Issue type: 🐛 Bug
Description
grel:str_split
function on a semicolon-separated value from a CSV file everything works fine: all values are pickedNot a valid (absolute) IRI:
is throwngrel:str_split
is takenSteps
Following YARRRML does not produce
http://example.org/nonFiction
Test data to reproduce
Result with missing
http://example.org/nonFiction
In case the source data is not empty, no condition is needed and the mapping with split produces all values.
The RML produced looks like the following:
Environment
The text was updated successfully, but these errors were encountered: