Skip to content

Instantly share code, notes, and snippets.

@aamedina
Created August 20, 2023 20:55
Show Gist options
  • Save aamedina/66adcd43fb1c3400443bcc747640868d to your computer and use it in GitHub Desktop.
Save aamedina/66adcd43fb1c3400443bcc747640868d to your computer and use it in GitHub Desktop.
^{:dcat/downloadURL
"https://www.w3.org/TR/vocab-ssn/integrated/examples/apartment-134.ttl",
:rdf/ns-prefix-map
{"qudt-unit-1-1" "http://qudt.org/1.1/vocab/unit#",
"rdf" "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
"qudt-1-1" "http://qudt.org/1.1/schema/qudt#",
"xsd" "http://www.w3.org/2001/XMLSchema#",
"time" "http://www.w3.org/2006/time#",
"sosa" "http://www.w3.org/ns/sosa/",
"ssn" "http://www.w3.org/ns/ssn/"}}
[{:rdfa/uri "http://example.org/data/tempSensor/23",
:sosa/madeObservation
[{:rdfa/uri "http://example.org/data/tempSensor/23/4574"}
{:rdfa/uri "http://example.org/data/tempSensor/23/4573"}
{:rdfa/uri "http://example.org/data/tempSensor/23/4572"}],
:sosa/observes
{:rdfa/uri "http://example.org/data/tempSensor/23#temperature"},
:rdf/type :sosa/Sensor}
{:rdfa/uri "http://example.org/data/windowCloser/987",
:ssn/forProperty
{:rdfa/uri "http://example.org/data/window/104#state"},
:sosa/madeActuation
{:rdfa/uri "http://example.org/data/actuation/188"},
:rdf/type :sosa/Actuator}
{:rdfa/uri
"http://example.org/data/Appartment/134/electricConsumption",
:sosa/isObservedBy
{:rdfa/uri "http://example.org/data/sensor/926"},
:rdf/type :sosa/ObservableProperty}
{:db/id "34cb687cf61c4a6a619be2cac27c3304",
:time/hasEnd {:db/id "a52eacb4c11a36b8a35f453353bdf793"},
:time/hasBeginning {:db/id "914547991e58e55553057a6cbcd1492d"},
:rdf/type :time/Interval}
{:rdfa/uri "http://example.org/data/window",
:ssn/hasProperty
{:rdfa/uri "http://example.org/data/window/104#state"},
:rdf/type :sosa/FeatureOfInterest}
{:rdfa/uri "http://example.org/data/actuation/188",
:sosa/resultTime #inst "2017-04-18T15:24:00.000-00:00",
:sosa/hasSimplResult true,
:sosa/actuationMadeBy
{:rdfa/uri "http://example.org/data/windowCloser/987"},
:sosa/actsOnProperty
{:rdfa/uri "http://example.org/data/window/104#state"},
:rdf/type :sosa/Actuation}
{:rdfa/uri "http://example.org/data/Observation/235714",
:sosa/resultTime #inst "2017-04-16T00:00:12.000-00:00",
:sosa/phenomenonTime {:db/id "34cb687cf61c4a6a619be2cac27c3304"},
:sosa/hasResult {:db/id "5cc9199bc800d57c30dea4d67206a6ef"},
:sosa/madeBySensor
{:rdfa/uri "http://example.org/data/sensor/926"},
:sosa/observedProperty
{:rdfa/uri
"http://example.org/data/Appartment/134/electricConsumption"},
:rdf/type :sosa/Observation}
{:rdfa/uri "http://example.org/data/sensor/926",
:sosa/madeObservation
[{:rdfa/uri "http://example.org/data/Observation/235716"}
{:rdfa/uri "http://example.org/data/Observation/235715"}
{:rdfa/uri "http://example.org/data/Observation/235714"}],
:sosa/observes
{:rdfa/uri
"http://example.org/data/Appartment/134/electricConsumption"},
:rdf/type :sosa/Sensor}
{:rdfa/uri "http://example.org/data/Observation/235754",
:sosa/madeBySensor
{:rdfa/uri "http://example.org/data/sensor/926"},
:rdf/type :sosa/Observation}
{:rdfa/uri "http://example.org/data/window/104#state",
:sosa/isActedOnBy
{:rdfa/uri "http://example.org/data/actuation/188"},
:rdf/type :sosa/ActuatableProperty}
{:db/id "914547991e58e55553057a6cbcd1492d",
:time/inXSDDateTimeStamp #inst "2017-04-15T00:00:00.000-00:00",
:rdf/type :time/Instant}
{:db/id "5cc9199bc800d57c30dea4d67206a6ef",
:qudt-1-1/unit :qudt-unit-1-1/Kilowatthour,
:qudt-1-1/numericValue 22.4,
:rdf/type :qudt-1-1/QuantityValue}
{:db/id "a52eacb4c11a36b8a35f453353bdf793",
:time/inXSDDateTimeStamp #inst "2017-04-16T00:00:00.000-00:00",
:rdf/type :time/Instant}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment