Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OC-207 Representation of Measurement #333

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
76 changes: 76 additions & 0 deletions ontology/observable/observable.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -3376,6 +3376,61 @@ observable:MSISDNType
rdfs:range xsd:string ;
.

observable:Measurement
a
owl:Class ,
sh:NodeShape
;
rdfs:subClassOf observable:ObservableObject ;
rdfs:label "Measurement"@en ;
rdfs:comment "Measurement is a particular discrete collected data point from a sensor or other device."@en ;
sh:targetClass observable:Measurement ;
.

observable:MeasurementFacet
a
owl:Class ,
sh:NodeShape
;
rdfs:subClassOf core:Facet ;
rdfs:label "MeasurementFacet"@en ;
rdfs:comment "A measurement facet is a grouping of characteristics unique to a particular discrete collected data point from a sensor or other device."@en ;
sh:property
[
sh:datatype xsd:dateTime ;
sh:maxCount "1"^^xsd:integer ;
sh:nodeKind sh:Literal ;
sh:path observable:endTime ;
] ,
[
sh:datatype xsd:dateTime ;
sh:maxCount "1"^^xsd:integer ;
sh:nodeKind sh:Literal ;
sh:path observable:startTime ;
] ,
[
sh:datatype xsd:decimal ;
sh:maxCount "1"^^xsd:integer ;
sh:minCount "1"^^xsd:integer ;
sh:nodeKind sh:Literal ;
sh:path observable:measurement ;
] ,
[
sh:datatype xsd:integer ;
sh:maxCount "1"^^xsd:integer ;
sh:nodeKind sh:Literal ;
sh:path observable:measurementCount ;
] ,
[
sh:datatype vocabulary:MeasurementUnitVocab ;
sh:maxCount "1"^^xsd:integer ;
sh:nodeKind sh:Literal ;
sh:path observable:unitType ;
]
;
sh:targetClass observable:MeasurementFacet ;
.

observable:Memory
a
owl:Class ,
Expand Down Expand Up @@ -10145,6 +10200,20 @@ observable:maxRunTime
rdfs:range xsd:integer ;
.

observable:measurement
a owl:DatatypeProperty ;
rdfs:label "measurement"@en ;
rdfs:comment "The value of a discrete collected data point from a sensor or other device."@en ;
rdfs:range xsd:decimal ;
.

observable:measurementCount
a owl:DatatypeProperty ;
rdfs:label "measurementCount"@en ;
rdfs:comment "The number of discrete collected data points from a sensor or other device."@en ;
rdfs:range xsd:integer ;
.

observable:message
a owl:ObjectProperty ;
rdfs:label "message"@en ;
Expand Down Expand Up @@ -11777,6 +11846,13 @@ observable:twitterId
rdfs:range xsd:string ;
.

observable:unitType
a owl:DatatypeProperty ;
rdfs:label "unitType"@en ;
rdfs:comment "Specifies the type of the measurement value."@en ;
rdfs:range vocabulary:MeasurementUnitVocab ;
.

observable:updatedDate
a owl:DatatypeProperty ;
rdfs:label "updatedDate"@en ;
Expand Down
19 changes: 19 additions & 0 deletions ontology/vocabulary/vocabulary.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -587,6 +587,25 @@ vocabulary:LibraryTypeVocab
) ;
.

vocabulary:MeasurementUnitVocab
a rdfs:Datatype ;
rdfs:subClassOf rdfs:Resource ;
rdfs:label "Measurement Unit Vocabulary"@en-US ;
rdfs:comment "Defines an open-vocabulary of types of units for measurement values."@en ;
owl:oneOf (
"Calories"^^vocabulary:MeasurementUnitVocab
"Grams"^^vocabulary:MeasurementUnitVocab
"Joules"^^vocabulary:MeasurementUnitVocab
"Liters"^^vocabulary:MeasurementUnitVocab
"MetersPerHour"^^vocabulary:MeasurementUnitVocab
"Meters"^^vocabulary:MeasurementUnitVocab
"OccurrencesPerHour"^^vocabulary:MeasurementUnitVocab
"OccurrencesPerMinute"^^vocabulary:MeasurementUnitVocab
"Occurrences"^^vocabulary:MeasurementUnitVocab
"Pascals"^^vocabulary:MeasurementUnitVocab
) ;
.

vocabulary:MemoryBlockTypeVocab
a rdfs:Datatype ;
rdfs:subClassOf rdfs:Resource ;
Expand Down