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

improve xkos-best-practice queries or use SHACL #9

Open
VladimirAlexiev opened this issue Feb 21, 2017 · 0 comments
Open

improve xkos-best-practice queries or use SHACL #9

VladimirAlexiev opened this issue Feb 21, 2017 · 0 comments

Comments

@VladimirAlexiev
Copy link

https://github.com/FranckCo/Stamina/blob/master/doc/xkos-best-practice.md.
Such best practices are usually called Application Profiles. The best current way to describe them is with RDF Shapes (SHACL): https://www.w3.org/TR/shacl/, which specifies typical constraints and a way to express validation results. SHACL implementations include TQ SHACL API and AKSW RDFUnit.

Barring that, please simplify the queries. Eg instead of

SELECT ?s {
  ?s rdf:type skos:ConceptScheme .
  MINUS {
    SELECT ?s {
      ?s rdf:type skos:ConceptScheme .
      ?s skos:notation ?code .
    }
  }
}

use this:

SELECT * {
  ?s a skos:ConceptScheme
  FILTER NOT EXISTS {?s skos:notation ?code}
}
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