RMLio / rmlmapper-java

The RMLMapper executes RML rules to generate high quality Linked Data from multiple originally (semi-)structured data sources
http://rml.io
MIT License
147 stars 61 forks source link

Why <#NameOfMapping> does not work with RMLMapper jar? #96

Closed paulakeen closed 3 years ago

paulakeen commented 3 years ago

I'm tryin to merge two different CSV into one single RDF using the RMLMapper jar...looking into the documentation of the RML.io specification I found the section 9. Integrated Mapping, but the examples therein are not working with the RMLMapper....apparently the it doesn't like the '<#AirportMapping>' syntax before the rml:logicalsource...

Do you have any example using :TriplesMap?

This works for me with one single CSV:

:TriplesMap a rr:TriplesMap; rml:logicalSource [ rml:source [ a csvw:Table; csvw:url "edw.sl_vw_oper_prod.csv"; csvw:dialect [ a csvw:Dialect; csvw:delimiter ";" ] ]; rml:referenceFormulation ql:CSV ].

DylanVanAssche commented 3 years ago

Hi!

It seems that there's a small mistake in the examples:

<#AirportMapping>
  rml:logicalSource [
    rml:source "Airport.csv" ;
    rml:referenceFormulation ql:CSV
  ];

<#AirportMapping> is not specified as a rr:TriplesMap, this can be fixed like this:

<#AirportMapping> a rr:TriplesMap;
  rml:logicalSource [
    rml:source "Airport.csv" ;
    rml:referenceFormulation ql:CSV
  ];

We will update the examples to fix this.

bjdmeest commented 3 years ago

Duplicate of #91

DylanVanAssche commented 3 years ago

This is now fixed on https://rml.io/spec. Feel free to try it out!

no-response[bot] commented 3 years ago

This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.