Skip to content

Parse and process manifest examples validation files #118

@labra

Description

@labra

There was a feature that appeared in the first versions of RDFShape but was missed in the latest ones, which was to process manifest files with examples.

This feature is available in ShEx simple and it works as follows:

When the client is passed a manifestUrl=url parameter, it parses the url which should be a manifest file like this one:

---
- schemaLabel: Figures
  schemaURL: figures.shex
  dataLabel: r1 as figure
  dataURL: figures.ttl
  queryMap: |
    <http://example.org/r1>@<http://example.org/ColouredCircle>
  status: conformant
- schemaLabel: Example_x
  schemaURL: example_x.shex
  dataLabel: m24 as x_1
  dataURL: example_x.ttl
  queryMap: |
    <http://example.org/m24>@<http://example.org/X_1>
  status: conformant
- schemaLabel: Example_x
  schemaURL: example_x.shex
  dataLabel: m246 as x_2
  dataURL: example_x.ttl
  queryMap: |
    <http://example.org/m246>@<http://example.org/X_2>
  status: nonconformant

and it presents those options to the user. You can see it working here

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