Templates not working for non-http IRIs
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 55/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- java
- Domain
- data-engineering
Research direction
Start by running the minimal mapping example and tracing how rml:termType rml:IRI with rml:template is handled. Compare the HTTP, file, URN, and relative templates to find why only the HTTP result is emitted. Done means all four expected triples appear in the output.
Written by the indexing model from the issue text.
Description
When using rml:template to construct an IRI, explicitly indicated with rml:termType, the triples in question are missing from the output, except when they result in a well-formed HTTP URI.
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:http> ;
rml:objectMap [
rml:termType rml:IRI ;
rml:template "http://example.org/{key}"
]
], [
rml:predicate <urn:example:file> ;
rml:objectMap [
rml:termType rml:IRI ;
rml:template "file:///example/{key}"
]
], [
rml:predicate <urn:example:urn> ;
rml:objectMap [
rml:termType rml:IRI ;
rml:template "urn:example:{key}"
]
], [
rml:predicate <urn:example:relative> ;
rml:objectMap [
rml:termType rml:IRI ;
rml:template "./{key}"
]
] .
Output:
_:Blank1 <urn:example:http> <http://example.org/value> .
- Dominant language
- Java
- Stars
- 3
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
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.
More from RMLio/MappingWeaver-java
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
RMLio/MappingWeaver-java#11 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
RMLio/MappingWeaver-java#13 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 58/100
RMLio/MappingWeaver-java#12 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
RMLio/MappingWeaver-java#10 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
All issues in RMLio/MappingWeaver-java
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
elastic/gradle-plugins#157 ·
-
enhancement Tools
Difficulty 1/5 Under an hour Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
apache/rocketmq-dashboard#5008 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
DETECT_PARAMETER_NAMES=false silently disables @ConstructorProperties-based Creator detection too Open
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
FasterXML/jackson-databind#6229 ·