oeg-upm / mapeathor

Translator of spreadsheet mappings into R2RML, RML or YARRRML
https://morph.oeg.fi.upm.es/tool/mapeathor
Apache License 2.0
30 stars 10 forks source link

Specify graph IRI in RDF quads #40

Closed nleguillarme closed 1 year ago

nleguillarme commented 2 years ago

Hi I would like to generate quads from a csv source, and I am wondering if and how I can specify the IRI of the graph in the mapping rule definition ?

anaigmo commented 2 years ago

For now, there is no special option for that, but I'll keep it in mind to add it in the next release

anaigmo commented 2 years ago

I've just updated the code to address this issue. If you add a new column "Graph" to the Subject sheet it generates a rr:graphMap.

Since there are other issues that involve changing the template sheet, I'm going to wait until all those changes are integrated to do a new release, so I'm not closing this issue until then

anaigmo commented 1 year ago

Fixed in release v1.6.0

nleguillarme commented 1 year ago

Hi, I have just tested this new feature. The new Graph column is great. However, when executing the rml rules using morph, I have the following error:

Found an invalid graph termtype. Found values ['http://www.w3.org/ns/r2rml#Literal']. Graph maps must be http://www.w3.org/ns/r2rml#IRI.

I have found that adding rr:termType rr:IRI to the graphMap solves this problem.