Prefixes not used and full IRI displayed in generated data #233
Labels
enhancement
New feature or request
question
Further information is requested
upstream
Issue is related to another component then the RMLMapper
I'm converting JSON files to turtle files with the RMLMapper. In my mapping file I have a long list of prefixes that should be used when the output data is generated. In general this works fine and the generated data is displaying the IRIs with the prefixing applied. Nevertheless, there are some cases where the prefix is not used and the full IRI is reported in the generated data. I was therefore wondering if there is some intrinsic logic that rejects some prefixes compared to others.
For example I have the following prefixes. The first one is correctly replaced while the second is not:
Test data:
Generated data:
The mapping RML logic is the following:
As you can see, even if the prefix is defined in the RML mapping file, we get
<http://purl.obolibrary.org/obo/OBI_0002188>
while the expected result should beobi:0002188
. If I modify the prefix to something like this@prefix obi: <http://purl.obolibrary.org/obo/OBI/> .
and change the input data to"iri": "http://purl.obolibrary.org/obo/OBI/0002188"
it works as expected.Do you see any issues with the prefix definition or is there any logic in the RML mapper that blocks the correct replacement of the namespace prefix? Thank you.
The text was updated successfully, but these errors were encountered: