Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

parenttriplesmap not found in nested function #53

Open
3 tasks
bjdmeest opened this issue Apr 17, 2020 · 2 comments
Open
3 tasks

parenttriplesmap not found in nested function #53

bjdmeest opened this issue Apr 17, 2020 · 2 comments
Labels
bug Something isn't working

Comments

@bjdmeest
Copy link
Collaborator

considering the yarrrml document of RMLio/yarrrml-parser#68 ,
the mapper doens't find the parenttriplesmap and instead uses its own logical source.
I believe two things should happen:

  • An error should be given when the parenttriplesmap is not found, and the rmlmapper shouldn't continue (the rml document is invalid then, interpreting https://www.w3.org/TR/r2rml/#foreign-key, there should never be a rr:child without a rr:parentTriplesMap)
  • A debug statement should be given when the parenttriplesmap is found not as its direct ancestor, but due to a nested function
  • the parenttriplesmap should be looked for in every ancestor until one is found ;)
@andimou
Copy link

andimou commented Apr 20, 2020

the rmlmapper shouldn't continue

what do you mean by this? IT shouldn't continue at all or it shouldn't continue with this Predicate Object Map but continue the execution of the rest rules?

@bjdmeest
Copy link
Collaborator Author

bjdmeest commented Oct 4, 2021

the rmlmapper shouldn't continue

what do you mean by this? IT shouldn't continue at all or it shouldn't continue with this Predicate Object Map but continue the execution of the rest rules?

I propose option 3: first look for parenttriplesmap in every ancestor, and if not found, only then exit (bc if not found, the rml document is invalid, interpreting https://www.w3.org/TR/r2rml/#foreign-key: there should never be a rr:child without a rr:parentTriplesMap)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants