Closed namedgraph closed 9 months ago
@bjdmeest can you help? :)
In this case, since you directly use identifiers within nested documents, there's no need for a condition and you could just do as below
prefixes:
ex: http://example.org/
sources:
parents:
access: data.json
referenceFormulation: jsonpath
iterator: "$[*]"
children:
access: data.json
referenceFormulation: jsonpath
iterator: "$[*].children[*]"
mappings:
Parent:
sources: parents
s: ex:$(id)
po:
- [ ex:label, $(id) ]
- [ ex:child, "ex:$(children[*])~iri" ]
Child:
sources: children
s: ex:$(@)
po:
- [ ex:label, $(@) ]
Thanks, it works. Just not as explicit as the mapping
form.
Hi,
I'm scratching my head about a seemingly simple use case of mapping
to
I know a mapping condition needs to be used here, but I don't understand how to formulate it. This is my attempt:
but it does not produce any mappings:
If I remove the
condition
altogether then I get a cartesian product:It looks like a similar issue to https://github.com/semantifyit/RocketRML/issues/17 but their solution uses a non-standard
^^
JSONPath operator.