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

Union operator not picked up by parser #207

Open
jpwijbenga opened this issue Mar 14, 2024 · 0 comments
Open

Union operator not picked up by parser #207

jpwijbenga opened this issue Mar 14, 2024 · 0 comments

Comments

@jpwijbenga
Copy link

I'm not sure in the docs I can find the restrictions on the JSON path allowed in the subjects expression. Is union supported? Like this example?

{
  "timestamp": "2024-03-05T13:05:47.812Z",
  "updates": [
    {
      "after": {
        "id": 123
      },
      "before": {
        "id": 456
      }
    },
    {
      "after": {
        "id": 123
      },
      "before": {
        "id": 456
      }
    },
    {
      "after": {
        "id": 123
      },
      "before": {
        "id": 456
      }
    }
  ]
}
prefixes:
 ex: "http://example.com/"

mappings:
  person:
    sources:
      - ['data.json~jsonpath', '$.updates[*].before,after']
    s: http://example.com/$(id)
    po:
      - [a, foaf:Person]

Issue type: 🐛 Bug

Description

Is the docs missing restrictions on json path allowed or am I doing something wrong?

Steps

See example code. Tested json path with online tool at jsonpath.com

Environment

Online Matey / yarrrml parser v1.6.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant