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

tests should be deployed at a defined location and define BASE #269

Open
VladimirAlexiev opened this issue Feb 23, 2025 · 0 comments
Open

Comments

@VladimirAlexiev
Copy link
Contributor

VladimirAlexiev commented Feb 23, 2025

All manifests in https://github.com/w3c/data-shapes/tree/gh-pages/shacl12-test-suite/tests and subfolders look like this:

<> a mf:Manifest ;
	mf:include <core/manifest.ttl> ;
	mf:include <sparql/manifest.ttl> ;
	.

Individual tests look like this, eg https://github.com/w3c/data-shapes/blob/gh-pages/shacl12-test-suite/tests/core/complex/personexample.ttl#L58

<personexample> rdf:type sht:Validate ; mf:action [sht:dataGraph <> ; sht:shapesGraph <>].
<> rdf:type mf:Manifest ; mf:entries (<personexample>) .

<> and <personexample> depend on the location of each of these files.

This should work ok for a test runner since it will use the local file folder where the tests are found.
It is useful for test authors to:

  • leverage the folder hierarchy and not have to keep URLs in sync with any reorganizations
  • be able to just write sht:dataGraph <> ; sht:shapesGraph <> ; in many of the test files (which means "data and shapes for this test are in THIS file")

However, this means that individual tests don't have defined URLs.

https://w3c.github.io/data-shapes/data-shapes-test-suite/ does not define the root location where the tests will be deployed

Why well-defined semantic URLs for individual tests are important? Because:

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