morph-kgc / morph-kgc

Powerful RDF Knowledge Graph Generation with RML Mappings
https://morph-kgc.readthedocs.io
Apache License 2.0
181 stars 33 forks source link

Better JSONpath support #269

Open maqboolkhan opened 1 month ago

maqboolkhan commented 1 month ago

Is your Feature Request Related to a Problem?

The python package which Morph KGC uses is limited specially it does not support union , or | operator. Now, better python tools are available.

Describe the Solution you'd Like

We can use better jsonpath modules for example: jsonpath-ng

arenas-guerrero-julian commented 1 month ago

Hi @maqboolkhan ,

This is a very nice point. If that library is more complete and maintaned in an ongoing basis we can replace the actual one. The workaround so far for more complex JSON is to convert JSON to XML and use XPath (see #137)

maqboolkhan commented 1 month ago

Thank you for your prompt reply @arenas-guerrero-julian :) Unfortunately, in our use case we can not convert or use xml

arenas-guerrero-julian commented 2 weeks ago

As commented in #194, https://github.com/night-crawler/jsonpath-rust-bindings looks like a good option to migrate to.