zazuko / xrm

A friendly language for mappings to RDF
MIT License
1 stars 0 forks source link

RML reference implementation wants at least one rr:TriplesMap #137

Closed ktk closed 1 year ago

ktk commented 3 years ago

When executing the XML example from https://github.com/zazuko/expressive-rdf-mapper/pull/11 on RML Mapper it yields an error:

java.lang.Exception: Mapping requires at least one TriplesMap

And indeed there is no class assignment to the logical source. It is also not in the official examples of the spec so I raised an issue in RML Mapper as well.

mchlrch commented 3 years ago

I haven't seen explicit rr:TriplesMap type declaration in any of the examples in neither R2RML nor RML spec.

TriplesMap could actually be inferred by the mapping processor, as the domain of rml:logicalSource is rr:TriplesMap (http://semweb.mmlab.be/ns/rml#logicalSource).

Anyhow, it won't hurt to add explicit rr:TriplesMap type declarations to the generated mapping files

ktk commented 3 years ago

Yes the inference was also mentioned in the comment. But I agree, adding it does not hurt.

mchlrch commented 1 year ago

With XRM version 1.2.0, the generated (R2)RML mappings are now explicitly typed with rr:TriplesMap. This should improve the compatibility with more mapping processors.