Assuming that you are familiar with Maven, the following steps need to be followed in order to use Strabon using Eclipse:
- Install PostgreSQL from
http://www.postgresql.org/download/. At the time of this writing the latest PostgreSQL version is 9.1.
- Install PostGIS from
http://postgis.refractions.net/download/. At the time of this writing we have tested Strabon with PostGIS 1.5.3.
- Install Maven from
http://maven.apache.org/download.html . At the time of this writing the latest Maven version is 3.0.4.
- Install Eclipse from
http://www.eclipse.org/downloads/ . At the time of this writing the latest Eclipse version is 3.7.2.
- Install the m2e plugin for Eclipse from
- Install the MercurialEclipse plugin for Eclipse from http://javaforge.com/project/HGE .
- From Eclipse, go to File --> Import --> Mercurial --> Clone Existing Mercurial Repository --> Next. In the URL textarea paste the following url: http://hg.strabon.di.uoa.gr/Strabon and then press Next --> Next --> Finish. If you used the default settings, you should have a new project named StrabonMain. Right click on the project and select Configure --> Convert to Maven project. Eclipse will enable Maven dependency management for the project, download any dependencies and build the project.
Storing stRDF graphs and evaluating stSPARQL queries
You can see some examples in the classes eu.earthobservatory.runtime.postgis.StoreOp and eu.earthobservatory.runtime.postgis.QueryOp.
For loading large datasets, we provide a bulk loader that is much faster than the StoreOp operation. However, the bulk loader is still in the alpha stage, so we do not have an official release yet. However, if you are interested we can provide you with the current version of Strabon Loader. Just send us an email at the users mailing list!