-
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
specification of expression map #46
Conversation
An expression map has at least:
|
With
|
For reference expressions:
|
I think it is desirable because we want to be able to have no costant/reference/template but have a termtype indicating that this is a blank node |
this is a very interesting question, do we have use cases where this would be needed? |
Checking the diagram, I see that |
I think this needs to be rewritten to make it open for extensions like e.g. An expression map MAY have:
|
You can name the expression map using an IRI or blank node with id to reuse it on the mapping level. What a processor does with that information is up to the processor. |
I believe this will be defined in core and further extended in the logical source and target spec.
I don't see a use case for that directly. Do you have something in mind? |
Yes indeed, sharp observation. They are disjoint from term maps because they do not generate terms. Rather, they generate "elements" of literal terms. That is one of the reasons to introduce expression map as a(n abstract) class. Along with the possibility to use expressions elsewhere in the language as well via this construct. |
Based on the results of an Expression Map (or a function for that matter), one could "dynamically" generate a way to:
|
So, Expression Maps are specialised functions for literal values? |
No expressions are expressions in terms of a reference formulation. So e.g. an XPath or JSONPath expression. Usage in a more specific subclasses dictates what the expression result will be used for ultimately. |
a version of the model diagram that reflects this description was added to https://drive.google.com/file/d/16YyuZrhNfaHhjWj8hGlwnfOmX32hb_cg/view?usp=sharing (tab RML (ExpressionMap))