An introduction of this project is described in my publication: Semantic PlaceBrowser (http://tuannnguyen.blogspot.com/2011/04/semantic-placebrowser-understanding.html)
In this page, I just show how it works and sample source code for who want to play with.
To the best of my knowledge, currently (5/2011), there is a technical challenge for doing SPARQL in mobile devices.
No SPARQL engine that could runs on mobile phone.
To actually implement semantic browser from mobile device, I use the off-loading technique, which leaves the heavy job for the KnowledgeBaseAgent (KBA) on the server side. The MobileUserAgent only passes the query in raw text, then receives the results from the KBA.
The PBVC Ontology is described in my publication 8, which can also be seen as a knowledge base that describe the objects, environments, agents ... (https://sites.google.com/site/tuannguyenlatrobe/publications).
Ok, don't let you wait more, let's go to the demo setup:
1) File needed (see the attachment): PlaceCommMobi.jar; PlaceComm.jar; pbvcSample.pprj; pbvcSample.owl; scriptfiles.zip ; JADE/LEAP libraries
Souce code can be download at this address: http://code.google.com/p/placecomm/source/browse/
2) Start the platform with KBA Agent first: (see startKBAgent.bat)
java -Xmx1024M -cp MYCLASSPATH;...; jade.Boot -gui KBAgent:au.edu.latrobe.placecomm.agents.KnowledgeBaseAgent(%1)
The %1 is the path to the pbvcSample.pprj
Example:
c:\ startKBAgent pbvcSample.pprj
If you find this logs, it means you project is loaded successfully:
INFO: Updating underlying frames model in 1 ms
Connect KB successfully
3) Start the Mobile User Agent: startMUA.bat
"C:\WTK2.5.2_01\bin\emulator.exe" -Xdescriptor PlaceCommMobi.jad
4) Playing around with Semantic PlaceBrowser:
Follow the image, exactly as it is shown in the image: A -> B -> C -> D
At the step C, if you look back at the Jade platform, you will see a container is created (Figure E)
After click on Join community in figure D. The Tom MobileUserAgent is created. (Figure F)
After clicked Join community, you will be directed to Figure G:
Go directly to 3: Semantic PlaceBrowser, there is noting in PlaceAware, PlaceSense (they are in separate project)
Then Click on Customize SPARQL (Figure H)
At this place, you are free to send SPARQL queries to the KBA Agent at the server side.
The sample query in Figure I is list all of people in the KB.
Figure J shows the results.
I hope you guys enjoy this.
*) Notes: my machine ip address is 192.168.0.15, if the downloads are not working, just rename your computer