From: Suman Nath (sknath@cs.cmu.edu)
Date: 02/02/03
>
> 1.Is the demodataone.xml tree actually supposed to work on the OA for PSF?
> I tried and it doesn't work. Is there a xml tree available to check OA
> query response.
>
> I want to know what's going on at OA?
Yes, "demodataone.xml" works for PSF service. It was used for the demo
whose video was shown in the class.
> 2. Any notes on the correct way to query the OA? Syntax?? I got the
> following error when I queried the example query given in IRIS paper.........
>
> command > query 128.2.70.1
> //usRegion[@id='NE']/state[@id='PA']/county[@id=['Allegheny'/city[@id='Pittsburgh']/neighborhood[@id='Oakland']/block/parkingSpace[available='yes']
> //usRegion[@id='NE']/state[@id='PA']/county[@id=['Allegheny'/city[@id='Pittsburgh']/neighborhood[@id='Oakland']/block/parkingSpace[available='yes']
> ==> / java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:486)
> at java.util.ArrayList.get(ArrayList.java:302)
> at de.fzi.XPath.LocationPath.getStep(LocationPath.java:71)
> at
> com.intel.sensors.oa.QueryAnalysis.getRoot(QueryAnalysis.java:515)
> at com.intel.sensors.oa.CommandLine.query(CommandLine.java:174)
> at
> com.intel.sensors.oa.CommandLine.processCommand(CommandLine.java:199)
> at com.intel.sensors.oa.CommandLine.callMainLoop(CommandLine.java:295)
> at com.intel.sensors.oa.CommandLine.main(CommandLine.java:317)
I think that the splitting of the schema was not correct for some reason.
Also, the query should start with a single "/", not "//".
Some students already have implemented the PT service following the PSF
service schema, and it worked for them too.
Suman
This archive was generated by hypermail 2.1.5 : 02/02/03 EST