# 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#> .     #Owl ontology language
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .   #RDF schema 
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .  #XML standard datatypes
@prefix dc: <http://purl.org/dc/terms/> .  #Dublin Core Metadata Initiative 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 ssn: <https://www.w3.org/ns/ssn/>.
@prefix cc: <http://creativecommons.org/ns#>.
@prefix dul: <http://www.ontologydesignpatterns.org/ont/dul/DUL.owl#>. # The DOLCE+DnS Ultralite ontology.
@prefix liner: <https://w3id.org/liner/>.
@prefix skos: <http://www.w3.org/2004/02/skos/core#>.
@prefix qb: <http://purl.org/linked-data/cube#>.
@prefix cdt: <http://w3id.org/lindt/custom_datatypes#>.

@prefix seas: <https://w3id.org/seas/>.
@base <https://w3id.org/seas/>.

seas:ElectricityPlayerOntology a owl:Ontology , voaf:Vocabulary ;
  dc:title "seas-ElectricityPlayer ontology."@en ;
  dc:description """This ontology defines electricity players and electricity market, as systems that exchange electricity. This is an example of use:

#
# For Electricity Market
#

```
<p1> a seas:ElectricityPlayer ;
  seas:powerExchange <p1/powerexchange> .

<market> a seas.:ElectricityMarket .

<p1/licence/1> a seas:ElectricityMarketLicence ;
  seas:connects <p1> , <market> .
```


```
<p1/licence/1> seas:evaluation [
  seas:interpretedAs seas:bid-SellBid ;
  seas:temporalContext [
    a time:Interval ;
    time:hasBeginning [
      a time:Instant ;
      time:inXSDDateTime "2016-07-23T00.00.00"^^xsd:dateTime
    ] ;
    time:hasEnd [
      a time:Instant ;
      time:inXSDDateTime "2016-07-23T00.59.59"^^xsd:dateTime
    ] 
  ] ;
  seas:literalValue "200 MWh"^^cdt:ucum ;
  seas:powerPriceContext "45 €/MWh"^^cdt:ucum ;
] .


<p2> a seas:ElectricityPlayer ;
  seas:powerExchange <p2/powerexchange> .

<p2/licence/1> a seas:ElectricityMarketLicence ;
  seas:connects <p2> , <market> .

<p2/licence/1> seas:evaluation [
  seas:interpretedAs seas:bid-BuyBid ;
  seas:temporalContext [
    a time:Interval ;
    time:hasBeginning [
      a time:Instant ;
      time:inXSDDateTime "2016-07-23T00.00.00"^^xsd:dateTime
    ] ;
    time:hasEnd [
      a time:Instant ;
      time:inXSDDateTime "2016-07-23T00.59.59"^^xsd:dateTime
    ] 
  ] ;
  seas:literalValue "170 MWh"^^cdt:ucum ;
  seas:powerPriceContext "40 €/MWh"^^cdt:ucum ;
] .

```

#
# For Demand Response
#

```
<agg> a seas:Aggregator ;
```




"""@en ;
  dc:issued "2016-07-22"^^xsd:date ;
  dc:modified "2016-07-22"^^xsd:date ;
  dc:creator <http://www.maxime-lefrancois.info/me#> ;
  dc:contributor <https://w3id.org/people/gabrieljlsantos#> ;
  cc:license <https://creativecommons.org/licenses/by/4.0> ;
  vann:preferredNamespacePrefix "seas" ;
  vann:preferredNamespaceUri <https://w3id.org/seas/> ;  
  owl:versionIRI <https://w3id.org/seas/PowerSystemVocabulary-0.10> ;
  owl:versionInfo "v0.10" .

seas:ElectricityPlayer a owl:Class ;
  rdfs:label "Electricity Player"@en ;
  rdfs:comment "Electricity Player is an actor that sells or buy electricity to other players or to the electricity market."@en ;
  rdfs:subClassOf seas:Actor, seas:System ;
  vs:term_status "testing" ;
  rdfs:isDefinedBy seas:SystemOntology .

seas:ElectricityMarket a owl:Class ;
  rdfs:label "Electricity Market"@en ;
  rdfs:comment "Electricity Market is a market place where electricity is exchanged."@en ;
  rdfs:subClassOf seas:Market ;
  vs:term_status "testing" ;
  rdfs:isDefinedBy seas:SystemOntology .

seas:exchangesElectricityWith a owl:ObjectProperty ;
  rdfs:label "exchanges electricity with"@en ;
  rdfs:comment """An Electricity Player can exchange electricity directly with another electricity player. Such connections are called ElectricityBilateralContract, and are also linked to a market operator."""@en ;
  rdfs:subPropertyOf seas:connectedTo ;
  rdfs:domain seas:ElectricityPlayer ;
  rdfs:range seas:ElectricityPlayer ;
  vs:term_status "testing" ;
  rdfs:isDefinedBy seas:SystemOntology .

seas:exchangesElectricityOn a owl:ObjectProperty ;
  rdfs:label "exchanges electricity on"@en ;
  rdfs:comment "An Electricity Player can exchange electricity on an Electricity Market. Such connections are called ElectricityMarketLicence, and are also linked to the market's operator."@en ;
  rdfs:subPropertyOf seas:connectedTo ;
  rdfs:domain seas:ElectricityPlayer ;
  rdfs:range seas:ElectricityMarket ;
  vs:term_status "testing" ;
  rdfs:isDefinedBy seas:SystemOntology .

seas:ElectricityExchangeConnection a owl:Class ;
  rdfs:label "ElectricityExchangeConnection"@en ;
  rdfs:comment "A connection where energy players exchange electricity."@en ;
  rdfs:subClassOf seas:Connection ;
  vs:term_status "testing" ;
  rdfs:isDefinedBy seas:SystemOntology .

seas:BilateralContract a owl:Class ;
  rdfs:label "Bilateral Contract"@en ;
  rdfs:comment "A Bilateral Contract is a contract conducted between two Electricity Players."@en ;
  rdfs:subClassOf seas:ElectricityExchangeConnection ;
  vs:term_status "testing" ;
  rdfs:isDefinedBy seas:SystemOntology .

seas:ElectricityMarketLicence a owl:Class ;
  rdfs:label "Electricity Market Licence"@en ;
  rdfs:comment "A Electricity Market Licence is a contract conducted between a Electricity Player and the Electricity Market."@en ;
  rdfs:subClassOf seas:ElectricityExchangeConnection ;
  vs:term_status "testing" ;
  rdfs:isDefinedBy seas:SystemOntology .
