-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsmarthome-ontology.owl
More file actions
81 lines (68 loc) · 3.24 KB
/
smarthome-ontology.owl
File metadata and controls
81 lines (68 loc) · 3.24 KB
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
69
70
71
72
73
74
75
76
77
78
79
80
81
<?xml version="1.0"?>
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:owl="http://www.w3.org/2002/07/owl#"
xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
xmlns:sh="http://www.example.org/smart-home#">
<!-- Ontology Metadata -->
<owl:Ontology rdf:about="http://www.example.org/smart-home">
<rdfs:comment>An ontology representing a smart home with zones, devices, and their relationships.</rdfs:comment>
<rdfs:label>Smart Home Ontology</rdfs:label>
</owl:Ontology>
<!-- Classes -->
<owl:Class rdf:about="sh:Zone">
<rdfs:label>Zone</rdfs:label>
<rdfs:comment>A specific area or region within a smart home (e.g., Living Room, Kitchen).</rdfs:comment>
</owl:Class>
<owl:Class rdf:about="sh:Device">
<rdfs:label>Device</rdfs:label>
<rdfs:comment>A smart device within the smart home (e.g., Thermostat, Light, Sensor).</rdfs:comment>
</owl:Class>
<owl:Class rdf:about="sh:Sensor">
<rdfs:label>Sensor</rdfs:label>
<rdfs:subClassOf rdf:resource="sh:Device"/>
<rdfs:comment>A device that senses environmental data (e.g., temperature, motion).</rdfs:comment>
</owl:Class>
<owl:Class rdf:about="sh:Actuator">
<rdfs:label>Actuator</rdfs:label>
<rdfs:subClassOf rdf:resource="sh:Device"/>
<rdfs:comment>A device that performs actions (e.g., turning on/off a light).</rdfs:comment>
</owl:Class>
<!-- Object Properties -->
<owl:ObjectProperty rdf:about="sh:hasDevice">
<rdfs:label>hasDevice</rdfs:label>
<rdfs:domain rdf:resource="sh:Zone"/>
<rdfs:range rdf:resource="sh:Device"/>
<rdfs:comment>Relates a zone to the devices it contains.</rdfs:comment>
</owl:ObjectProperty>
<owl:ObjectProperty rdf:about="sh:isPartOf">
<rdfs:label>isPartOf</rdfs:label>
<rdfs:domain rdf:resource="sh:Zone"/>
<rdfs:range rdf:resource="sh:Zone"/>
<rdfs:comment>Represents a subzone relationship within the home (e.g., Kitchen is part of First Floor).</rdfs:comment>
</owl:ObjectProperty>
<!-- Data Properties -->
<owl:DatatypeProperty rdf:about="sh:deviceName">
<rdfs:label>deviceName</rdfs:label>
<rdfs:domain rdf:resource="sh:Device"/>
<rdfs:range rdf:resource="xsd:string"/>
<rdfs:comment>The name of a smart device.</rdfs:comment>
</owl:DatatypeProperty>
<owl:DatatypeProperty rdf:about="sh:zoneName">
<rdfs:label>zoneName</rdfs:label>
<rdfs:domain rdf:resource="sh:Zone"/>
<rdfs:range rdf:resource="xsd:string"/>
<rdfs:comment>The name of a zone in the smart home.</rdfs:comment>
</owl:DatatypeProperty>
<!-- Example Individuals -->
<sh:Zone rdf:about="sh:LivingRoom">
<sh:zoneName rdf:datatype="xsd:string">Living Room</sh:zoneName>
</sh:Zone>
<sh:Device rdf:about="sh:SmartThermostat">
<sh:deviceName rdf:datatype="xsd:string">Smart Thermostat</sh:deviceName>
</sh:Device>
<rdf:Description rdf:about="sh:LivingRoom">
<sh:hasDevice rdf:resource="sh:SmartThermostat"/>
</rdf:Description>
</rdf:RDF>