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

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

TestShape-sparql
prefixes: pre-binding-002.test#
select: SELECT $this WHERE { { FILTER (false) . } UNION { FILTER ($this = ex:InvalidResource) . } }

Test of pre-binding in UNION
type: Validate
result: ValidationReport
  conforms: false
  result: ValidationResult
    focus node: InvalidResource
    result severity: Violation
    source constraint: TestShape-sparql
    source constraint component: SPARQLConstraintComponent
    source shape: Test shape
    value: InvalidResource
status: approved