Skip to content

Documenting missing feature in the specs: RML cannot handle JSON non objects array #4

@vemonet

Description

@vemonet

Issue type: ❓ Question

Is there any plan to solve this issue? #3 @thomas-delva

The issue was also mentioned here: RMLio/rmlmapper-java#95

In JSON there are 3 kind of objects:

  • objects
  • array
  • array of objects.

Unfortunately RML cannot iterate on array, hence missing 1/3 of objects potentially expressed in a JSON file. Unfortunately this is preventing to use RML to map JSON to RDF, the loss of information (1/3) is too important

Would it be possible to make this issue clearly highlighted at the top of the RML specifications and documentations? So that new users are aware of the issue, and they know they should not consider using RML to map JSON files.

Note that in my experience, most mappings using RML required extensive preprocessing to overcome this crucial missing feature. Even for relatively simple JSON files (it's quite common to find non objects array in JSON)

Or maybe, would it be possible to add an exception for this use case? Maybe using something such as $($) or $(.), I am not specialist in JSONPath, but their might be a way to reference the root of an element, and RML should be able to pick it up.

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