Skip to content

YAML-LD versions of shex test and manifest schemas - #42

Merged
plehegar merged 1 commit into
w3c:mainfrom
ericprud:manifest-refactor
Oct 12, 2026
Merged

plehegar merged 1 commit into
w3c:mainfrom
ericprud:manifest-refactor

Conversation

@ericprud

@ericprud ericprud commented Oct 9, 2026 •

Copy link
Copy Markdown
Member
namespaces:
  shexMan: <http://www.w3.org/ns/shex-manifest#> -
    classes:    Manifest, Entry
    properties: entries, name,
                schema, schemaLabel,
                data, dataLabel,
                queryMap, queryMapLabel
    context:    node, shape, status (shex:, borrowed from the ShEx
                vocabulary); comment (rdfs:comment);
                dataURL, queryMapURL, schemaURL (the ...URL spellings of
                data, queryMap and schema, typed @id)
    generation:
      source - shexSpec/shexTest's vocab/manifest-vocab.csv
      command - node vocab/mk_vocab.js --vocab shex-manifest --nsdir <this checkout>
                (in the shexTest checkout; --check instead of writing)

  shexTest: <http://www.w3.org/ns/shex-test#> -
    classes:    none
    properties:
      test metadata - trait, approval, sameSemanticsAs
      inputs beyond the entry's - semActs, shapeExterns
      representations of the schema - shexc, shexj, shexr
      expected outcome - result; schemaError, with where in the schema's
        text the rejection is: startRow, startColumn, endRow, endColumn
    context:    resultURL, semActsURL, shapeExternsURL, shexcURL, shexjURL,
                shexrURL (the ...URL spellings, typed @id); seeAlso
                (rdfs:seeAlso), wasDerivedFrom (prov:wasDerivedFrom)
    generation:
      source - shexSpec/shexTest's vocab/test-vocab.csv
      command - node vocab/mk_vocab.js --vocab shex-test --nsdir <this checkout>

prereq for PR merge of shexSpec/shexTest#91

namespaces:
  shexMan: <http://www.w3.org/ns/shex-manifest#> -
    classes:    Manifest, Entry
    properties: entries, name,
                schema, schemaLabel,
                data, dataLabel,
                queryMap, queryMapLabel
    context:    node, shape, status (shex:, borrowed from the ShEx
                vocabulary); comment (rdfs:comment);
                dataURL, queryMapURL, schemaURL (the ...URL spellings of
                data, queryMap and schema, typed @id)
    generation:
      source - shexSpec/shexTest's vocab/manifest-vocab.csv
      command - node vocab/mk_vocab.js --vocab shex-manifest --nsdir <this checkout>
                (in the shexTest checkout; --check instead of writing)

  shexTest: <http://www.w3.org/ns/shex-test#> -
    classes:    none
    properties:
      test metadata - trait, approval, sameSemanticsAs
      inputs beyond the entry's - semActs, shapeExterns
      representations of the schema - shexc, shexj, shexr
      expected outcome - result; schemaError, with where in the schema's
        text the rejection is: startRow, startColumn, endRow, endColumn
    context:    resultURL, semActsURL, shapeExternsURL, shexcURL, shexjURL,
                shexrURL (the ...URL spellings, typed @id); seeAlso
                (rdfs:seeAlso), wasDerivedFrom (prov:wasDerivedFrom)
    generation:
      source - shexSpec/shexTest's vocab/test-vocab.csv
      command - node vocab/mk_vocab.js --vocab shex-test --nsdir <this checkout>

http://www.w3.org/ns/shex-test# -- what a ShEx conformance test says
beyond an entry of the ShEx manifest vocabulary: the features of ShEx it
exercises (trait), whether it is approved (approval), how its schema must
be rejected and where (schemaError, startRow ... endColumn), the schema's
representations (shexc, shexj, shexr), sameSemanticsAs, the results a
validation must produce (result), code for actions the schema names
without any (semActs), and a schema of its EXTERNAL shapes (shapeExterns).
Its JSON-LD context adds the ...URL spellings and aliases seeAlso and
wasDerivedFrom to rdfs: and prov:; the test suite's manifests stack it on
the manifest vocabulary's.  shex-test.var negotiates it as shex.var and
shex-manifest.var do.

SemActs are defined in a decentralized way, i.e. the Test extension
used in the test suite is defined in
https://shexspec.github.io/extensions/Test/manifest-context.jsonld
@ericprud
ericprud requested a review from ylafon as a code owner October 9, 2026 20:49
@ericprud ericprud changed the title update shex manifest schema and JSON-LD to reflect current practice YAML-LD versions of shex test and manifest schemas Oct 9, 2026
@plehegar
plehegar merged commit e8b9699 into w3c:main Oct 12, 2026
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

Successfully merging this pull request may close these issues.

2 participants