-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsmarthome-ontology.ttl
68 lines (57 loc) · 1.98 KB
/
smarthome-ontology.ttl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix ns0: <http://www.example.org/smart-home#> .
<http://www.example.org/smart-home>
a owl:Ontology ;
rdfs:comment "An ontology representing a smart home with zones, devices, and their relationships." ;
rdfs:label "Smart Home Ontology" .
<sh:Zone>
a owl:Class ;
rdfs:label "Zone" ;
rdfs:comment "A specific area or region within a smart home (e.g., Living Room, Kitchen)." .
<sh:Device>
a owl:Class ;
rdfs:label "Device" ;
rdfs:comment "A smart device within the smart home (e.g., Thermostat, Light, Sensor)." .
<sh:Sensor>
a owl:Class ;
rdfs:label "Sensor" ;
rdfs:subClassOf <sh:Device> ;
rdfs:comment "A device that senses environmental data (e.g., temperature, motion)." .
<sh:Actuator>
a owl:Class ;
rdfs:label "Actuator" ;
rdfs:subClassOf <sh:Device> ;
rdfs:comment "A device that performs actions (e.g., turning on/off a light)." .
<sh:hasDevice>
a owl:ObjectProperty ;
rdfs:label "hasDevice" ;
rdfs:domain <sh:Zone> ;
rdfs:range <sh:Device> ;
rdfs:comment "Relates a zone to the devices it contains." .
<sh:isPartOf>
a owl:ObjectProperty ;
rdfs:label "isPartOf" ;
rdfs:domain <sh:Zone> ;
rdfs:range <sh:Zone> ;
rdfs:comment "Represents a subzone relationship within the home (e.g., Kitchen is part of First Floor)." .
<sh:deviceName>
a owl:DatatypeProperty ;
rdfs:label "deviceName" ;
rdfs:domain <sh:Device> ;
rdfs:range xsd:string ;
rdfs:comment "The name of a smart device." .
<sh:zoneName>
a owl:DatatypeProperty ;
rdfs:label "zoneName" ;
rdfs:domain <sh:Zone> ;
rdfs:range xsd:string ;
rdfs:comment "The name of a zone in the smart home." .
<sh:LivingRoom>
a <http://www.example.org/smart-home#Zone> ;
ns0:zoneName "Living Room"^^xsd:string ;
ns0:hasDevice <sh:SmartThermostat> .
<sh:SmartThermostat>
a ns0:Device ;
ns0:deviceName "Smart Thermostat"^^xsd:string .