shapesGraph-001.test#
declare:
  prefix: ex
  namespace: http://datashapes.org/sh/tests/sparql/pre-binding/shapesGraph-001.test#

Test shape
type: NodeShape
sparql: TestShape-sparql
target node: InvalidResource
property: 42

TestShape-sparql
message: Test message
prefixes: shapesGraph-001.test#
select: SELECT $this WHERE { FILTER bound($shapesGraph) . GRAPH $shapesGraph { FILTER bound($currentShape) . $currentShape ex:property 42 . } }

Test of $shapesGraph and $currentShape
type: Validate
result: ValidationReport
  conforms: false
  result: ValidationResult
    focus node: InvalidResource
    result message: Test message
    result severity: Violation
    source constraint: TestShape-sparql
    source constraint component: SPARQLConstraintComponent
    source shape: Test shape
    value: InvalidResource
status: approved