Closed canarvaeza closed 5 years ago
Hi,
We've updated the RMLMapper and it can now be found here. I've tried with your data and mapping and I get the expected triples. If you have still issues, you can open a new issue at the repo of the new RMLMapper.
Hi @pheyvaer
I found this issue in looking for an example of using RML and YARRRML to map nested objects and arrays. This was one of the few examples around that I could find with nested objects.
I couldn't track down any specific mention of how to deal with nested levels of these in the relevant specs.
I take it from this use case that RML Mapper supports nested objects. Is there documentation or examples for this ?
Does YARRRML support deeply nested structures ? Any documentation links ?
I've tried to reconstruct the above person RML model using the matey YARRRML editor and RML generator but without an example I'm not getting far.
Do you have an example you could point me to please ?
A more trivial example would be the following with the aim of mapping the Street value to ex:StreetName "Smth"
{
"persons": [
{
"firstname": "John",
"lastname": "Doe",
"Address": [
{ "Street": "Smith",
"Suburb": "Bland"
}
]
},
{
"firstname": "Jane",
"lastname": "Smith"
},
{
"firstname": "Sarah",
"lastname": "Bladinck"
}
]
}
The closest I got to a mapping was only to the Address array with all values returned as the literal value using the following
prefixes:
ex: "http://example.com/"
mappings:
person:
sources:
- ['data.json~jsonpath', '$.persons[*]']
s: http://example.com/$(firstname)
po:
- [a, foaf:Person]
- [ex:name, $(firstname)]
- [ex:Address, $(Address)]
Many thanks in advance
Simon
Hi @Simo-climb
Could you move this to a new issue? Thanks!
Hi, The mapper was working fine but I just find this problem
I want to say a person isInvolved in 1 or more activities, in the input the "Activity" part is related with the Activity IDs:
This is the model
I expected this model to gave me something like
mcontext:isInvolvedIn <http://www.semanticweb.org/ontologies/activity#activity/low/00001>, <http://www.semanticweb.org/ontologies/activity#activity/low/00001> .
but the output I get is:
I tried different approaches and the interesting thing is that if you set a datatype
It just put the two individuals
Any idea how to solve this?