RMLio / RMLio/MappingWeaver-java
Templates not working without TermType
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 3
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Description
When using rml:template to construct an expression value without a corresponding rml:termType, the triples in question are missing from the output, except when they result in a well-formed HTTP URI. According to the RML spec however, any resulting string (not NULL) needs to be mapped to its canonical RDF/XSD form.
Minimal example:
:mapping a rml:TriplesMap ;
rml:logicalSource [
# JSONPath root iterator over { "key": "value" }
] ;
rml:subjectMap [ rml:termType rml:BlankNode ] ;
rml:predicateObjectMap [
rml:predicate <urn:example:typeless> ;
rml:objectMap [ rml:template "key" ] ;
], [
rml:predicate <urn:example:typed> ;
rml:objectMap [
rml:termType rml:Literal ;
rml:template "key"
] ;
] .
Output:
_:Blank1 <urn:example:typed> "key" .
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the minimal JSONPath and RML mapping example from the issue, then locate the code that handles rml:template values when rml:termType is absent. Done means the typeless template produces the expected canonical RDF/XSD value instead of omitting the triple, while the explicitly literal case remains unchanged.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- data
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 65/100