-
Notifications
You must be signed in to change notification settings - Fork 8
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
Specify rr:parent as a shortcut reference property of rr:parentMap (and similar for rr:child as shortcut reference property for rr:childMap) #53
Comments
+1 Although I suggest calling it |
Ah yes, +1 on both, I updated the title |
Regarding the shortcut:
However, if we keep Do you think that these could be confusing as the shortuct comes for a different expression map? |
I personally don't see an issue with that, but we could also do the same as we do in YARRRML: use template as shortcut property, that has ambiguity with the URI encoding (which we solved in YARRRML by translating such a shortcut containing only a template and nothing else as a reference, but that's borderline hacking :) ) |
I think that this doesn't solve the problem and it's not exactly the same as with YARRRML. In YARRRML we intentionally simplified certain things with respect to the references but in the case of RML we are more explicit, ie the template generates an IRI, unless specified differently, the reference generates a literal, unless specified differently and the constant generates an IRI unless specified differently. In YARRRML the template is hacked to simplify things for the users but I think that we don't want this oversimplification for RML. The question here is a bit different, do we agree that in the case of term map, the shortcut comes with the constant-valued expression map, whereas in the case of joins the parent/child map coes with the reference-valued expression map? |
Yes. Second to that, what I meant to say was that I proposed another way to solve the issue: drop "constant-valued" AND "reference-valued" shortcuts and replace them all with a "template-valued" shortcut, which means the same processing rule holds for |
I agree that defining a new type of shortuct property shouldn't be an issue. |
and then make the termtype mandatory? ie what would be the default term type when you generate something from these shortcuts? If template-valued, then it should be an IRI. |
The default term type would be the same as for the non-shortcut, that behavior wouldn't change, which in this case would indeed be IRI. It was merely a suggestion, I prefer the reference-valued shortcut property |
This was marked in the last agenda as a "join" issue, but I think it is more core than join, or am I wrong? |
I think this is already on the spec and it's safe to be closed. |
The RMLMapper supports rml:parentTermMap: https://github.com/RMLio/rmlmapper-java/search?q=parentTermMap
EQUALS
This allows us to support joining on, e.g. constants (which is interesting when you want to join on IDs AND, e.g. filter on constant values in the join condition) or templates or function values.
It's a subtle extension, but greatly increases the complexity of the join operator.
Even if joining in RML gets a revamp, this is mostly a suggestion to allow for term maps instead of only references.
The text was updated successfully, but these errors were encountered: