Closed mielvds closed 3 years ago
Hi @mielvds!
Thanks for creating a bug report for your issue. However, I cannot reproduce it. Could you maybe provide a minimal failing example?
I'm trying to reproduce this with the following setup:
Command
docker run --rm -v $(pwd):/data rmlmapper -m /data/mapping/mapping.rml.ttl
File structure
dylan@dylan-Latitude-5590:~/Projects/rmlmapper-java-docker$ tree files mapping
files
└── data.json
mapping
└── mapping.rml.ttl
mapping.rml.ttl
@prefix rr: <http://www.w3.org/ns/r2rml#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix ex: <http://example.com/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rml: <http://semweb.mmlab.be/ns/rml#> .
@prefix ql: <http://semweb.mmlab.be/ns/ql#> .
@prefix org: <http://www.w3.org/ns/org#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix dc: <http://purl.org/dc/terms/> .
@base <http://example.org/tm/> .
<json>
a rr:TriplesMap;
rml:logicalSource [
rml:source "./files/data.json";
rml:referenceFormulation ql:JSONPath;
rml:iterator "$[*]"
];
rr:subjectMap [
rr:template "http://example.org/{custom_fields[?(@.label=='OR-ID')].value}";
rr:class org:Organization
];
rr:predicateObjectMap [
rr:predicate skos:altLabel;
rr:objectMap [ rml:reference "name"; rr:language "nl" ]
].
data.json
[
{
"id": "001",
"name": "x",
"custom_fields": [
{
"value": "OR-12345",
"label": "OR-ID"
}
]
},
{
"id": "003",
"name": "z",
"custom_fields": [
{
"value": "OR-1011",
"label": "OR-ID"
}
]
}
]
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.
When starting a path with
./
(which is correct according to the spec I think?), concatenating the path fails in the docker setup, but probably also beyond.Does the mapper already use Path?