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

Feature: how to nest a joincondition inside a function? #3

Open
bjdmeest opened this issue Mar 25, 2021 · 3 comments
Open

Feature: how to nest a joincondition inside a function? #3

bjdmeest opened this issue Mar 25, 2021 · 3 comments
Labels
pending won't fix now: depends on other part(s)

Comments

@bjdmeest
Copy link
Member

bjdmeest commented Mar 25, 2021

Came from kg-construct/rml-core#1

it is possible to nest functions (see eg https://github.com/RMLio/rml-fno-test-cases/blob/master/RMLFNOTC0018-CSV/mapping.ttl), so functions on top of functions, but not functions on top of joins.

@bjdmeest
Copy link
Member Author

bjdmeest commented Mar 26, 2021

The whole 'functions on top of joins' is specifically about functions on top of (regular) join conditions.
However, for this to be actually useful, I believe we need kg-construct/mapping-challenges#29 tackled first (and how to specifically tackle this for values, is discussed in #4)

@bjdmeest bjdmeest changed the title describe the current "it is possible to nest functions" Feature: how to nest a joincondition inside a function? Mar 26, 2021
@bjdmeest
Copy link
Member Author

An example would be, in YARRRML, based on https://rml.io/yarrrml/matey/ Advanced example:

prefixes:
  ex: "http://example.com/"

mappings:
  person:
    sources:
      - ['persons.json~jsonpath', '$.persons[*]']
    s: http://example.com/person/$(firstname)
    po:
      - [a, foaf:Person]
      - [ex:name, $(firstname)]
      - p: ex:likes
        o:
         - function: ex:getAfterHash
           parameters:
             - parameter: ex:param1
               value:
                 mapping: movie
                 condition:
                  function: equal
                  parameters:
                    - [str1, $(movie)]
                    - [str2, $(slug)]
  movie:
    sources:
      - ['movies.csv~csv']
    s: http://example.com/movie#$(slug)
    po:
      - [a, schema:Movie]

@dachafra did you have something like this in mind?

@andimou
Copy link

andimou commented Mar 26, 2021

let's see how join conditions will evolve in RML before we go too far with this ;)

@bjdmeest bjdmeest transferred this issue from kg-construct/rml-core Oct 12, 2022
@bjdmeest bjdmeest added the pending won't fix now: depends on other part(s) label Nov 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pending won't fix now: depends on other part(s)
Projects
None yet
Development

No branches or pull requests

2 participants