pyRML is a Python based engine for processing RML files. The RDF Mapping Language (RML) is a mapping language defined to express customized mapping rules from heterogeneous data structures and serializations to the RDF data model. RML is defined as a superset of the W3C-standardized mapping language R2RML, aiming to extend its applicability and broaden its scope, adding support for data in other structured formats.
I noticed an issue with mapping CSVs, where if different CSV files use the same column name as primary key, then the foreign key resolution fails.
To reproduce, simply rename the CODE column in the artist example to ID, in both the CSV and artist-map.ttl.
The output becomes:
As you can see, the
birth_place
objects are incorrect, as they refer to the artists themselves, instead of the places.