@prefix ex: <https://example.org/sosa/collection-rule-5/> .
@prefix qk: <http://qudt.org/vocab/quantitykind/> .
@prefix qudt: <http://qudt.org/schema/qudt/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sosa: <http://www.w3.org/ns/sosa/> .
@prefix time: <http://www.w3.org/2006/time#>.
@prefix unit: <http://qudt.org/vocab/unit/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

ex:oc5
  a sosa:ObservationCollection ;
  sosa:hasMember ex:a51 ;
  sosa:hasMember ex:a52 ;
  sosa:madeBySensor ex:T56 ;
  sosa:observedProperty qk:Temperature ;
  sosa:phenomenonTime [
    a time:Interval ;
    time:hasBeginning [
      a time:Instant ;
      time:inXSDDateTime "2022-05-01T20:00:00+00:00"^^xsd:dateTime ;
    ] ;
    time:hasEnd [
      a time:Instant ;
      time:inXSDDateTime "2022-05-01T21:00:00+00:00"^^xsd:dateTime ;
    ] ;
  ] , [
    a time:Interval ;
    time:hasBeginning [
      a time:Instant ;
      time:inXSDDateTime "2022-05-01T22:00:00+00:00"^^xsd:dateTime ;
    ] ;
    time:hasEnd [
      a time:Instant ;
      time:inXSDDateTime "2022-05-01T23:00:00+00:00"^^xsd:dateTime ;
    ] ;
  ] ;
  qudt:hasUnit unit:DEG_C ;
  rdfs:comment """
  The properties madeBySensor, observedProperty, and hasUnit are given for the collection. 
  The property phenomenonTime has multiple value ranges.
  """ ;
.
ex:a51
  a sosa:Observation ;
  sosa:hasFeatureOfInterest ex:F1 ;
  sosa:phenomenonTime [
    a time:Instant ;
    time:inXSDDateTime "2022-05-01T20:33:40+00:00"^^xsd:dateTime ;
  ] ;
  sosa:hasSimpleResult 24.1 ;
  rdfs:comment """
  The properties hasFeatureOfInterest, phenomenonTime, and hasSimpleResult are specific to this individual member
  The value of phenomenonTime falls within one of the value ranges for the collection.
  The properties madeBySensor, observedProperty, and hasUnit are inferred from the value for the collection.
  """ ;
.
ex:a52
  a sosa:Observation ;
  sosa:hasFeatureOfInterest ex:F2 ;
  sosa:phenomenonTime [
    a time:Instant ;
    time:inXSDDateTime "2022-05-01T22:33:40+00:00"^^xsd:dateTime ;
  ] ;
  sosa:hasSimpleResult 27.3 ;
  rdfs:comment """
  The properties hasFeatureOfInterest, phenomenonTime, and hasSimpleResult are specific to this individual member
  The value of phenomenonTime falls within one of the value ranges for the collection.
  The properties madeBySensor, observedProperty, and hasUnit are inferred from the value for the collection.
  """ ;
.
ex:F1
  a sosa:FeatureOfInterest ;
  rdfs:comment "Room #1" ;
.
ex:F2
  a sosa:FeatureOfInterest ;
  rdfs:comment "Room #2" ;
.
ex:T56
  a sosa:Sensor ;
  rdfs:comment "Thermometer #56" ;
.
qk:Temperature
  a sosa:Property ;
.