Skip to content

Property Shapes without paths #202

@tpluscode

Description

@tpluscode

Pleas consider this shape, as mentioned in issue zazuko/rdf-validate-shacl#140

@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix schema: <http://schema.org/> .
@prefix ex: <http://example.com/> .

ex:PersonAddressShape
    a sh:NodeShape ;
    sh:targetClass schema:Person ;
    sh:property ex:age .

ex:minCount    a sh:PropertyShape ;
        sh:minCount 1 .

ex:age    a sh:PropertyShape ;
        sh:path schema:age ;
        sh:and ( ex:minCount ) .

It seems logical to be able to reuse parts of property shapes like this but this is invalid SHACL, because ex:minCount does not have a sh:path

On the other hand TopBraid's SHACL implementation does support this construct as one would expect.

Should the definition of property shape be relaxed?

Metadata

Metadata

Assignees

No one assigned

    Labels

    CoreFor SHACL 1.2 Core spec

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions