Skip to content

Commit

Permalink
Merge pull request #993 from qudt/fix-wrong-dimensionVector-of-matrix
Browse files Browse the repository at this point in the history
Replace qudt:hasDimensionVector with qudt:dimensions in datatypes file
  • Loading branch information
fkleedorfer authored Nov 8, 2024
2 parents 3d1c2eb + 64dafbb commit 84400d9
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 63 deletions.
54 changes: 19 additions & 35 deletions schema/SCHEMA_QUDT-DATATYPE-v2.1.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -157,11 +157,6 @@ qudt:Array
owl:allValuesFrom qudt:ArrayDataOrderType ;
owl:onProperty qudt:dataOrder ;
] ;
rdfs:subClassOf [
a owl:Restriction ;
owl:allValuesFrom qudt:DimensionVector ;
owl:onProperty qudt:dimensionVector ;
] ;
rdfs:subClassOf [
a owl:Restriction ;
owl:allValuesFrom <http://qudt.org/schema/type#TypeMatrix> ;
Expand All @@ -180,7 +175,7 @@ qudt:Array
rdfs:subClassOf [
a owl:Restriction ;
owl:maxCardinality 1 ;
owl:onProperty qudt:dimensionVector ;
owl:onProperty qudt:dimensions ;
] ;
rdfs:subClassOf [
a owl:Restriction ;
Expand Down Expand Up @@ -243,7 +238,7 @@ qudt:ArrayType
rdfs:subClassOf qudt:CompositeDatatype ;
sh:property qudt:ArrayType-byRow ;
sh:property qudt:ArrayType-dataOrder ;
sh:property qudt:ArrayType-dimensionVector ;
sh:property qudt:ArrayType-dimensions ;
sh:property qudt:ArrayType-dimensionality ;
sh:property qudt:ArrayType-typeMatrix ;
.
Expand All @@ -259,9 +254,9 @@ qudt:ArrayType-dataOrder
sh:class qudt:ArrayDataOrderType ;
sh:maxCount 1 ;
.
qudt:ArrayType-dimensionVector
qudt:ArrayType-dimensions
a sh:PropertyShape ;
sh:path qudt:dimensionVector ;
sh:path qudt:dimensions ;
sh:class qudt:DimensionVector ;
sh:maxCount 1 ;
.
Expand Down Expand Up @@ -1543,22 +1538,6 @@ qudt:DECIMAL
dtype:literal "numeric" ;
rdfs:label "Decimal" ;
.
qudt:DV_2x4
a qudt:DimensionVector ;
rdf:first 2 ;
rdf:rest (
4
) ;
rdfs:label "Dimension Vector 2x4" ;
.
qudt:DV_4x4
a qudt:DimensionVector ;
rdf:first 4 ;
rdf:rest (
4
) ;
rdfs:label "Dimension Vector 4x4" ;
.
qudt:DataElement-type
a sh:PropertyShape ;
sh:path qudt:dataType ;
Expand Down Expand Up @@ -2611,7 +2590,7 @@ qudt:MATRIX-TYPE_2x4
a qudt:MatrixType ;
qudt:byRow true ;
qudt:columns 4 ;
qudt:dimensionVector qudt:DV_2x4 ;
qudt:dimensions (2 4) ;
qudt:dimensionality 2 ;
qudt:rows 2 ;
qudt:rows 4 ;
Expand Down Expand Up @@ -4411,7 +4390,7 @@ qudt:TABLE-TYPE_2x4
a qudt:TableType ;
qudt:byRow true ;
qudt:columns 4 ;
qudt:dimensionVector qudt:DV_2x4 ;
qudt:dimensions (2 4) ;
qudt:dimensionality 2 ;
qudt:rows 2 ;
rdfs:label "Table type 2x4" ;
Expand Down Expand Up @@ -4638,7 +4617,7 @@ qudt:TimeSeriesArray
rdfs:subClassOf [
a owl:Restriction ;
owl:cardinality 1 ;
owl:onProperty qudt:dimensionVector ;
owl:onProperty qudt:dimensions ;
] ;
rdfs:subClassOf [
a owl:Restriction ;
Expand All @@ -4651,9 +4630,9 @@ qudt:TimeSeriesArray
owl:onProperty <http://qudt.org/schema/type#vector> ;
] ;
.
qudt:TimeSeriesArray-dimensionVector
qudt:TimeSeriesArray-dimensions
a sh:PropertyShape ;
sh:path qudt:dimensionVector ;
sh:path qudt:dimensions ;
sh:class qudt:IntegerList ;
sh:maxCount 1 ;
sh:minCount 1 ;
Expand All @@ -4678,7 +4657,7 @@ qudt:TimeSeriesArrayType
rdfs:comment "A Time Series Array Type is a data type that specifies the properties of arrays that hold time series data. A time series is a sequence of data points, measured at successive time intervals. The time intervals may be uniformly or non-uniformly spaced." ;
rdfs:label "Time Series Array Type" ;
rdfs:subClassOf qudt:ArrayType ;
sh:property qudt:TimeSeriesArray-dimensionVector ;
sh:property qudt:TimeSeriesArray-dimensions ;
sh:property qudt:TimeSeriesArray-incrementDatatype ;
sh:property qudt:TimeSeriesArray-vector ;
.
Expand Down Expand Up @@ -5651,15 +5630,20 @@ qudt:dimension
rdfs:label "dimension" ;
rdfs:range xsd:integer ;
.
qudt:dimensionVector
qudt:dimensions
a owl:ObjectProperty ;
dcterms:description
"""The extent of each dimension making up a matrix or an array.
For example a 4 by 4 array has dimensions (4 4),
whereas a vector or a string has dimensions (1).
""" ;
rdfs:isDefinedBy <http://qudt.org/2.1/schema/datatype> ;
rdfs:label "dimension vector" ;
rdfs:range qudt:DimensionVector ;
rdfs:label "dimensions" ;
rdfs:range qudt:IntegerList ;
.
qudt:dimensionality
a owl:DatatypeProperty ;
dcterms:description "The number of dimensions making up an array. For example a 4 by 4 array has a dimensionality of 2. Whereas a vector or a string has a dimensionality of 1." ;
dcterms:description "The number of dimensions making up a matrix or an array. For example a 4 by 4 array has a dimensionality of 2. Whereas a vector or a string has a dimensionality of 1." ;
rdfs:isDefinedBy <http://qudt.org/2.1/schema/datatype> ;
rdfs:label "dimensionality" ;
rdfs:range xsd:integer ;
Expand Down
34 changes: 6 additions & 28 deletions vocab/types/VOCAB_QUDT-DATATYPES-v2.1.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -899,14 +899,7 @@ qudt:MATRIX-4X4-FLOATDP
qudt:code 320 ;
qudt:dimensionality 2 ;
qudt:elementType qudt:FLOAT-DP ;
qudt:hasDimensionVector [
a qudt:DimensionVector ;
rdf:first "4"^^xsd:int ;
rdf:rest (
"4"^^xsd:int
) ;
rdfs:label "4 by 4 array" ;
] ;
qudt:dimensions (4 4);
qudt:typeMatrix <http://qudt.org/schema/type#TYPE-MATRIX-4x4-FLOATDP> ;
rdfs:isDefinedBy <http://qudt.org/2.1/vocab/datatype> ;
rdfs:label "MATRIX-4 X 4 Double precision" ;
Expand Down Expand Up @@ -1657,10 +1650,7 @@ qudt:StateSpaceMatrix-2X2-DP
qudt:code 321 ;
qudt:dimensionality 2 ;
qudt:elementType qudt:FLOAT-DP ;
qudt:hasDimensionVector (
"2"^^xsd:int
"2"^^xsd:int
) ;
qudt:dimensions ( 2 2 ) ;
rdfs:isDefinedBy <http://qudt.org/2.1/vocab/datatype> ;
rdfs:label "State space matrix 2 by 2 Double Precision" ;
.
Expand All @@ -1669,10 +1659,7 @@ qudt:StateSpaceMatrix-2by4-FLOATDP
qudt:code 323 ;
qudt:dimensionality 2 ;
qudt:elementType qudt:FLOAT-DP ;
qudt:hasDimensionVector (
"2"^^xsd:int
"4"^^xsd:int
) ;
qudt:dimensions ( 2 4 ) ;
rdfs:isDefinedBy <http://qudt.org/2.1/vocab/datatype> ;
rdfs:label "State space matrix 2 by 4 Double Precision" ;
.
Expand All @@ -1681,10 +1668,7 @@ qudt:StateSpaceMatrix-4X4-DP
qudt:code 327 ;
qudt:dimensionality 2 ;
qudt:elementType qudt:FLOAT-DP ;
qudt:hasDimensionVector (
"4"^^xsd:int
"4"^^xsd:int
) ;
qudt:dimensions ( 4 4 ) ;
rdfs:isDefinedBy <http://qudt.org/2.1/vocab/datatype> ;
rdfs:label "State space matrix 4 by 4 Double Precision" ;
.
Expand All @@ -1693,10 +1677,7 @@ qudt:StateSpaceMatrix-4by2-DoublePrecision
qudt:code 325 ;
qudt:dimensionality 2 ;
qudt:elementType qudt:FLOAT-DP ;
qudt:hasDimensionVector (
"4"^^xsd:int
"2"^^xsd:int
) ;
qudt:dimensions ( 4 2 ) ;
rdfs:isDefinedBy <http://qudt.org/2.1/vocab/datatype> ;
rdfs:label "State space matrix 4 by 2 Double Precision" ;
.
Expand Down Expand Up @@ -1728,10 +1709,7 @@ qudt:TABLE-2x4
qudt:byRow true ;
qudt:columns 4 ;
qudt:dimensionality 2 ;
qudt:hasDimensionVector (
"2"^^xsd:int
"4"^^xsd:int
) ;
qudt:dimensions ( 2 4 ) ;
qudt:rows 2 ;
rdfs:isDefinedBy <http://qudt.org/2.1/vocab/datatype> ;
rdfs:label "TABLE-2x4" ;
Expand Down

0 comments on commit 84400d9

Please sign in to comment.