Help:Ontology Usage

From Gridpedia
Jump to: navigation, search

This section provides usage examples (i.e., instance data) of typical use-cases of our ontology. This way, we hope you may gain a better understanding of our ontology. Note, the following RDF snippets make use of the N3 RDF syntax. Further note, namespace abbreviations are used as follows:

 @prefix sg:  <http://gridpedia.org/id/> .
 @prefix sgd: <http://people.aifb.kit.edu/awa/2011/smartgrid/schema/datatypes/sg#> .
 @prefix xdt: <http://www.w3.org/2003/05/xpath-datatypes#> .

Consumption in a household

A household with a lawnmower is given. It consumes energy, which is provided by an energy provider via an electric network.

:household a sg:DataNetwork.
:household a sg:ElectricNetwork.
:household sg:powerFlow sg:EnergyProvider. 
:household sg:device :mower.
:smartHome a sg:SmartHome.
:mower sg:partOf :smartHome.

The mower has different relations to other entities and produces data while consuming energy. data_mower points to different attributes vie properties like the amount of energy consumed at what time et cetera.

:infoRelation_mower a sg:InformationRelation. 
:data_mower a sg:EnergyConsumptionData.

:mower sg:dataFlow :infoRelation_mower.
:infoRelation_mower sg:data :data_mower.
:infoRelation_mower sg:role sg:EnergyConsumer.
:infoRelation_mower sg:recipient sg:Actor. 

:data_mower sg:value "25"^^sgd:watt.
:data_mower sg:timeStampStart "2011-08-01T18:00:00"^^xsd:dateTime.
:data_mower sg:duration "PT1H"^^xdt:dayTimeDuration. 
:data_mower sg:emission "100"^^sgd:gramCO2eq. 

The example is visualized in the figure below.

An example device and its relevant data

Storage as part of a virtual storage

The household introduced in example above also owns an electric car for transportation and energy storage - it is part of a virtual actor (i.e., multiple "small" actors acting as one). The virtual actor clusters many storage devices in different households. Data flows from the battery in the electric car to the virtual storage.

:carA a sg:Vehicle. 
:carA sg:actorType sg:DistributedStorageType. 

:batteryA a sg:Battery. 
:batteryA sg:partOf :carA.

:virtualStorage a sg:VirtualActor.
:batteryA sg:partOf :virtualStorage. 
:infoRelation_batteryA a sg:InformationRelation.
:infoRelation_vStorage a sg:InformationRelation.

:batteryA sg:dataFlow :infoRelation_batteryA.	
:infoRelation_batteryA sg:data :data_batteryA.
:infoRelation_batteryA sg:role sg:ElectricStorage.
:infoRelation_batteryA sg:recipient :virtualStorage. 

:data_batteryA a sg:EnergyStorageData.
:data_batteryA sg:value "50"^^sgd:watt. 
:data_batteryA sg:duration "PT1H"^^xdt:dayTimeDuration.				
:data_batteryA sg:timeStampStart "2011-08-17T16:00:00"^^xsd:dateTime.

Another household's car battery is also part of the same virtual actor (i.e., virtualStorage), providing the same kind of information. The virtual actor collects the data and sums it up. It then sends the aggregated data to another actor, e.g. a network operator.

:carB a sg:Vehicle. 
:carB sg:actorType sg:DistributedStorageType. 

:batteryB a sg:Battery. 
:batteryB sg:partOf :carB.

:batteryB sg:partOf :virtualStorage. 
:infoRelation_batteryB a sg:InformationRelation.

:batteryB sg:dataFlow :infoRelation_batteryB.	
:infoRelation_batteryB sg:data :data_batteryB.
:infoRelation_batteryB sg:role sg:ElectricStorage.
:infoRelation_batteryB sg:recipient :virtualStorage. 

:data_batteryB a sg:EnergyStorageData.
:data_batteryB sg:value "40"^^sgd:watt. 
:data_batteryB sg:duration "PT1H"^^xdt:dayTimeDuration.				

:virtualStorage sg:dataflow :infoVirtualStorage.
:infoVirtualStorage sg:data :dataVirtual.
:infoVirtualStorage sg:role sg:ElectricStorage.
:infoVirtualStorage sg:recipient sg:Actor.

:dataVirtual a sg:EnergyStorageData.
:dataVirtual sg:value "90"^^sgd:watt.
:dataVirtual sg:duration "PT1H"^^xdt:dayTimeDuration.	
:data_batteryA sg:timeStampStart "2011-08-17T16:00:00"^^xsd:dateTime.

Conclusion of contracts at a charging station

A vehicle owner (personA) is given.

A vehicle owner as part of the customer domain

The vehicle owner stops at a charging station to charge the battery of his car. He is concluding two agreements: First, he agrees with the charging station operator (personB), committing to pay a charging fee.

Contract with the charging station operator

The second contract is agreed upon with the energy provider; the consumer agrees to pay a power fee. The concepts are analogue to the first contract.

:personA a sg:Individual. 
:personB a sg:Individual. 
:powerProvider a sg:Organization.

:personA sg:actorDomain sg:CustomerDomain.
:personA sg:actorRole sg:VehicleOwner.
:personB sg:actorDomain sg:ServiceProviderDomain.
:personB sg:actorRole sg:ChargingStationOperator.
:personB sg:actorType sg:ProfitActor.
:powerProvider sg:actorDomain sg:MarketDomain.
:powerProvider sg:actorRole sg:EnergyProvider.
:powerProvider sg:actorType sg:ProfitActor.

//First contract with the charging station operator.

:personA sg:contract :relation1.
:relation1 a sg:ContractRelation.
:relation1 sg:with :personB.
:relation1 sg:contractType :contract_charge.
:contract_charge a sg:ChargingStationLicenseAgreement.
:contract_charge sg:regulates sg:chargingFee.

// Second contract with the energy provider.

:personA sg:contract :relation2.
:relation2 a sg:ContractRelation. 
:relation2 sg:with :powerProvider.
:relation2 sg:contractType :contract_power.
:contract_power a sg:EnergySupplyContract. 
:contract_power sg:regulates sg:powerFee. 


Billing after charging

The charging station operator of example (c) issues an invoice after the charging process.

:personB sg:raiseFee :relation3.
:relation3 a sg:FeeRelation.
:relation3 sg:fromActor :personA.
:relation3 sg:fee sg:chargingFee.
:relation3 sg:fee sg:bill.