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
144 stars 61 forks source link

how to change input file #205

Closed gsilvestri1234 closed 1 year ago

gsilvestri1234 commented 1 year ago

Hi to all i'm new of rmlmapper and i don't find how to change the default path for input source called inputSourceFile.json. is it possibile? How i can change it?

Thanks in advance!

DylanVanAssche commented 1 year ago

The input source path is set in the RML mapping rules, there you can change it.

Example:

<#TransportMapping> a rr:TriplesMap;
  rml:logicalSource [
    rml:source "Transport.xml" ;
    rml:iterator "/transport/bus/route/stop";
    rml:referenceFormulation ql:XPath;
  ];

  rr:subjectMap [
    rr:template
      "http://trans.example.com/stop/{@id}";
    rr:class ex:Stop
  ];

  rr:predicateObjectMap [
    rr:predicate rdfs:label;
    rr:objectMap [
      rml:reference "."
    ]
  ].

--> rml:source "Transport.xml" ; here is the path set to Transport.xml.