Closed namedgraph closed 1 year ago
I assume you can just use the makers:$(carMakerId)
template in the Car mapping?
mappings:
Car:
sources: Something
s: cars:$(carId)
po:
- p: cars:madeBy
o: makers:$(carMakerId)
This assumes that the sources are the same and you don't need a join condition (cfr. your original YARRRML file).
That's what I tried using RMLMapper 6.1.3 and it came out as a URI but in quotes, i.e. as a string literal. Maybe that's a bug rather than a feature request :)
Haha, no, sorry, that's bug from me!
The YARRRML should be below (it makes literals by default), the ~iri
specifies it to be a named node
mappings:
Car:
sources: Something
s: cars:$(carId)
po:
- p: cars:madeBy
o: makers:$(carMakerId)~iri
Issue type: :unicorn: Feature
Description
I'm using a mapping like this:
I would like to avoid the
CarMaker
entity (and any triples it produces) however, and simply createcars:$(carId) cars:madeBy makers:$(carMakerId)
triples forCar
. I tried removingpo
fromCarMaker
but that is not allowed.Is that doable already?
Why it is useful
Not all object resources need to be entities which have their own properties, some can simply be standalone URI values.
Existing features it breaks
Unknown