Skip to content

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

Description

@VladimirAlexiev

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}
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions