46 | | ---- |
47 | | |
48 | | == Web Interface == |
49 | | |
50 | | The Web Interface is depicted in the User Guide at [https://ncit-cluster.grid.pub.ro/trac/Sensei-Cookbook/wiki/RuSqr#WebInterface] . |
51 | | |
52 | | ---- |
53 | | |
54 | | == Installation == |
55 | | |
56 | | You need to download the SEDNA Database from [http://modis.ispras.ru/sedna/download.html] and dezip it. Run SEDNA : SEDNA_PATH/bin/se_gov.exe and create the sqrdb database (do it only once) : SEDNA_PATH/bin/se_cdb.exe sqrdb. Then start the sqrdb database : SEDNA_PATH/bin/se_sm.exe sqrdb. |
57 | | |
58 | | To stop the sqrdb database : SEDNA_PATH/bin/se_smsd.exe sqrdb |
59 | | |
60 | | To stop SEDNA : se_stop.exe |
61 | | |
62 | | The software can be started from the Main class in the package com.sap.research.sensei.sqr.startup . |
63 | | |
64 | | Fill in the SQR.properties file based on your own configuration: |
65 | | |
66 | | {{{ |
67 | | #SERVER CONFIGURATION |
| 46 | |
| 47 | You need to fill in the SQR_test.properties file based on your own configuration of the SQR: |
| 48 | |
| 49 | {{{ |
| 50 | #SQR CLIENT CONFIGURATION |
169 | | The subscription for information requires sending the following request HTTP POST http://hostname:port/sqr/subscribeInformation with the XML in the body: |
| 181 | The subscription for information requires sending the following request HTTP POST http://hostname:port/sqr/subscribeInformation . |
| 182 | |
| 183 | The body of the message contains the following XML for the case of a context selector: |
| 184 | |
| 185 | {{{ |
| 186 | <subscribeInformation> |
| 187 | <Selector xsi:type="ContextSelector" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 188 | <Type>Context</Type> |
| 189 | <EntityID>123456</EntityID> |
| 190 | <EntityType>http://www.ict-sensei.org/EntityOfInterest#Apartment</EntityType> |
| 191 | <Attribute>personPresent</Attribute> |
| 192 | </Selector> |
| 193 | <NotificationCondition> |
| 194 | <OnlyOnChange>true</OnlyOnChange> |
| 195 | </NotificationCondition> |
| 196 | <Callback>callback</Callback> |
| 197 | <LifeTime>10000</LifeTime> |
| 198 | </subscribeInformation> |
| 199 | }}} |
| 200 | |
| 201 | In the case of a resource selector, the XML in the body of the message would be the following: |
| 202 | |
| 203 | {{{ |
| 204 | <subscribeInformation> |
| 205 | <Selector xsi:type="ContextSelector" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 206 | </Selector> |
| 207 | <NotificationCondition> |
| 208 | <OnlyOnChange>true</OnlyOnChange> |
| 209 | </NotificationCondition> |
| 210 | <Callback>callback</Callback> |
| 211 | <LifeTime>10000</LifeTime> |
| 212 | </subscribeInformation> |
| 213 | }}} |
| 214 | |