RMLio / yarrrml-parser

A YARRRML parser library and CLI in Javascript
MIT License
41 stars 17 forks source link

condition on map doesn't get picked up when subject has a function #144

Open bjdmeest opened 2 years ago

bjdmeest commented 2 years ago

Issue type: :bug: Bug

Description

condition on map doesn't get picked up when subject has a function

Steps

Following YARRRML doesn't take the condition into account

prefixes:
  grel: http://users.ugent.be/~bjdmeest/function/grel.ttl#
  idlab-fn: http://example.com/idlab/function/

mappings:
  person:
    sources:
     - [source_1.csv~csv]
    s:
      function: grel:array_join
      parameters:
        - [grel:p_array_a, "http://example.org/"]
        - [grel:p_array_a, "$(three)"]
    condition:
      function: idlab-fn:notEqual
      parameters:
        - [grel:valueParameter, "$(three)"]
        - [grel:valueParameter2, ""]
    po:
      - [a, schema:Person]