# Rapid Prototyping of Multi-Functional Battery Energy Storage System Applications
## 4 Application Development with the EMSOnto Approach
### Templates for Application Design
\begin{table}
\begin{tabular}{l l} \hline \hline
**SWRL Rule \& DL Axiom** & **Description** \\ \hline \(\mathit{hasControl}\sqsubseteq\mathit{hasVariable}\), & The role hasControl is included within hasVariable. The range of introduced EMS-\(T\sqsubseteq\mathit{VisControl}\), \\ \hline \(\mathit{hasVariable}(x,y)\bigwedge Control(y)\rightarrow\) & An individual \(x\) hasVariable \(y\), if the variable \(y\) is of type Control. Then, it is deduced that, the individual \(x\) hasControl \(y\). \\ \hline \(T\sqsubseteq\forall IsVarLinkVar.Variable\), & The role IsVarLinkVar has as range and domain the concept Variable. The assertion IsVarLinkVar(x,y) states that a manipulation of Variable(x) would affect the value of Variable(y). \\ \hline \(\mathit{hasFctVar}\circ IsVarLinkVar\sqsubseteq hasFctVar\), & The role hasFctVar relates a ControlGoal with a Variable. The role IsFcLinkFc has as range and domain the concept ControlGoal. The constructor \(\circ\) is of type composition [27]. It allows for stating a complex role inclusion axiom. The referred axioms investigate a ControlGoal that is manipulated by a PUC. \\ \hline \hline \end{tabular}
\end{table} 
Table 4: Axioms within the EMS-\(TBox\) and SWRL rules. \begin{table}
\begin{tabular}{l l l l l l l l l} \hline \hline \multicolumn{1}{c}{HLUC} & Variable & Type & Variable Description & Value & Format & Unit & Min & Max \\ \hline VoltageCtr & prt & Priority & priority of the use case & 2 & Float & - & - & - \\ \hline VoltageCtr & SoC & UCSoC & SoC of the use case & 40 & Float & \% & 20 & 80 \\ \hline \hline \end{tabular}
\end{table} 
Table 6: Parameters of a HLUC (e.g., VoltageCtr). \begin{table}
\begin{tabular}{l l l l l l l} \hline \hline System & Application & Application & Type & HLUC & HLUC description & Type & PUC \\  & & Description & & & & & \\ \hline Sys & Battery & battery & connected & BESS & - & - & - & - \\  & & to the grid & & & & & \\ \hline Sys & Meter & model of a meter & Meter & - & - & - & - \\  & & located at PCC & & & & & \\ \hline Sys & HouseHold & pool of households & Load & - & - & - & - \\  & & that demands & & & & \\  & & active power & & & & \\ \hline Sys & EMS & control & - & VoltageCtr & battery supports & PQ & PIControl \\  & & application & & & the control of & & \\  & & that deploys & & & voltage at PCC & & \\  & & multi-services & & & point & & \\ \hline Sys & EMS & control & - & FW & battery supports & PS & K1 \\  & & application & & & the regulation of & & \\  & & that deploys & & & grid frequency & \\  & & multi-services & & & & & \\ \hline Sys & EMS & control & - & SelfC & self-consumption & MSC & K2 \\  & & application & & & is provided to a & \\  & & that deploys & & & pool of houses & \\  & & multi-services & & & & & \\ \hline \hline \end{tabular}
\end{table} 
Table 5: Structure of an EMS (e.g., UC5). \begin{table}
\begin{tabular}{l l l l l l l l} \hline \hline \multicolumn{1}{c}{PUC} & Variable & Type & variable description & Value & Format & Unit & Min & Max \\ \hline PIControl & \(fd\_V_{proc}\) & Feedback & voltage read from meter & 230 & double & volt & - & - \\ \hline PIControl & \(ct\_Qbat\) & Control & signal to control react. & 8 & double & kVar & -10 & +10 \\  & & & power of a battery & & & & \\ \hline PUC & ControlGoal & control goal description & Var. & Type & IsVarLinkWar \\ \hline PIControl & \(Cg1\) & \((V_{proc}-V_{nom})\) is regulated & \(V_{proc}\) & Manipulated & & - \\ \hline PIControl & \(Cg1\) & \((V_{proc}-V_{nom})\) is regulated & \(V_{nom}\) & Param & & - \\ \hline \hline \end{tabular}
\end{table} 
Table 7: Tabular data to implement detail of a PUC (e.g., PIControl). * _Gathering unlimited amount of data:_ None of the approaches already presented in Table 2 support control engineers with an easy collection and treatment of data. EMS-templates ease the gathering of data because of the tabular format. Moreover, filtering, comparison, ordering, exporting, data formatting, etc. are also possible in a large set of tools to process tabular format (e.g., Microsoft Excel, OpenOffice, LibreOffice Calc, etc.).