Skip to content

Clarify the use of $PATH, or string interpolation of SHACL paths #163

@VladimirAlexiev

Description

@VladimirAlexiev

Sec 5.2 Syntax of SPARQL-based Constraints:

SELECT queries used in the context of property shapes use a special variable named PATH as a placeholder for the path used by the shape.

The only legal use of the variable PATH in the SPARQL queries of SPARQL-based constraints and SELECT-based validators is in the predicate position of a triple pattern.

But if sh:path is complex (not a predicate), it cannot be used in this way.

So I suggest adding two clarifications:

  • "(spelled in UPPERCASE)" because SPARQL var names are case-sensitive
  • "This can only be used with simple sh:path that consists of a single predicate. For complex sh:path, write the property path in SPARQL syntax in the query."

Metadata

Metadata

Assignees

No one assigned

    Labels

    SPARQLFor SHACL 1.2 SPARQL extensions spec

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions