Changes between Version 18 and Version 19 of SQR


Ignore:
Timestamp:
Nov 5, 2010, 9:00:54 AM (14 years ago)
Author:
claudia.villalonga
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • SQR

    v18 v19  
    4444
    4545The com.sap.research.sensei.sqr.test package features test cases for each usage scenario. Please refer to the !JavaDoc of each test for details.
    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
     47You need to fill in the SQR_test.properties file based on your own configuration of the SQR:
     48
     49{{{
     50#SQR CLIENT CONFIGURATION
    6851#-----------------------
    6952
    7053#Path to the server index page
    7154SQR_DIRECTORY_BASE_URI = http://localhost:8186/sqr
     55}}}
     56
     57
     58----
     59
     60== Web Interface ==
     61
     62The Web Interface is depicted in the User Guide at [https://ncit-cluster.grid.pub.ro/trac/Sensei-Cookbook/wiki/RuSqr#WebInterface] .
     63
     64----
     65
     66== Installation ==
     67
     68You 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.
     69
     70To stop the sqrdb database : SEDNA_PATH/bin/se_smsd.exe sqrdb
     71
     72To stop SEDNA : se_stop.exe
     73
     74The software can be started from the Main class in the package com.sap.research.sensei.sqr.startup .
     75
     76Fill in the SQR.properties file based on your own configuration:
     77
     78{{{
     79#SERVER CONFIGURATION
     80#-----------------------
     81
     82#SQR Context Path
     83SQR_CONTEXT_PATH = /sqr
    7284
    7385#Server port
     
    167179
    168180=== Subscribe to Information ===
    169 The subscription for information requires sending the following request HTTP POST  http://hostname:port/sqr/subscribeInformation with the XML in the body:
     181The subscription for information requires sending the following request HTTP POST  http://hostname:port/sqr/subscribeInformation .
     182
     183The 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
     201In 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
    170215
    171216In order to list the subscriptions for information currently handled by the SQR, it is required to send the following request HTTP GET http://hostname:port/sqr/listSubscriptionInformation .
    172217
    173 And to access the information related to the subscription with ID subsName, it is required to send the following request HTTP GET http://hostname:port/sqr/listSubscriptionInformation/{subsName}
     218And to access the information related to the subscription with ID subsName, it is required to send the following request HTTP GET http://hostname:port/sqr/listSubscriptionInformation/{subsName}.
    174219
    175220