Skip to content

Commit

Permalink
Merge pull request #183 from Rdataflow/patch-1
Browse files Browse the repository at this point in the history
fix: typo profile-visualize
  • Loading branch information
tpluscode authored Apr 22, 2024
2 parents b5709b3 + 615b1c2 commit be9ced7
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 16 deletions.
5 changes: 5 additions & 0 deletions .changeset/itchy-dancers-leave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"cube-link": patch
---

Corrected the URLs in profile-visualize
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ _:report a sh:ValidationReport ;
sh:path cube:observationConstraint ;
sh:maxCount 1 ;
sh:minCount 1 ;
sh:node <https://cube.link/shape/profile-opendataswiss-lindas#ObservationConstraintShape> ;
sh:node <https://cube.link/shape/profile-visualize#ObservationConstraintShape> ;
] ;
sh:focusNode <http://example.org/Cube> ;
sh:resultPath cube:observationConstraint ;
sh:value <observationConstraint> ;
sh:resultMessage "Value does not have shape <https://cube.link/shape/profile-opendataswiss-lindas#ObservationConstraintShape>" ;
sh:resultMessage "Value does not have shape <https://cube.link/shape/profile-visualize#ObservationConstraintShape>" ;
sh:detail [
rdf:type sh:ValidationResult ;
sh:resultSeverity sh:Violation ;
Expand All @@ -44,10 +44,10 @@ _:report a sh:ValidationReport ;
_:b633 sh:path sh:property ;
sh:or (
[
sh:node <https://cube.link/shape/profile-opendataswiss-lindas#ObservationConstraintDatatypeProperty> ;
sh:node <https://cube.link/shape/profile-visualize#ObservationConstraintDatatypeProperty> ;
]
[
sh:node <https://cube.link/shape/profile-opendataswiss-lindas#ObservationConstraintCoreProperty> ;
sh:node <https://cube.link/shape/profile-visualize#ObservationConstraintCoreProperty> ;
]
) ;
sh:message "Dimension constraint must have exactly one datatype. It cannot be rdf:langString" .
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ _:report a sh:ValidationReport ;
sh:path cube:observationConstraint ;
sh:maxCount 1 ;
sh:minCount 1 ;
sh:node <https://cube.link/shape/profile-opendataswiss-lindas#ObservationConstraintShape> ;
sh:node <https://cube.link/shape/profile-visualize#ObservationConstraintShape> ;
] ;
sh:focusNode <http://example.org/Cube> ;
sh:resultPath cube:observationConstraint ;
sh:value <observationConstraint> ;
sh:resultMessage "Value does not have shape <https://cube.link/shape/profile-opendataswiss-lindas#ObservationConstraintShape>" ;
sh:resultMessage "Value does not have shape <https://cube.link/shape/profile-visualize#ObservationConstraintShape>" ;
sh:detail [
rdf:type sh:ValidationResult ;
sh:resultSeverity sh:Violation ;
Expand All @@ -44,10 +44,10 @@ _:report a sh:ValidationReport ;
_:b633 sh:path sh:property ;
sh:or (
[
sh:node <https://cube.link/shape/profile-opendataswiss-lindas#ObservationConstraintDatatypeProperty> ;
sh:node <https://cube.link/shape/profile-visualize#ObservationConstraintDatatypeProperty> ;
]
[
sh:node <https://cube.link/shape/profile-opendataswiss-lindas#ObservationConstraintCoreProperty> ;
sh:node <https://cube.link/shape/profile-visualize#ObservationConstraintCoreProperty> ;
]
) ;
sh:message "Dimension constraint must have exactly one datatype. It cannot be rdf:langString" .
8 changes: 4 additions & 4 deletions test/profile-visualize/invalid-scale-types.ttl.approved.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ _:report a sh:ValidationReport ;
sh:path cube:observationConstraint ;
sh:maxCount 1 ;
sh:minCount 1 ;
sh:node <https://cube.link/shape/profile-opendataswiss-lindas#ObservationConstraintShape> ;
sh:node <https://cube.link/shape/profile-visualize#ObservationConstraintShape> ;
] ;
sh:focusNode <http://example.org/Cube> ;
sh:resultPath cube:observationConstraint ;
sh:value <observationConstraint> ;
sh:resultMessage "Value does not have shape <https://cube.link/shape/profile-opendataswiss-lindas#ObservationConstraintShape>" ;
sh:resultMessage "Value does not have shape <https://cube.link/shape/profile-visualize#ObservationConstraintShape>" ;
sh:detail [
rdf:type sh:ValidationResult ;
sh:resultSeverity sh:Violation ;
Expand Down Expand Up @@ -62,10 +62,10 @@ _:report a sh:ValidationReport ;
_:b643 sh:path sh:property ;
sh:or (
[
sh:node <https://cube.link/shape/profile-opendataswiss-lindas#ObservationConstraintScaleTypeProperty> ;
sh:node <https://cube.link/shape/profile-visualize#ObservationConstraintScaleTypeProperty> ;
]
[
sh:node <https://cube.link/shape/profile-opendataswiss-lindas#ObservationConstraintCoreProperty> ;
sh:node <https://cube.link/shape/profile-visualize#ObservationConstraintCoreProperty> ;
]
) ;
sh:message "Cube must have exactly one scaleType: qudt:IntervalScale, qudt:NominalScale, qudt:RatioScale, or qudt:OrdinalScale" .
4 changes: 2 additions & 2 deletions test/profile-visualize/invalid-temporal.ttl.approved.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@ _:report a sh:ValidationReport ;
rdf:type sh:ValidationResult ;
sh:resultSeverity sh:Violation ;
sh:sourceConstraintComponent sh:XoneConstraintComponent ;
sh:sourceShape <https://cube.link/shape/profile-opendataswiss-lindas#TemporalDimensionConstraint> ;
sh:sourceShape <https://cube.link/shape/profile-visualize#TemporalDimensionConstraint> ;
sh:focusNode _:b3 ;
sh:value _:b3 ;
sh:resultMessage "Temporal dimension must be one of XSD datatypes: gYear, gYearMonth, date, dateTime, or have time:unitType, or have an ordinal scaleType" ;
], [
rdf:type sh:ValidationResult ;
sh:resultSeverity sh:Violation ;
sh:sourceConstraintComponent sh:XoneConstraintComponent ;
sh:sourceShape <https://cube.link/shape/profile-opendataswiss-lindas#TemporalDimensionConstraint> ;
sh:sourceShape <https://cube.link/shape/profile-visualize#TemporalDimensionConstraint> ;
sh:focusNode _:b5 ;
sh:value _:b5 ;
sh:resultMessage "Temporal dimension must be one of XSD datatypes: gYear, gYearMonth, date, dateTime, or have time:unitType, or have an ordinal scaleType" ;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ _:report a sh:ValidationReport ;
rdf:type sh:ValidationResult ;
sh:resultSeverity sh:Info ;
sh:sourceConstraintComponent sh:XoneConstraintComponent ;
sh:sourceShape <https://cube.link/shape/profile-opendataswiss-lindas#KeyDimensionShInConstraint> ;
sh:sourceShape <https://cube.link/shape/profile-visualize#KeyDimensionShInConstraint> ;
sh:focusNode _:b2 ;
sh:value _:b2 ;
sh:resultMessage "For performance reason, add list of occurring elements to nominal and ordinal Key Dimensions" ;
Expand Down
2 changes: 1 addition & 1 deletion validation/profile-visualize.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ PREFIX schema: <http://schema.org/>
PREFIX sh: <http://www.w3.org/ns/shacl#>
prefix code: <https://code.described.at/>
prefix cube: <https://cube.link/>
prefix : <https://cube.link/shape/profile-opendataswiss-lindas#>
prefix : <https://cube.link/shape/profile-visualize#>

[
code:imports <./standalone-cube-constraint> ;
Expand Down

0 comments on commit be9ced7

Please sign in to comment.