Skip to content

Graph Shapes and Assertions #382

@multimeric

Description

@multimeric

A user may want to constrain a graph in ways that cannot be expressed using node and property shapes. For example:

  • There must be at least one entity of type schema:Thing in the graph. Equivalently, there must be at least one triple of the form ?subject rdf:type schema:Thing
  • There must be no more than N triples in the graph
  • No IRIs beginning with some prefix should exist in the graph

Therefore, I wonder if there has been discussion of the idea of graph shapes. Since all of these can be expressed readily using SPARQL ASK queries, I'm envisaging something like this:

:myGraphShape
	a sh:GraphShape ;
      	sh:ask "ASK { ?s a schema:Thing }" .

How can I propose this as part of SHACL and is it in scope?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions