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

content variant and single file addressing requirement error message are hard to understand #36

Closed
3 tasks done
JJ-Author opened this issue Nov 25, 2022 · 1 comment
Closed
3 tasks done
Assignees
Milestone

Comments

@JJ-Author
Copy link
Collaborator

JJ-Author commented Nov 25, 2022

it is really hard to debug this error message, almost impossible for big releases like DBpedia:
All used sub-properties of dataid:contentVariant MUST be used by all dataid:Parts exactly ONCE.

useful would be enhancing it with the following insights

  • the conent variant that causes the violation
  • the files that are missing a value for it
  • the files that can not be uniquely adressed grouped into the clusters that are not distinguishable
@holycrab13 holycrab13 self-assigned this Mar 2, 2023
@holycrab13 holycrab13 added this to the 2.1.0 milestone Mar 2, 2023
@holycrab13
Copy link
Contributor

Added a new validator BEFORE the SHACL step. Since the SHACL validation for this issue was a little wonky anyway!

Report will now look like this:

Invalid content variant setup. Two or more files are not distinguishable by either dataid:formatExtension, dataid:compression or any custom content variant.
[
  {
    "downloadURLs": [
      "https://holycrab13.github.io/webid.ttl",
      "https://raw.githubusercontent.com/dbpedia/webid/master/webid-dbpedia.ttl"
    ],
    "http://dataid.dbpedia.org/ns/core#formatExtension": "ttl",
    "http://dataid.dbpedia.org/ns/core#compression": "none",
    "http://dataid.dbpedia.org/ns/cv#bleb": "asdf"
  }
]

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

2 participants