Skip to content

Commit

Permalink
feat: require related dimension to be a cube:MeasureDimension
Browse files Browse the repository at this point in the history
  • Loading branch information
tpluscode committed Sep 30, 2024
1 parent 49c2df2 commit a31482a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ PREFIX dcterms: <http://purl.org/dc/terms/>
] ;
sh:property
[
a cube:MeasureDimension ;
sh:datatype xsd:decimal ;
sh:path <dimension> ;
schema:name "dimension" ;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ PREFIX dcterms: <http://purl.org/dc/terms/>
] ;
sh:property
[
a cube:MeasureDimension ;
sh:datatype xsd:decimal ;
sh:path <dimension> ;
schema:name "dimension" ;
Expand Down
9 changes: 9 additions & 0 deletions validation/standalone-constraint-constraint.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,15 @@
sh:minCount 1 ;
sh:class cube:Constraint ;
sh:message "value of meta:relatesTo must be a cube dimension" ;
],
[
sh:path
(
meta:relatesTo
[ sh:inversePath sh:path ]
) ;
sh:class cube:MeasureDimension ;
sh:message "value of meta:relatesTo must point to measure dimension " ;
] ;
] ;
.
Expand Down

0 comments on commit a31482a

Please sign in to comment.