Skip to content

yarrrml-parser/test/condition-on-mapping fails with "long" subject form #220

@webhart

Description

@webhart

Issue type: 🐛 Bug

Description

yarrrml-parser generates a rr:constant "[object Object]" instead of template. Side effect: conditional bnode generation is not possible.

Steps

Using this input file instead of https://github.com/RMLio/yarrrml-parser/blob/development/test/condition-on-mapping/rml/mapping.yml:

prefixes:
  idlab-fn: https://w3id.org/imec/idlab/function#
  grel: http://users.ugent.be/~bjdmeest/function/grel.ttl#

mappings:
  test:
    sources:
      - [test.csv~csv]
    # Different subject formulation than the original
    s: 
      value: http://example.com/$(id)
      type: iri
    condition:
      function: idlab-fn:equal
      parameters:
        - parameter: grel:valueParameter
          value: $(id)
        - parameter: grel:valueParameter2
          value: 2
    po:
      - [a, http://example.com/Test]

Environment

yarrrml-parser v 1.12.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions