# Copyright 2016 ITEA 12004 SEAS Project.
# 
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# 
#      http://www.apache.org/licenses/LICENSE-2.0
# 
# Unless required by applicable law or agreed to in writing,
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@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 dc: <http://purl.org/dc/terms/> .
@prefix vann: <http://purl.org/vocab/vann/> .
@prefix voaf: <http://purl.org/vocommons/voaf#> .
@prefix vs: <http://www.w3.org/2003/06/sw-vocab-status/ns#> .
@prefix cc: <http://creativecommons.org/ns#>.
@prefix foaf: <http://xmlns.com/foaf/0.1/>.
@prefix saref: <http://ontology.tno.nl/saref#>. #SAREF smart building appliances ontology
@prefix qudt: <http://data.qudt.org/qudt/owl/1.0.0/qudt.owl#> .
@prefix qudt-unit: <http://data.qudt.org/qudt/owl/1.0.0/unit.owl#> . #QUDT units

@prefix seas: <https://w3id.org/seas/>.
@base <https://w3id.org/seas/>.

seas:EnergyUnitVocabulary rdf:type voaf:Vocabulary , owl:Ontology ;
  dc:title "SEAS-EnergyUnit vocabulary"@en ;
  dc:description "The Seas Energy Unit Vocabulary for the ITEA SEAS (Smart Energy Aware Systems) project."@en ;
  dc:issued "2015-10-10"^^xsd:date ;
  dc:modified "2016-07-24"^^xsd:date ;
  dc:creator <http://www.vtt.fi/JarmoKalaoja> ;
  dc:contributor <http://www.maxime-lefrancois.info/me#> ;
  dc:contributor [a foaf:Person ; foaf:name "Erkki Siira" ] ;
  cc:license <https://creativecommons.org/licenses/by/4.0> ;
  vann:preferredNamespacePrefix "seas" ;
  vann:preferredNamespaceUri <https://w3id.org/seas/> ;  
  owl:versionIRI <https://w3id.org/seas/EnergyUnitVocabulary-0.9> ;
  owl:versionInfo "v0.9" .

#SEnergy and Power, subcategories to be defined in other vocabularies
#Just some of the most common units are defined here
seas:Energy a owl:Class;
  rdfs:label "Energy"@en ;
  rdfs:seeAlso saref:Energy ;
  rdfs:comment "Energy is still also defined as qudt quantity" ;
  rdfs:isDefinedBy seas:EnergyUnitVocabulary ;   
  rdfs:subClassOf seas:Quantity,qudt:EnergyAndWork, seas:Commodity.

seas:Power a owl:Class;
  rdfs:label "Power"@en ;
  rdfs:seeAlso saref:Power ;
  rdfs:comment "Power is still also defined qudt quantity" ;
  rdfs:isDefinedBy seas:EnergyUnitVocabulary ;   
  rdfs:subClassOf seas:Quantity, qudt:Power, seas:Commodity.
  
seas:EnergyUnit a owl:Class;
  rdfs:label "EnergyUnit"@en ;
  rdfs:comment "Energy unit." ;
  rdfs:isDefinedBy seas:EnergyUnitVocabulary ;   
  rdfs:subClassOf seas:Unit,qudt:EnergyAndWorkUnit.    

seas:PowerUnit a owl:Class;
  rdfs:label "PowerUnit"@en ;
  rdfs:comment "Power unit." ;
  rdfs:isDefinedBy seas:EnergyUnitVocabulary ;   
  rdfs:subClassOf seas:Unit,qudt:PowerUnit.    
  
seas:KiloWattHour a seas:EnergyUnit;
  rdfs:label "KiloWattHour"@en ;
  rdfs:sameAs qudt-unit:KilowattHour;
  rdfs:comment "Kilowatt hour";
  rdfs:isDefinedBy seas:EnergyUnitVocabulary ;   
  rdfs:subClassOf seas:EnergyUnit.  
  
seas:KiloWatt a seas:PowerUnit;
  rdfs:label "KiloWatt"@en ;
  rdfs:sameAs qudt-unit:Kilowatt;
  rdfs:comment "Kilowatt";
  rdfs:isDefinedBy seas:EnergyUnitVocabulary ;   
  rdfs:subClassOf seas:PowerUnit.    
  
seas:Watt a seas:PowerUnit;
  rdfs:label "Watt"@en ;
  rdfs:sameAs qudt-unit:Watt;
  rdfs:comment "Watt";
  rdfs:isDefinedBy seas:EnergyUnitVocabulary ;   
  rdfs:subClassOf seas:PowerUnit.    
