ServerSideInstructions
In order to demonstrate the Urban Baby LarKC, a server should setup with some parts to be remotely invoked by the various LarKC instantiations of the workshop participants. In particular, two things are needed, a Web server and an ?AllegroGraph server.
Web Server
A generic Web server is needed, on which a file can be published and remotely accessed; any standard Tomcat or Apache server is more than enough.
The file to be made available is an RDF file; its URL should be put as configuration parameter for the ?RemoteGraphLoaderIdentifier plugin (details in the following).
There are various RDF files that can be loaded; they can all be found on the private project SVN at http://svn.larkc.eu/wp6/deliverables/M12_D6.3_Urban-Computing-environment-specification/data/AllegroGraphMilano/data/ ; the main files are named milano_main_graph.rdf and ama-xml-milano_navigli_graph.rdf.
AllegroGraph server
The whole ?AllegroGraph setup should not take longer than 10 minutes.
An ?AllegroGraph server is needed to geographically index the whole Milano road dataset. To this end, a suitable "?AllegroGraph RDFStore Free Server Edition" should be downloaded from http://www.franz.com/downloads/clp/ag_survey; please, note that the license forbids the software re-distribution. We are currently using version 3.1.1; to install it, just double-click the executable; its default configuration will setup a server listening on port 4567.
To geo-index the data, follow the following instructions:
import in your Eclipse installation the Eclipse project named ?AllegroGraphIndexer (available on the private project SVN at [ ]);
copy the folder ?AllegroGraphMilano to a suitable location (e.g. C:\);
- open the class com.franz.ag.examples.AGPaths and change the properties accordingly to the location of the folder above;
finally, run CreateGeoIndexForAMAData.java and it will index the data; to test the correct functioning of the system, you can run ?GeoSelecter.java and, if no exception is thrown, the server is up and running correctly.
NOTE: if the location is not C:\?AllegroGraphMilano\ the variable location in ?GeoSelecter.java has to be edited.
NOTE: the code should work also if you download and install a more recent version of ?AllegroGraph (it should be backward-compatible); the only precaution is to use the older version of the libraries within the code we developed.
