@prefix ex: <https://example.org/data/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@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 schema: <https://schema.org/> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@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#> .
@base <https://example.org/data/dht22d/> .

#     This example shows how the conditions (temperature and humidity) in a room can be measured using one or
#     more sensors.
#     Each sensor observes the conditions in its immediate vicinity, and the values are then used to characterize
#     the room. 
#
# In Room 145, one of the walls is external in the building, so there is expected to be a temperature gradient
#     across the room, and there are two sensors on different walls.
#     In Room 245, there is one sensor on the south wall.
#     Each of these locations corresponds to a sosa:Sample of the entire room.
#     The wall also serves as a sosa:Platform on which the sensors are mounted. 


ex:Room145 a sosa:FeatureOfInterest ;
  rdfs:label "Room #145"@en ;
  sosa:hasSample ex:Room145_east ;
  sosa:hasSample ex:Room145_south ;
.
ex:Room145_east a sosa:Sample , sosa:FeatureOfInterest , sosa:Platform ;
  rdfs:label "East wall of room #145."@en ;
  rdfs:comment "This wall hosts PCB Board 1 with DHT22 temperature and humidity sensor #4578."@en ;
  sosa:hosts ex:PCBBoard1 ;
.
ex:Room145_south a sosa:Sample , sosa:FeatureOfInterest , sosa:Platform ;
  rdfs:label "South wall of room #145."@en ;
  rdfs:comment "This wall hosts PCB Board 2 with DHT22 temperature and humidity sensor #4579."@en ;
  sosa:hosts ex:PCBBoard2 ;
.
ex:Room245 a sosa:FeatureOfInterest ;
  rdfs:label "Room #245"@en ;
  sosa:hasProperty qk:Temperature , qk:RelativeHumidity ;
  sosa:hasSample ex:Room245_south ;
.
ex:Room245_south a sosa:Sample , sosa:FeatureOfInterest , sosa:Platform ;
  rdfs:label "South wall of room #245."@en ;
  sosa:hosts ex:PCBBoard3 ;
.
ex:PCBBoard1 a sosa:System , sosa:Platform ;
  rdfs:label "PCB Board 1"@en ;
  rdfs:comment "PCB Board 1 hosts DHT22 temperature and humidity sensor #4578 permanently, one can say it has it as one of its subsystems."@en ;
  sosa:hosts ex:DHT22_4578 ;
  sosa:hasSubSystem ex:DHT22_4578 ;
.
ex:DHT22_4578 a sosa:System ;
  rdfs:label "DHT22 sensor #4578"@en ;
  sosa:isHostedBy ex:PCBBoard1 ;
.
ex:PCBBoard2 a sosa:System , sosa:Platform ;
  rdfs:label "PCB Board 2"@en ;
  rdfs:comment "PCB Board 2 hosts DHT22 temperature and humidity sensor #4579 permanently, one can say it has it as one of its subsystems."@en ;
  sosa:hosts ex:DHT22_4579 ;
  sosa:hasSubSystem ex:DHT22_4579 ;
.
ex:DHT22_4579 a sosa:System ;
  rdfs:label "DHT22 sensor #4579."@en ;
  sosa:isHostedBy ex:PCBBoard2 ;
.
ex:PCBBoard3 a sosa:System , sosa:Platform ;
  rdfs:label "PCB Board 3"@en ;
  rdfs:comment "PCB Board 3 hosts DHT22 temperature and humidity sensor #4580 permanently, one can say it has it as one of its subsystems."@en ;
  sosa:hosts ex:DHT22_4580 ;
  sosa:hasSubSystem ex:DHT22_4580 ;
.
ex:DHT22_4580 a sosa:System ;
  rdfs:label "DHT22 sensor #4580."@en ;
  sosa:isHostedBy ex:PCBBoard3 ;
.
ex:Room245Deployment a sosa:Deployment ;
  rdfs:comment "Deployment of PCB Board 3 on the south wall of room #245 for the purpose of observing the temperature and humidity of room #245."@en ;
  sosa:deployedOnPlatform ex:Room245_south ;
  sosa:deployedSystem ex:PCBBoard3 ;
  sosa:forProperty qk:Temperature , qk:RelativeHumidity ;
.
ex:Room145Deployment a sosa:Deployment ;
  rdfs:comment "Deployment of PCB Board 1 and 2 on the east and south wall of room #145, respectively, for the purpose of observing the temperature and humidity of room #145."@en ;
  sosa:deployedOnPlatform ex:Room145_east , ex:Room145_south ;
  sosa:deployedSystem ex:PCBBoard1 , ex:PCBBoard2 ;
  sosa:forProperty qk:Temperature , qk:RelativeHumidity ;
.