shapes-ISSUE-114 (Property Groups): Should SHACL include a grouping mechanism of properties (for UI purposes) [SHACL Spec]

shapes-ISSUE-114 (Property Groups): Should SHACL include a grouping mechanism of properties (for UI purposes) [SHACL Spec]

http://www.w3.org/2014/data-shapes/track/issues/114

Raised by: Holger Knublauch
On product: SHACL Spec

If shapes are used to describe form layouts, it is in my experience a common requirement to group related properties together. Examples include "Labels and Descriptions", "Class Axioms", "(SKOS) Concept Relationships". UI builders could use such structured information to produce sections. The groups could be ordered by themselves, and properties such as sh:order could be applied to the properties within a group.

A possible, minimally disruptive, design would be

ex:SKOSRelationsGroup
    a sh:PropertyGroup ;
    sh:order 0 ;
    rdfs:label "Concept Relationships"@en .

ex:MyShape
    a sh:Shape ;
    sh:scopeClass skos:Concept ;
    sh:property [
        sh:predicate skos:broader ;
        sh:order 0 ;
        sh:group ex:SKOSRelationsGroup ;
    ] ;
    sh:property [
        sh:predicate skos:narrower ;
        sh:order 1 ;
        sh:group ex:SKOSRelationsGroup ;
    ] .

Any of these properties would be entirely optional, as usual.

Received on Thursday, 12 November 2015 23:09:41 UTC