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

Is it possible to use prefixes with templates? #115

Closed paulakeen closed 3 years ago

paulakeen commented 3 years ago

When working with turtle serialisations, it would be great if it was possible to replace the URI of the subject template with its prefix. But I couldn't work it around. Is this even possible in RML? Tks.

bjdmeest commented 3 years ago

Could you provide a minimal example, just to make sure we're on the same page? :)

paulakeen commented 3 years ago

For example, we'd like to have an outcome of the type:

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix ex: <http://example.org#> .

ex:paula a foaf:Person ;
foaf:givenName "Paula" ;
foaf:familyName "Keen" .

instead of:

@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix ex: <http://example.org#> .

<http://example.org#paula> a foaf:Person ;
foaf:givenName "Paula" ;
foaf:familyName "Keen" .

instead of

bjdmeest commented 3 years ago

As far as I know, this is out of scope of [R2]RML. Instead, I created a new issue in the mapping challenges repository of the Knowledge Graph Construction Community Group: kg-construct/best-practices#5

I'm afraid there's no other solution right now except for post-processing the output.

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.