Strabon

changeset 167:693894391629

merge
author George Garbis <ggarbis@di.uoa.gr>
date Fri May 18 17:53:48 2012 +0300 (2012-05-18)
parents fe2a47b9de64 b708f04e2555
children 194bf9ccb2f1
files runtime/src/test/java/eu/earthobservatory/runtime/monetdb/TemplateTests.java runtime/src/test/java/eu/earthobservatory/runtime/postgis/AggregateTests.java runtime/src/test/java/eu/earthobservatory/runtime/postgis/GeneralTests.java runtime/src/test/java/eu/earthobservatory/runtime/postgis/HavingTests.java runtime/src/test/java/eu/earthobservatory/runtime/postgis/JoinTests.java runtime/src/test/java/eu/earthobservatory/runtime/postgis/MeaningfulAggregateTests.java runtime/src/test/java/eu/earthobservatory/runtime/postgis/SPARQL11Tests.java runtime/src/test/java/eu/earthobservatory/runtime/postgis/TransformTests.java
line diff
     1.1 --- a/mod.txt	Fri May 18 15:55:07 2012 +0300
     1.2 +++ b/mod.txt	Fri May 18 17:53:48 2012 +0300
     1.3 @@ -1,15 +0,0 @@
     1.4 -M mod.txt
     1.5 -M runtime/src/test/java/eu/earthobservatory/runtime/generaldb/AggregateTests.java
     1.6 -M runtime/src/test/java/eu/earthobservatory/runtime/generaldb/GeneralTests.java
     1.7 -M runtime/src/test/java/eu/earthobservatory/runtime/generaldb/HavingTests.java
     1.8 -M runtime/src/test/java/eu/earthobservatory/runtime/postgis/AggregateTests.java
     1.9 -M runtime/src/test/java/eu/earthobservatory/runtime/postgis/GeneralTests.java
    1.10 -M runtime/src/test/java/eu/earthobservatory/runtime/postgis/HavingTests.java
    1.11 -M runtime/src/test/java/eu/earthobservatory/runtime/postgis/JoinTests.java
    1.12 -M runtime/src/test/java/eu/earthobservatory/runtime/postgis/MeaningfulAggregateTests.java
    1.13 -M runtime/src/test/java/eu/earthobservatory/runtime/postgis/TransformTests.java
    1.14 -? runtime/src/test/java/eu/earthobservatory/runtime/generaldb/SPARQL11Tests.java
    1.15 -? runtime/src/test/java/eu/earthobservatory/runtime/generaldb/SpatialTests.java
    1.16 -? runtime/src/test/java/eu/earthobservatory/runtime/postgis/SPARQL11Tests.java
    1.17 -? runtime/src/test/java/eu/earthobservatory/runtime/postgis/SpatialTests.java
    1.18 -? runtime/src/test/java/eu/earthobservatory/runtime/postgis/TemplateTests.java
     2.1 --- a/postgis/src/main/java/org/openrdf/sail/postgis/evaluation/PostGISQueryBuilder.java	Fri May 18 15:55:07 2012 +0300
     2.2 +++ b/postgis/src/main/java/org/openrdf/sail/postgis/evaluation/PostGISQueryBuilder.java	Fri May 18 17:53:48 2012 +0300
     2.3 @@ -109,7 +109,7 @@
     2.4  	 * Opting to ask for 'null' instead
     2.5  	 */
     2.6  	boolean nullLabel = false;
     2.7 -	
     2.8 +
     2.9  	public enum SpatialOperandsPostGIS { anyInteract, equals, contains, inside, left, right, above, below; }
    2.10  	public enum SpatialFunctionsPostGIS 
    2.11  	{ 	//stSPARQL++
    2.12 @@ -1715,13 +1715,7 @@
    2.13  				appendMBB((GeneralDBLabelColumn)(expr.getLeftArg()),filter);
    2.14  			}
    2.15  			filter.appendComma();
    2.16 -			//			boolean check2 = expr.getRightArg().getClass().getCanonicalName().equals("org.openrdf.sail.monetdb.algebra.GeneralDBSqlNull");
    2.17 -			//			if(check2)
    2.18 -			//			{
    2.19 -			//				this.append((GeneralDBSqlNull)expr.getRightArg(), filter);
    2.20 -			//			}
    2.21 -			//			else
    2.22 -			//			{
    2.23 +
    2.24  			if(expr.getRightArg() instanceof GeneralDBStringValue)
    2.25  			{
    2.26  				appendWKT(expr.getRightArg(),filter);
    2.27 @@ -1766,7 +1760,6 @@
    2.28  				appendMBB((GeneralDBLabelColumn)(expr.getRightArg()),filter);
    2.29  			}
    2.30  
    2.31 -			//			}
    2.32  			//3rd arg
    2.33  			filter.appendComma();
    2.34  
    2.35 @@ -1779,6 +1772,7 @@
    2.36  			filter.append("'");
    2.37  
    2.38  			filter.closeBracket();
    2.39 +
    2.40  		}
    2.41  
    2.42  		filter.closeBracket();
    2.43 @@ -2120,10 +2114,13 @@
    2.44  					filter.or();
    2.45  				}
    2.46  			}
    2.47 -			//			filter.appendFunction("ST_Relate");
    2.48 -			//			filter.openBracket();
    2.49 -			//			
    2.50 -			//			filter.closeBracket();
    2.51 +
    2.52 +			//Also need bounding box intersection query to enable the usage of the Gist R-tree index
    2.53 +			if(func != SpatialFunctionsPostGIS.SF_Disjoint && func != SpatialFunctionsPostGIS.EH_Disjoint)
    2.54 +			{
    2.55 +				filter.and();
    2.56 +				appendGeneralDBSpatialFunctionBinary(expr, filter,SpatialFunctionsPostGIS.ST_Intersects);
    2.57 +			}
    2.58  		}
    2.59  		filter.closeBracket();
    2.60  			}
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/printNTriples	Fri May 18 17:53:48 2012 +0300
     3.3 @@ -0,0 +1,13 @@
     3.4 +#! /bin/bash
     3.5 +
     3.6 +input=$1
     3.7 +
     3.8 +if [ "$input" == "" ]; then
     3.9 +	echo "give database name"
    3.10 +	exit -1
    3.11 +fi
    3.12 +
    3.13 +fgrep '[s=' $input \
    3.14 +| sed 's/\[s=\(.*\);o=\(.*\);p=\(.*\)\]/\1 \3 \2;/g' \
    3.15 +| sed 's/\(http:\/\/[^ >]*\)\([ ;]\)/<\1>\2/g' \
    3.16 +| sed 's/;/./g'
     4.1 --- a/runtime/src/test/java/eu/earthobservatory/runtime/generaldb/SpatialTests.java	Fri May 18 15:55:07 2012 +0300
     4.2 +++ b/runtime/src/test/java/eu/earthobservatory/runtime/generaldb/SpatialTests.java	Fri May 18 17:53:48 2012 +0300
     4.3 @@ -19,6 +19,14 @@
     4.4  
     4.5  public class SpatialTests {
     4.6  	public static Strabon strabon;
     4.7 +	
     4.8 +	protected static String jdbcDriver= "org.postgresql.Driver";  
     4.9 +	protected static String serverName = "localhost";
    4.10 +	protected static String username = "postgres";
    4.11 +	protected static String password = "postgres";
    4.12 +	protected static Integer port = 5432;
    4.13 +	protected static java.sql.Connection conn = null;
    4.14 +	protected static String databaseName = null; 
    4.15  
    4.16  	public String 	STRDF_NS = "http://strdf.di.uoa.gr/ontology#",
    4.17  					EX_NS = "http://example.org/",
     5.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.2 +++ b/runtime/src/test/java/eu/earthobservatory/runtime/monetdb/AggregateTests.java	Fri May 18 17:53:48 2012 +0300
     5.3 @@ -0,0 +1,100 @@
     5.4 +package eu.earthobservatory.runtime.monetdb;
     5.5 +
     5.6 +import java.io.IOException;
     5.7 +import java.io.InputStream;
     5.8 +import java.sql.DriverManager;
     5.9 +import java.sql.ResultSet;
    5.10 +import java.sql.SQLException;
    5.11 +import java.sql.Statement;
    5.12 +import java.util.Properties;
    5.13 +
    5.14 +import org.junit.AfterClass;
    5.15 +import org.junit.BeforeClass;
    5.16 +import org.openrdf.repository.RepositoryException;
    5.17 +import org.openrdf.rio.RDFHandlerException;
    5.18 +import org.openrdf.rio.RDFParseException;
    5.19 +
    5.20 +import eu.earthobservatory.runtime.generaldb.InvalidDatasetFormatFault;
    5.21 +
    5.22 +/**
    5.23 + * A set of simple tests on SPARQL query functionality 
    5.24 + * 
    5.25 + * @author George Garbis
    5.26 + */
    5.27 +
    5.28 +public class AggregateTests extends eu.earthobservatory.runtime.generaldb.AggregateTests {
    5.29 +
    5.30 +	@BeforeClass
    5.31 +	public static void beforeClass() throws SQLException, ClassNotFoundException, RDFParseException, RepositoryException, RDFHandlerException, IOException, InvalidDatasetFormatFault
    5.32 +	{
    5.33 +		// Read properties
    5.34 +		Properties properties = new Properties();
    5.35 +		InputStream propertiesStream =  TemplateTests.class.getResourceAsStream("/databases.properties");
    5.36 +		properties.load(propertiesStream);
    5.37 +
    5.38 +		serverName = properties.getProperty("monetdb.serverName");
    5.39 +		databaseName = properties.getProperty("monetdb.databaseName");
    5.40 +		port = Integer.parseInt(properties.getProperty("monetdb.port"));
    5.41 +		username = properties.getProperty("monetdb.username");
    5.42 +		password = properties.getProperty("monetdb.password");
    5.43 +				
    5.44 +		// Connect to database
    5.45 +		Class.forName("nl.cwi.monetdb.jdbc.MonetDriver");
    5.46 +		String url = "jdbc:monetdb://"+serverName+":"+port+"/"+databaseName;
    5.47 +		conn = DriverManager.getConnection(url, username, password);
    5.48 +				
    5.49 +//		// Clean database
    5.50 +		Statement stmt = conn.createStatement();
    5.51 +		ResultSet results = stmt.executeQuery("SELECT name FROM tables WHERE system=false AND name <> 'locked'");
    5.52 +		while (results.next()) {
    5.53 +			String table_name = results.getString("name");
    5.54 +			Statement stmt2 = conn.createStatement();
    5.55 +			stmt2.executeUpdate("DROP TABLE \""+table_name+"\"");
    5.56 +			stmt2.close();
    5.57 +		}
    5.58 +		stmt.close();
    5.59 +		
    5.60 +		strabon = new Strabon(databaseName, username, password, port, serverName, true);
    5.61 +		
    5.62 +		loadTestData();
    5.63 +	}
    5.64 +	
    5.65 +	@AfterClass
    5.66 +	public static void afterClass() throws SQLException
    5.67 +	{
    5.68 +		strabon.close();
    5.69 +	}
    5.70 +	
    5.71 +//	/**
    5.72 +//	 * @throws java.lang.Exception
    5.73 +//	 */
    5.74 +//	@Before
    5.75 +//	public void before()
    5.76 +//		throws Exception
    5.77 +//	{
    5.78 +//		
    5.79 +//	}
    5.80 +//
    5.81 +//	/**
    5.82 +//	 * @throws java.lang.Exception
    5.83 +//	 */
    5.84 +//	@After
    5.85 +//	public void after()
    5.86 +//		throws Exception
    5.87 +//	{
    5.88 +//		// Clean database
    5.89 +//		Statement stmt = conn.createStatement();
    5.90 +//		ResultSet results = stmt.executeQuery("SELECT table_name FROM information_schema.tables WHERE " +
    5.91 +//						"table_schema='public' and table_name <> 'spatial_ref_sys' " +
    5.92 +//						"and table_name <> 'geometry_columns' and " +
    5.93 +//						"table_name <> 'geography_columns' and table_name <> 'locked'");
    5.94 +//		while (results.next()) {
    5.95 +//			String table_name = results.getString("table_name");
    5.96 +//			Statement stmt2 = conn.createStatement();
    5.97 +//			stmt2.executeUpdate("DROP TABLE \""+table_name+"\"");
    5.98 +//			stmt2.close();
    5.99 +//		}
   5.100 +//			
   5.101 +//		stmt.close();
   5.102 +//	}
   5.103 +}
     6.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     6.2 +++ b/runtime/src/test/java/eu/earthobservatory/runtime/monetdb/GeneralTests.java	Fri May 18 17:53:48 2012 +0300
     6.3 @@ -0,0 +1,71 @@
     6.4 +package eu.earthobservatory.runtime.monetdb;
     6.5 +
     6.6 +import java.io.IOException;
     6.7 +import java.io.InputStream;
     6.8 +import java.sql.DriverManager;
     6.9 +import java.sql.ResultSet;
    6.10 +import java.sql.SQLException;
    6.11 +import java.sql.Statement;
    6.12 +import java.util.Properties;
    6.13 +
    6.14 +import org.junit.AfterClass;
    6.15 +import org.junit.BeforeClass;
    6.16 +import org.openrdf.repository.RepositoryException;
    6.17 +import org.openrdf.rio.RDFHandlerException;
    6.18 +import org.openrdf.rio.RDFParseException;
    6.19 +
    6.20 +import eu.earthobservatory.runtime.generaldb.InvalidDatasetFormatFault;
    6.21 +
    6.22 +/**
    6.23 + * A set of simple tests on SPARQL query functionality 
    6.24 + * 
    6.25 + * @author George Garbis
    6.26 + */
    6.27 +
    6.28 +public class GeneralTests extends eu.earthobservatory.runtime.generaldb.GeneralTests {
    6.29 +	
    6.30 +	@BeforeClass
    6.31 +	public static void beforeClass() throws SQLException, ClassNotFoundException, RDFParseException, RepositoryException, RDFHandlerException, IOException, InvalidDatasetFormatFault
    6.32 +	{
    6.33 +	 TemplateTests.beforeClass();
    6.34 +	}
    6.35 +	
    6.36 +	@AfterClass
    6.37 +	public static void afterClass() throws SQLException
    6.38 +	{
    6.39 +		TemplateTests.afterClass();
    6.40 +	}
    6.41 +	
    6.42 +//	/**
    6.43 +//	 * @throws java.lang.Exception
    6.44 +//	 */
    6.45 +//	@Before
    6.46 +//	public void before()
    6.47 +//		throws Exception
    6.48 +//	{
    6.49 +//		
    6.50 +//	}
    6.51 +//
    6.52 +//	/**
    6.53 +//	 * @throws java.lang.Exception
    6.54 +//	 */
    6.55 +//	@After
    6.56 +//	public void after()
    6.57 +//		throws Exception
    6.58 +//	{
    6.59 +//		// Clean database
    6.60 +//		Statement stmt = conn.createStatement();
    6.61 +//		ResultSet results = stmt.executeQuery("SELECT table_name FROM information_schema.tables WHERE " +
    6.62 +//						"table_schema='public' and table_name <> 'spatial_ref_sys' " +
    6.63 +//						"and table_name <> 'geometry_columns' and " +
    6.64 +//						"table_name <> 'geography_columns' and table_name <> 'locked'");
    6.65 +//		while (results.next()) {
    6.66 +//			String table_name = results.getString("table_name");
    6.67 +//			Statement stmt2 = conn.createStatement();
    6.68 +//			stmt2.executeUpdate("DROP TABLE \""+table_name+"\"");
    6.69 +//			stmt2.close();
    6.70 +//		}
    6.71 +//			
    6.72 +//		stmt.close();
    6.73 +//	}
    6.74 +}
     7.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     7.2 +++ b/runtime/src/test/java/eu/earthobservatory/runtime/monetdb/HavingTests.java	Fri May 18 17:53:48 2012 +0300
     7.3 @@ -0,0 +1,71 @@
     7.4 +package eu.earthobservatory.runtime.monetdb;
     7.5 +
     7.6 +import java.io.IOException;
     7.7 +import java.io.InputStream;
     7.8 +import java.sql.DriverManager;
     7.9 +import java.sql.ResultSet;
    7.10 +import java.sql.SQLException;
    7.11 +import java.sql.Statement;
    7.12 +import java.util.Properties;
    7.13 +
    7.14 +import org.junit.AfterClass;
    7.15 +import org.junit.BeforeClass;
    7.16 +import org.openrdf.repository.RepositoryException;
    7.17 +import org.openrdf.rio.RDFHandlerException;
    7.18 +import org.openrdf.rio.RDFParseException;
    7.19 +
    7.20 +import eu.earthobservatory.runtime.generaldb.InvalidDatasetFormatFault;
    7.21 +
    7.22 +/**
    7.23 + * A set of simple tests on SPARQL query functionality 
    7.24 + * 
    7.25 + * @author George Garbis
    7.26 + */
    7.27 +
    7.28 +public class HavingTests extends eu.earthobservatory.runtime.generaldb.HavingTests {
    7.29 +	
    7.30 +	@BeforeClass
    7.31 +	public static void beforeClass() throws SQLException, ClassNotFoundException, RDFParseException, RepositoryException, RDFHandlerException, IOException, InvalidDatasetFormatFault
    7.32 +	{
    7.33 +	 TemplateTests.beforeClass();
    7.34 +	}
    7.35 +	
    7.36 +	@AfterClass
    7.37 +	public static void afterClass() throws SQLException
    7.38 +	{
    7.39 +		TemplateTests.afterClass();
    7.40 +	}
    7.41 +	
    7.42 +//	/**
    7.43 +//	 * @throws java.lang.Exception
    7.44 +//	 */
    7.45 +//	@Before
    7.46 +//	public void before()
    7.47 +//		throws Exception
    7.48 +//	{
    7.49 +//		
    7.50 +//	}
    7.51 +//
    7.52 +//	/**
    7.53 +//	 * @throws java.lang.Exception
    7.54 +//	 */
    7.55 +//	@After
    7.56 +//	public void after()
    7.57 +//		throws Exception
    7.58 +//	{
    7.59 +//		// Clean database
    7.60 +//		Statement stmt = conn.createStatement();
    7.61 +//		ResultSet results = stmt.executeQuery("SELECT table_name FROM information_schema.tables WHERE " +
    7.62 +//						"table_schema='public' and table_name <> 'spatial_ref_sys' " +
    7.63 +//						"and table_name <> 'geometry_columns' and " +
    7.64 +//						"table_name <> 'geography_columns' and table_name <> 'locked'");
    7.65 +//		while (results.next()) {
    7.66 +//			String table_name = results.getString("table_name");
    7.67 +//			Statement stmt2 = conn.createStatement();
    7.68 +//			stmt2.executeUpdate("DROP TABLE \""+table_name+"\"");
    7.69 +//			stmt2.close();
    7.70 +//		}
    7.71 +//			
    7.72 +//		stmt.close();
    7.73 +//	}
    7.74 +}
     8.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     8.2 +++ b/runtime/src/test/java/eu/earthobservatory/runtime/monetdb/JoinTests.java	Fri May 18 17:53:48 2012 +0300
     8.3 @@ -0,0 +1,100 @@
     8.4 +package eu.earthobservatory.runtime.monetdb;
     8.5 +
     8.6 +import java.io.IOException;
     8.7 +import java.io.InputStream;
     8.8 +import java.sql.DriverManager;
     8.9 +import java.sql.ResultSet;
    8.10 +import java.sql.SQLException;
    8.11 +import java.sql.Statement;
    8.12 +import java.util.Properties;
    8.13 +
    8.14 +import org.junit.AfterClass;
    8.15 +import org.junit.BeforeClass;
    8.16 +import org.openrdf.repository.RepositoryException;
    8.17 +import org.openrdf.rio.RDFHandlerException;
    8.18 +import org.openrdf.rio.RDFParseException;
    8.19 +
    8.20 +import eu.earthobservatory.runtime.generaldb.InvalidDatasetFormatFault;
    8.21 +
    8.22 +/**
    8.23 + * A set of simple tests on SPARQL query functionality 
    8.24 + * 
    8.25 + * @author George Garbis
    8.26 + */
    8.27 +
    8.28 +public class JoinTests extends eu.earthobservatory.runtime.generaldb.JoinTests {
    8.29 +
    8.30 +	@BeforeClass
    8.31 +	public static void beforeClass() throws SQLException, ClassNotFoundException, RDFParseException, RepositoryException, RDFHandlerException, IOException, InvalidDatasetFormatFault
    8.32 +	{
    8.33 +		// Read properties
    8.34 +		Properties properties = new Properties();
    8.35 +		InputStream propertiesStream =  TemplateTests.class.getResourceAsStream("/databases.properties");
    8.36 +		properties.load(propertiesStream);
    8.37 +
    8.38 +		serverName = properties.getProperty("monetdb.serverName");
    8.39 +		databaseName = properties.getProperty("monetdb.databaseName");
    8.40 +		port = Integer.parseInt(properties.getProperty("monetdb.port"));
    8.41 +		username = properties.getProperty("monetdb.username");
    8.42 +		password = properties.getProperty("monetdb.password");
    8.43 +				
    8.44 +		// Connect to database
    8.45 +		Class.forName("nl.cwi.monetdb.jdbc.MonetDriver");
    8.46 +		String url = "jdbc:monetdb://"+serverName+":"+port+"/"+databaseName;
    8.47 +		conn = DriverManager.getConnection(url, username, password);
    8.48 +				
    8.49 +//		// Clean database
    8.50 +		Statement stmt = conn.createStatement();
    8.51 +		ResultSet results = stmt.executeQuery("SELECT name FROM tables WHERE system=false AND name <> 'locked'");
    8.52 +		while (results.next()) {
    8.53 +			String table_name = results.getString("name");
    8.54 +			Statement stmt2 = conn.createStatement();
    8.55 +			stmt2.executeUpdate("DROP TABLE \""+table_name+"\"");
    8.56 +			stmt2.close();
    8.57 +		}
    8.58 +		stmt.close();
    8.59 +		
    8.60 +		strabon = new Strabon(databaseName, username, password, port, serverName, true);
    8.61 +		
    8.62 +		loadTestData();
    8.63 +	}
    8.64 +	
    8.65 +	@AfterClass
    8.66 +	public static void afterClass() throws SQLException
    8.67 +	{
    8.68 +		strabon.close();
    8.69 +	}
    8.70 +	
    8.71 +//	/**
    8.72 +//	 * @throws java.lang.Exception
    8.73 +//	 */
    8.74 +//	@Before
    8.75 +//	public void before()
    8.76 +//		throws Exception
    8.77 +//	{
    8.78 +//		
    8.79 +//	}
    8.80 +//
    8.81 +//	/**
    8.82 +//	 * @throws java.lang.Exception
    8.83 +//	 */
    8.84 +//	@After
    8.85 +//	public void after()
    8.86 +//		throws Exception
    8.87 +//	{
    8.88 +//		// Clean database
    8.89 +//		Statement stmt = conn.createStatement();
    8.90 +//		ResultSet results = stmt.executeQuery("SELECT table_name FROM information_schema.tables WHERE " +
    8.91 +//						"table_schema='public' and table_name <> 'spatial_ref_sys' " +
    8.92 +//						"and table_name <> 'geometry_columns' and " +
    8.93 +//						"table_name <> 'geography_columns' and table_name <> 'locked'");
    8.94 +//		while (results.next()) {
    8.95 +//			String table_name = results.getString("table_name");
    8.96 +//			Statement stmt2 = conn.createStatement();
    8.97 +//			stmt2.executeUpdate("DROP TABLE \""+table_name+"\"");
    8.98 +//			stmt2.close();
    8.99 +//		}
   8.100 +//			
   8.101 +//		stmt.close();
   8.102 +//	}
   8.103 +}
     9.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     9.2 +++ b/runtime/src/test/java/eu/earthobservatory/runtime/monetdb/MeaningfulAggregateTests.java	Fri May 18 17:53:48 2012 +0300
     9.3 @@ -0,0 +1,71 @@
     9.4 +package eu.earthobservatory.runtime.monetdb;
     9.5 +
     9.6 +import java.io.IOException;
     9.7 +import java.io.InputStream;
     9.8 +import java.sql.DriverManager;
     9.9 +import java.sql.ResultSet;
    9.10 +import java.sql.SQLException;
    9.11 +import java.sql.Statement;
    9.12 +import java.util.Properties;
    9.13 +
    9.14 +import org.junit.AfterClass;
    9.15 +import org.junit.BeforeClass;
    9.16 +import org.openrdf.repository.RepositoryException;
    9.17 +import org.openrdf.rio.RDFHandlerException;
    9.18 +import org.openrdf.rio.RDFParseException;
    9.19 +
    9.20 +import eu.earthobservatory.runtime.generaldb.InvalidDatasetFormatFault;
    9.21 +
    9.22 +/**
    9.23 + * A set of simple tests on SPARQL query functionality 
    9.24 + * 
    9.25 + * @author George Garbis
    9.26 + */
    9.27 +
    9.28 +public class MeaningfulAggregateTests extends eu.earthobservatory.runtime.generaldb.SimpleTests {
    9.29 +	
    9.30 +	@BeforeClass
    9.31 +	public static void beforeClass() throws SQLException, ClassNotFoundException, RDFParseException, RepositoryException, RDFHandlerException, IOException, InvalidDatasetFormatFault
    9.32 +	{
    9.33 +	 TemplateTests.beforeClass();
    9.34 +	}
    9.35 +	
    9.36 +	@AfterClass
    9.37 +	public static void afterClass() throws SQLException
    9.38 +	{
    9.39 +		TemplateTests.afterClass();
    9.40 +	}
    9.41 +	
    9.42 +//	/**
    9.43 +//	 * @throws java.lang.Exception
    9.44 +//	 */
    9.45 +//	@Before
    9.46 +//	public void before()
    9.47 +//		throws Exception
    9.48 +//	{
    9.49 +//		
    9.50 +//	}
    9.51 +//
    9.52 +//	/**
    9.53 +//	 * @throws java.lang.Exception
    9.54 +//	 */
    9.55 +//	@After
    9.56 +//	public void after()
    9.57 +//		throws Exception
    9.58 +//	{
    9.59 +//		// Clean database
    9.60 +//		Statement stmt = conn.createStatement();
    9.61 +//		ResultSet results = stmt.executeQuery("SELECT table_name FROM information_schema.tables WHERE " +
    9.62 +//						"table_schema='public' and table_name <> 'spatial_ref_sys' " +
    9.63 +//						"and table_name <> 'geometry_columns' and " +
    9.64 +//						"table_name <> 'geography_columns' and table_name <> 'locked'");
    9.65 +//		while (results.next()) {
    9.66 +//			String table_name = results.getString("table_name");
    9.67 +//			Statement stmt2 = conn.createStatement();
    9.68 +//			stmt2.executeUpdate("DROP TABLE \""+table_name+"\"");
    9.69 +//			stmt2.close();
    9.70 +//		}
    9.71 +//			
    9.72 +//		stmt.close();
    9.73 +//	}
    9.74 +}
    10.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    10.2 +++ b/runtime/src/test/java/eu/earthobservatory/runtime/monetdb/SpatialTests.java	Fri May 18 17:53:48 2012 +0300
    10.3 @@ -0,0 +1,71 @@
    10.4 +package eu.earthobservatory.runtime.monetdb;
    10.5 +
    10.6 +import java.io.IOException;
    10.7 +import java.io.InputStream;
    10.8 +import java.sql.DriverManager;
    10.9 +import java.sql.ResultSet;
   10.10 +import java.sql.SQLException;
   10.11 +import java.sql.Statement;
   10.12 +import java.util.Properties;
   10.13 +
   10.14 +import org.junit.AfterClass;
   10.15 +import org.junit.BeforeClass;
   10.16 +import org.openrdf.repository.RepositoryException;
   10.17 +import org.openrdf.rio.RDFHandlerException;
   10.18 +import org.openrdf.rio.RDFParseException;
   10.19 +
   10.20 +import eu.earthobservatory.runtime.generaldb.InvalidDatasetFormatFault;
   10.21 +
   10.22 +/**
   10.23 + * A set of simple tests on SPARQL query functionality 
   10.24 + * 
   10.25 + * @author George Garbis
   10.26 + */
   10.27 +
   10.28 +public class SpatialTests extends eu.earthobservatory.runtime.generaldb.SpatialTests {
   10.29 +	
   10.30 +	@BeforeClass
   10.31 +	public static void beforeClass() throws SQLException, ClassNotFoundException, RDFParseException, RepositoryException, RDFHandlerException, IOException, InvalidDatasetFormatFault
   10.32 +	{
   10.33 +	 TemplateTests.beforeClass();
   10.34 +	}
   10.35 +	
   10.36 +	@AfterClass
   10.37 +	public static void afterClass() throws SQLException
   10.38 +	{
   10.39 +		TemplateTests.afterClass();
   10.40 +	}
   10.41 +	
   10.42 +//	/**
   10.43 +//	 * @throws java.lang.Exception
   10.44 +//	 */
   10.45 +//	@Before
   10.46 +//	public void before()
   10.47 +//		throws Exception
   10.48 +//	{
   10.49 +//		
   10.50 +//	}
   10.51 +//
   10.52 +//	/**
   10.53 +//	 * @throws java.lang.Exception
   10.54 +//	 */
   10.55 +//	@After
   10.56 +//	public void after()
   10.57 +//		throws Exception
   10.58 +//	{
   10.59 +//		// Clean database
   10.60 +//		Statement stmt = conn.createStatement();
   10.61 +//		ResultSet results = stmt.executeQuery("SELECT table_name FROM information_schema.tables WHERE " +
   10.62 +//						"table_schema='public' and table_name <> 'spatial_ref_sys' " +
   10.63 +//						"and table_name <> 'geometry_columns' and " +
   10.64 +//						"table_name <> 'geography_columns' and table_name <> 'locked'");
   10.65 +//		while (results.next()) {
   10.66 +//			String table_name = results.getString("table_name");
   10.67 +//			Statement stmt2 = conn.createStatement();
   10.68 +//			stmt2.executeUpdate("DROP TABLE \""+table_name+"\"");
   10.69 +//			stmt2.close();
   10.70 +//		}
   10.71 +//			
   10.72 +//		stmt.close();
   10.73 +//	}
   10.74 +}
    11.1 --- a/runtime/src/test/java/eu/earthobservatory/runtime/monetdb/TemplateTests.java	Fri May 18 15:55:07 2012 +0300
    11.2 +++ b/runtime/src/test/java/eu/earthobservatory/runtime/monetdb/TemplateTests.java	Fri May 18 17:53:48 2012 +0300
    11.3 @@ -2,7 +2,6 @@
    11.4  
    11.5  import java.io.IOException;
    11.6  import java.io.InputStream;
    11.7 -import java.net.URL;
    11.8  import java.sql.DriverManager;
    11.9  import java.sql.ResultSet;
   11.10  import java.sql.SQLException;
   11.11 @@ -16,8 +15,6 @@
   11.12  import org.openrdf.rio.RDFParseException;
   11.13  
   11.14  import eu.earthobservatory.runtime.generaldb.InvalidDatasetFormatFault;
   11.15 -import eu.earthobservatory.runtime.generaldb.SimpleTests;
   11.16 -import eu.earthobservatory.runtime.postgis.Strabon;
   11.17  
   11.18  /**
   11.19   * A set of simple tests on SPARQL query functionality 
   11.20 @@ -25,25 +22,14 @@
   11.21   * @author George Garbis
   11.22   */
   11.23  
   11.24 -public class TemplateTests {
   11.25 -	
   11.26 -	public static Strabon strabon;
   11.27 +public class TemplateTests extends eu.earthobservatory.runtime.generaldb.SimpleTests {
   11.28  
   11.29 -	public static java.sql.Connection conn = null;
   11.30 -	public static String databaseName = null; 
   11.31 -
   11.32 -	public static String jdbcDriver = null;
   11.33 -	public static String serverName = null;
   11.34 -	public static String username = null;
   11.35 -	public static String password = null;
   11.36 -	public static Integer port = null;
   11.37 -	
   11.38  	@BeforeClass
   11.39 -	public static void beforeClass(String inputFile) throws SQLException, ClassNotFoundException, RDFParseException, RepositoryException, RDFHandlerException, IOException, InvalidDatasetFormatFault
   11.40 +	public static void beforeClass() throws SQLException, ClassNotFoundException, RDFParseException, RepositoryException, RDFHandlerException, IOException, InvalidDatasetFormatFault
   11.41  	{
   11.42  		// Read properties
   11.43  		Properties properties = new Properties();
   11.44 -		InputStream propertiesStream =  SimpleTests.class.getResourceAsStream("/databases.properties");
   11.45 +		InputStream propertiesStream =  TemplateTests.class.getResourceAsStream("/databases.properties");
   11.46  		properties.load(propertiesStream);
   11.47  
   11.48  		serverName = properties.getProperty("monetdb.serverName");
   11.49 @@ -70,7 +56,7 @@
   11.50  		
   11.51  		strabon = new Strabon(databaseName, username, password, port, serverName, true);
   11.52  		
   11.53 -		loadTestData(inputFile);
   11.54 +		loadTestData();
   11.55  	}
   11.56  	
   11.57  	@AfterClass
   11.58 @@ -79,13 +65,6 @@
   11.59  		strabon.close();
   11.60  	}
   11.61  	
   11.62 -	protected static void loadTestData(String inputFile)
   11.63 -		throws RDFParseException, RepositoryException, IOException, RDFHandlerException, InvalidDatasetFormatFault
   11.64 -	{
   11.65 -		URL src = SimpleTests.class.getResource("/simple-tests.ntriples");
   11.66 -		strabon.storeInRepo(src, "NTRIPLES");
   11.67 -	}
   11.68 -	
   11.69  //	/**
   11.70  //	 * @throws java.lang.Exception
   11.71  //	 */
   11.72 @@ -119,3 +98,24 @@
   11.73  //		stmt.close();
   11.74  //	}
   11.75  }
   11.76 +//	 */
   11.77 +//	@After
   11.78 +//	public void after()
   11.79 +//		throws Exception
   11.80 +//	{
   11.81 +//		// Clean database
   11.82 +//		Statement stmt = conn.createStatement();
   11.83 +//		ResultSet results = stmt.executeQuery("SELECT table_name FROM information_schema.tables WHERE " +
   11.84 +//						"table_schema='public' and table_name <> 'spatial_ref_sys' " +
   11.85 +//						"and table_name <> 'geometry_columns' and " +
   11.86 +//						"table_name <> 'geography_columns' and table_name <> 'locked'");
   11.87 +//		while (results.next()) {
   11.88 +//			String table_name = results.getString("table_name");
   11.89 +//			Statement stmt2 = conn.createStatement();
   11.90 +//			stmt2.executeUpdate("DROP TABLE \""+table_name+"\"");
   11.91 +//			stmt2.close();
   11.92 +//		}
   11.93 +//			
   11.94 +//		stmt.close();
   11.95 +//	}
   11.96 +}
    12.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    12.2 +++ b/runtime/src/test/java/eu/earthobservatory/runtime/monetdb/TransformTests.java	Fri May 18 17:53:48 2012 +0300
    12.3 @@ -0,0 +1,71 @@
    12.4 +package eu.earthobservatory.runtime.monetdb;
    12.5 +
    12.6 +import java.io.IOException;
    12.7 +import java.io.InputStream;
    12.8 +import java.sql.DriverManager;
    12.9 +import java.sql.ResultSet;
   12.10 +import java.sql.SQLException;
   12.11 +import java.sql.Statement;
   12.12 +import java.util.Properties;
   12.13 +
   12.14 +import org.junit.AfterClass;
   12.15 +import org.junit.BeforeClass;
   12.16 +import org.openrdf.repository.RepositoryException;
   12.17 +import org.openrdf.rio.RDFHandlerException;
   12.18 +import org.openrdf.rio.RDFParseException;
   12.19 +
   12.20 +import eu.earthobservatory.runtime.generaldb.InvalidDatasetFormatFault;
   12.21 +
   12.22 +/**
   12.23 + * A set of simple tests on SPARQL query functionality 
   12.24 + * 
   12.25 + * @author George Garbis
   12.26 + */
   12.27 +
   12.28 +public class TransformTests extends eu.earthobservatory.runtime.generaldb.TransformTests {
   12.29 +	
   12.30 +	@BeforeClass
   12.31 +	public static void beforeClass() throws SQLException, ClassNotFoundException, RDFParseException, RepositoryException, RDFHandlerException, IOException, InvalidDatasetFormatFault
   12.32 +	{
   12.33 +	 TemplateTests.beforeClass();
   12.34 +	}
   12.35 +	
   12.36 +	@AfterClass
   12.37 +	public static void afterClass() throws SQLException
   12.38 +	{
   12.39 +		TemplateTests.afterClass();
   12.40 +	}
   12.41 +	
   12.42 +//	/**
   12.43 +//	 * @throws java.lang.Exception
   12.44 +//	 */
   12.45 +//	@Before
   12.46 +//	public void before()
   12.47 +//		throws Exception
   12.48 +//	{
   12.49 +//		
   12.50 +//	}
   12.51 +//
   12.52 +//	/**
   12.53 +//	 * @throws java.lang.Exception
   12.54 +//	 */
   12.55 +//	@After
   12.56 +//	public void after()
   12.57 +//		throws Exception
   12.58 +//	{
   12.59 +//		// Clean database
   12.60 +//		Statement stmt = conn.createStatement();
   12.61 +//		ResultSet results = stmt.executeQuery("SELECT table_name FROM information_schema.tables WHERE " +
   12.62 +//						"table_schema='public' and table_name <> 'spatial_ref_sys' " +
   12.63 +//						"and table_name <> 'geometry_columns' and " +
   12.64 +//						"table_name <> 'geography_columns' and table_name <> 'locked'");
   12.65 +//		while (results.next()) {
   12.66 +//			String table_name = results.getString("table_name");
   12.67 +//			Statement stmt2 = conn.createStatement();
   12.68 +//			stmt2.executeUpdate("DROP TABLE \""+table_name+"\"");
   12.69 +//			stmt2.close();
   12.70 +//		}
   12.71 +//			
   12.72 +//		stmt.close();
   12.73 +//	}
   12.74 +}
    13.1 --- a/runtime/src/test/java/eu/earthobservatory/runtime/postgis/SpatialTests.java	Fri May 18 15:55:07 2012 +0300
    13.2 +++ b/runtime/src/test/java/eu/earthobservatory/runtime/postgis/SpatialTests.java	Fri May 18 17:53:48 2012 +0300
    13.3 @@ -1,113 +1,71 @@
    13.4  package eu.earthobservatory.runtime.postgis;
    13.5  
    13.6 -import static org.junit.Assert.assertEquals;
    13.7 -import static org.junit.Assert.assertTrue;
    13.8 +import java.io.IOException;
    13.9 +import java.io.InputStream;
   13.10 +import java.sql.DriverManager;
   13.11 +import java.sql.ResultSet;
   13.12 +import java.sql.SQLException;
   13.13 +import java.sql.Statement;
   13.14 +import java.util.Properties;
   13.15  
   13.16 -import java.io.IOException;
   13.17 -import java.sql.SQLException;
   13.18 -import java.util.ArrayList;
   13.19 +import org.junit.AfterClass;
   13.20 +import org.junit.BeforeClass;
   13.21 +import org.openrdf.repository.RepositoryException;
   13.22 +import org.openrdf.rio.RDFHandlerException;
   13.23 +import org.openrdf.rio.RDFParseException;
   13.24  
   13.25 -import org.junit.BeforeClass;
   13.26 -import org.junit.Test;
   13.27 -import org.openrdf.query.MalformedQueryException;
   13.28 -import org.openrdf.query.QueryEvaluationException;
   13.29 -import org.openrdf.query.TupleQueryResultHandlerException;
   13.30 +import eu.earthobservatory.runtime.generaldb.InvalidDatasetFormatFault;
   13.31  
   13.32 -import eu.earthobservatory.runtime.postgis.Strabon;
   13.33 +/**
   13.34 + * A set of simple tests on SPARQL query functionality 
   13.35 + * 
   13.36 + * @author George Garbis
   13.37 + */
   13.38  
   13.39  public class SpatialTests extends eu.earthobservatory.runtime.generaldb.SpatialTests {
   13.40 -
   13.41 +	
   13.42  	@BeforeClass
   13.43 -	public static void initialize() throws SQLException, ClassNotFoundException
   13.44 +	public static void beforeClass() throws SQLException, ClassNotFoundException, RDFParseException, RepositoryException, RDFHandlerException, IOException, InvalidDatasetFormatFault
   13.45  	{
   13.46 -		strabon = new Strabon("spatial-tests-srid","strabon","p1r3as", 5432, "strabon.di.uoa.gr", true);
   13.47 +	 TemplateTests.beforeClass();
   13.48  	}
   13.49  	
   13.50 -	@Test
   13.51 -	public void testStrdfLeft() throws MalformedQueryException, QueryEvaluationException, TupleQueryResultHandlerException, IOException
   13.52 -	{ // TODO left not implemented in monetdb
   13.53 -		String query = 
   13.54 -			prefixes+
   13.55 -				"SELECT DISTINCT ?id1 \n"+
   13.56 -				"WHERE { \n" +
   13.57 -				" ?s1 ex:id ?id1 . \n"+
   13.58 -				" ?s2 ex:id ?id2 . \n"+
   13.59 -				" FILTER( str(?id1) != str(?id2) ) . \n"+
   13.60 -				" FILTER( str(?id2) = \"Z\"^^xsd:string ) . \n"+
   13.61 -				" ?s2 ex:geometry ?g2 . \n" +
   13.62 -				" ?s1 ex:geometry ?g1 . \n"+
   13.63 -				" FILTER( strdf:left(?g1, ?g2 )) . \n"+
   13.64 -			"}";
   13.65 -		
   13.66 -		ArrayList<String> bindings = (ArrayList<String>) strabon.query(query,strabon.getSailRepoConnection());
   13.67 -		
   13.68 -		assertEquals(1, bindings.size());
   13.69 -		assertTrue(-1<bindings.indexOf("[id1=\"A\"^^<http://www.w3.org/2001/XMLSchema#string>]"));
   13.70 +	@AfterClass
   13.71 +	public static void afterClass() throws SQLException
   13.72 +	{
   13.73 +		TemplateTests.afterClass();
   13.74  	}
   13.75  	
   13.76 -	@Test
   13.77 -	public void testStrdfRight() throws MalformedQueryException, QueryEvaluationException, TupleQueryResultHandlerException, IOException
   13.78 -	{ // TODO right not implemented in monetdb
   13.79 -		String query = 
   13.80 -			prefixes+
   13.81 -				"SELECT DISTINCT ?id1 \n"+
   13.82 -				"WHERE { \n" +
   13.83 -				" ?s1 ex:id ?id1 . \n"+
   13.84 -				" ?s2 ex:id ?id2 . \n"+
   13.85 -				" FILTER( str(?id1) != str(?id2) ) . \n"+
   13.86 -				" FILTER( str(?id2) = \"Z\"^^xsd:string ) . \n"+
   13.87 -				" ?s2 ex:geometry ?g2 . \n" +
   13.88 -				" ?s1 ex:geometry ?g1 . \n"+
   13.89 -				" FILTER( strdf:right(?g1, ?g2 )) . \n"+
   13.90 -			"}";
   13.91 -		
   13.92 -		ArrayList<String> bindings = (ArrayList<String>) strabon.query(query,strabon.getSailRepoConnection());
   13.93 -		
   13.94 -		assertEquals(1, bindings.size());
   13.95 -		assertTrue(-1<bindings.indexOf("[id1=\"D\"^^<http://www.w3.org/2001/XMLSchema#string>]"));
   13.96 -	}
   13.97 -	
   13.98 -	@Test
   13.99 -	public void testStrdfAbove() throws MalformedQueryException, QueryEvaluationException, TupleQueryResultHandlerException, IOException
  13.100 -	{ // TODO above not implemented in monetdb
  13.101 -		String query = 
  13.102 -			prefixes+
  13.103 -				"SELECT DISTINCT ?id1 \n"+
  13.104 -				"WHERE { \n" +
  13.105 -				" ?s1 ex:id ?id1 . \n"+
  13.106 -				" ?s2 ex:id ?id2 . \n"+
  13.107 -				" FILTER( str(?id1) != str(?id2) ) . \n"+
  13.108 -				" FILTER( str(?id2) = \"Z\"^^xsd:string ) . \n"+
  13.109 -				" ?s2 ex:geometry ?g2 . \n" +
  13.110 -				" ?s1 ex:geometry ?g1 . \n"+
  13.111 -				" FILTER( strdf:above(?g1, ?g2 )) . \n"+
  13.112 -			"}";
  13.113 -		
  13.114 -		ArrayList<String> bindings = (ArrayList<String>) strabon.query(query,strabon.getSailRepoConnection());
  13.115 -		
  13.116 -		assertEquals(1, bindings.size());
  13.117 -		assertTrue(-1<bindings.indexOf("[id1=\"H\"^^<http://www.w3.org/2001/XMLSchema#string>]"));
  13.118 -	}
  13.119 -	
  13.120 -	@Test
  13.121 -	public void testStrdfBelow() throws MalformedQueryException, QueryEvaluationException, TupleQueryResultHandlerException, IOException
  13.122 -	{ // TODO below not implemented in monetdb
  13.123 -		String query = 
  13.124 -			prefixes+
  13.125 -				"SELECT DISTINCT ?id1 \n"+
  13.126 -				"WHERE { \n" +
  13.127 -				" ?s1 ex:id ?id1 . \n"+
  13.128 -				" ?s2 ex:id ?id2 . \n"+
  13.129 -				" FILTER( str(?id1) != str(?id2) ) . \n"+
  13.130 -				" FILTER( str(?id2) = \"Z\"^^xsd:string ) . \n"+
  13.131 -				" ?s2 ex:geometry ?g2 . \n" +
  13.132 -				" ?s1 ex:geometry ?g1 . \n"+
  13.133 -				" FILTER( strdf:below(?g1, ?g2 )) . \n"+
  13.134 -			"}";
  13.135 -		
  13.136 -		ArrayList<String> bindings = (ArrayList<String>) strabon.query(query,strabon.getSailRepoConnection());
  13.137 -		
  13.138 -		assertEquals(1, bindings.size());
  13.139 -		assertTrue(-1<bindings.indexOf("[id1=\"C\"^^<http://www.w3.org/2001/XMLSchema#string>]"));
  13.140 -	}
  13.141 +//	/**
  13.142 +//	 * @throws java.lang.Exception
  13.143 +//	 */
  13.144 +//	@Before
  13.145 +//	public void before()
  13.146 +//		throws Exception
  13.147 +//	{
  13.148 +//		
  13.149 +//	}
  13.150 +//
  13.151 +//	/**
  13.152 +//	 * @throws java.lang.Exception
  13.153 +//	 */
  13.154 +//	@After
  13.155 +//	public void after()
  13.156 +//		throws Exception
  13.157 +//	{
  13.158 +//		// Clean database
  13.159 +//		Statement stmt = conn.createStatement();
  13.160 +//		ResultSet results = stmt.executeQuery("SELECT table_name FROM information_schema.tables WHERE " +
  13.161 +//						"table_schema='public' and table_name <> 'spatial_ref_sys' " +
  13.162 +//						"and table_name <> 'geometry_columns' and " +
  13.163 +//						"table_name <> 'geography_columns' and table_name <> 'locked'");
  13.164 +//		while (results.next()) {
  13.165 +//			String table_name = results.getString("table_name");
  13.166 +//			Statement stmt2 = conn.createStatement();
  13.167 +//			stmt2.executeUpdate("DROP TABLE \""+table_name+"\"");
  13.168 +//			stmt2.close();
  13.169 +//		}
  13.170 +//			
  13.171 +//		stmt.close();
  13.172 +//	}
  13.173  }
    14.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    14.2 +++ b/runtime/src/test/resources/cco2.nt	Fri May 18 17:53:48 2012 +0300
    14.3 @@ -0,0 +1,46 @@
    14.4 +<http://linkedgeodata.org/triplify/node823767430> <http://www.w3.org/2003/01/geo/wgs84_pos#geometry> "POINT(-1.87631 50.7213)"^^<http://strdf.di.uoa.gr/ontology#WKT>.
    14.5 +<http://linkedgeodata.org/triplify/node742231352> <http://www.w3.org/2000/01/rdf-schema#label> "Rosie's".
    14.6 +<http://linkedgeodata.org/triplify/node817345828> <http://www.w3.org/2000/01/rdf-schema#label> "Coffee Republic".
    14.7 +<http://linkedgeodata.org/triplify/node344800922> <http://www.w3.org/2000/01/rdf-schema#label> "Norwegian Wood".
    14.8 +<http://linkedgeodata.org/triplify/node817345828> <http://www.w3.org/2003/01/geo/wgs84_pos#geometry> "POINT(-1.87647 50.721)"^^<http://strdf.di.uoa.gr/ontology#WKT>.
    14.9 +<http://linkedgeodata.org/triplify/node742231354> <http://www.w3.org/2003/01/geo/wgs84_pos#geometry> "POINT(-1.83702 50.7272)"^^<http://strdf.di.uoa.gr/ontology#WKT>.
   14.10 +<http://linkedgeodata.org/triplify/node817345828> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://linkedgeodata.org/ontology/Cafe>.
   14.11 +<http://linkedgeodata.org/triplify/node344800922> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://linkedgeodata.org/ontology/Cafe>.
   14.12 +<http://linkedgeodata.org/triplify/node278571210> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://linkedgeodata.org/ontology/Cafe>.
   14.13 +<http://linkedgeodata.org/triplify/node278982153> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://linkedgeodata.org/ontology/Cafe>.
   14.14 +<http://linkedgeodata.org/triplify/node742231354> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://linkedgeodata.org/ontology/Cafe>.
   14.15 +<http://linkedgeodata.org/triplify/node666779036> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://linkedgeodata.org/ontology/Cafe>.
   14.16 +<http://linkedgeodata.org/triplify/node742231352> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://linkedgeodata.org/ontology/Cafe>.
   14.17 +<http://linkedgeodata.org/triplify/node823767430> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://linkedgeodata.org/ontology/Cafe>.
   14.18 +<http://linkedgeodata.org/triplify/node823767435> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://linkedgeodata.org/ontology/Cafe>.
   14.19 +<http://linkedgeodata.org/triplify/node278982153> <http://www.w3.org/2003/01/geo/wgs84_pos#geometry> "POINT(-1.81769 50.7218)"^^<http://strdf.di.uoa.gr/ontology#WKT>.
   14.20 +<http://linkedgeodata.org/triplify/node278571210> <http://www.w3.org/2000/01/rdf-schema#label> "The Clock Café".
   14.21 +<http://linkedgeodata.org/triplify/node278571210> <http://www.w3.org/2003/01/geo/wgs84_pos#geometry> "POINT(-1.84845 50.7231)"^^<http://strdf.di.uoa.gr/ontology#WKT>.
   14.22 +<http://linkedgeodata.org/triplify/node666779036> <http://www.w3.org/2003/01/geo/wgs84_pos#geometry> "POINT(-1.84667 50.7317)"^^<http://strdf.di.uoa.gr/ontology#WKT>.
   14.23 +<http://linkedgeodata.org/triplify/node344800922> <http://www.w3.org/2003/01/geo/wgs84_pos#geometry> "POINT(-1.87346 50.7214)"^^<http://strdf.di.uoa.gr/ontology#WKT>.
   14.24 +<http://linkedgeodata.org/ontology/Node122> <http://linkedgeodata.org/ontology/bufferExtent> "2"^^<http://www.w3.org/2001/XMLSchema#integer>.
   14.25 +<http://linkedgeodata.org/triplify/node823767435> <http://www.w3.org/2003/01/geo/wgs84_pos#geometry> "POINT(-1.87652 50.7214)"^^<http://strdf.di.uoa.gr/ontology#WKT>.
   14.26 +<http://linkedgeodata.org/triplify/node278982153> <http://www.w3.org/2000/01/rdf-schema#label> "Café Riva".
   14.27 +<http://linkedgeodata.org/triplify/node666779036> <http://www.w3.org/2000/01/rdf-schema#label> "Curzon Diner".
   14.28 +<http://linkedgeodata.org/triplify/node742231352> <http://www.w3.org/2003/01/geo/wgs84_pos#geometry> "POINT(-1.84186 50.7255)"^^<http://strdf.di.uoa.gr/ontology#WKT>.
   14.29 +<http://linkedgeodata.org/triplify/node742231354> <http://www.w3.org/2000/01/rdf-schema#label> "Boscanova".
   14.30 +<http://linkedgeodata.org/triplify/node823767430> <http://www.w3.org/2000/01/rdf-schema#label> "Caffe Nero".
   14.31 +<http://linkedgeodata.org/triplify/node823767435> <http://www.w3.org/2000/01/rdf-schema#label> "Costa".
   14.32 +<http://linkedgeodata.org/triplify/node817345828> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://linkedgeodata.org/ontology/Node>.
   14.33 +<http://linkedgeodata.org/triplify/node344800922> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://linkedgeodata.org/ontology/Node>.
   14.34 +<http://linkedgeodata.org/triplify/node278571210> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://linkedgeodata.org/ontology/Node>.
   14.35 +<http://linkedgeodata.org/triplify/node278982153> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://linkedgeodata.org/ontology/Node>.
   14.36 +<http://linkedgeodata.org/triplify/node742231354> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://linkedgeodata.org/ontology/Node>.
   14.37 +<http://linkedgeodata.org/triplify/node666779036> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://linkedgeodata.org/ontology/Node>.
   14.38 +<http://linkedgeodata.org/triplify/node742231352> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://linkedgeodata.org/ontology/Node>.
   14.39 +<http://linkedgeodata.org/triplify/node823767430> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://linkedgeodata.org/ontology/Node>.
   14.40 +<http://linkedgeodata.org/triplify/node823767435> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://linkedgeodata.org/ontology/Node>.
   14.41 +<http://linkedgeodata.org/triplify/node817345828> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://linkedgeodata.org/ontology/Amenity>.
   14.42 +<http://linkedgeodata.org/triplify/node344800922> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://linkedgeodata.org/ontology/Amenity>.
   14.43 +<http://linkedgeodata.org/triplify/node278571210> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://linkedgeodata.org/ontology/Amenity>.
   14.44 +<http://linkedgeodata.org/triplify/node278982153> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://linkedgeodata.org/ontology/Amenity>.
   14.45 +<http://linkedgeodata.org/triplify/node742231354> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://linkedgeodata.org/ontology/Amenity>.
   14.46 +<http://linkedgeodata.org/triplify/node666779036> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://linkedgeodata.org/ontology/Amenity>.
   14.47 +<http://linkedgeodata.org/triplify/node742231352> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://linkedgeodata.org/ontology/Amenity>.
   14.48 +<http://linkedgeodata.org/triplify/node823767430> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://linkedgeodata.org/ontology/Amenity>.
   14.49 +<http://linkedgeodata.org/triplify/node823767435> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://linkedgeodata.org/ontology/Amenity>.
    15.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    15.2 +++ b/runtime/src/test/resources/group-tests-srid.nt	Fri May 18 17:53:48 2012 +0300
    15.3 @@ -0,0 +1,22 @@
    15.4 +<http://www.earthobservatory.eu/ontologies/noaOntology.owl#Hotspot1> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.earthobservatory.eu/ontologies/noaOntology.owl#Hotspot>.
    15.5 +<http://www.earthobservatory.eu/ontologies/noaOntology.owl#Hotspot2> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.earthobservatory.eu/ontologies/noaOntology.owl#Hotspot>.
    15.6 +<http://www.earthobservatory.eu/ontologies/noaOntology.owl#Hotspot3> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.earthobservatory.eu/ontologies/noaOntology.owl#Hotspot>.
    15.7 +<http://www.earthobservatory.eu/ontologies/noaOntology.owl#Hotspot4> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.earthobservatory.eu/ontologies/noaOntology.owl#Hotspot>.
    15.8 +<http://www.earthobservatory.eu/ontologies/noaOntology.owl#Hotspot5> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.earthobservatory.eu/ontologies/noaOntology.owl#Hotspot>.
    15.9 +<http://www.earthobservatory.eu/ontologies/noaOntology.owl#Hotspot6> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.earthobservatory.eu/ontologies/noaOntology.owl#Hotspot>.
   15.10 +<http://www.earthobservatory.eu/ontologies/noaOntology.owl#BurntArea1> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.earthobservatory.eu/ontologies/noaOntology.owl#BurntArea>.
   15.11 +<http://www.earthobservatory.eu/ontologies/noaOntology.owl#BurntArea2> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.earthobservatory.eu/ontologies/noaOntology.owl#BurntArea>.
   15.12 +<http://www.earthobservatory.eu/ontologies/noaOntology.owl#BurntArea3> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.earthobservatory.eu/ontologies/noaOntology.owl#BurntArea>.
   15.13 +<http://www.earthobservatory.eu/ontologies/noaOntology.owl#UrbanArea1> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.earthobservatory.eu/ontologies/noaOntology.owl#UrbanArea>.
   15.14 +<http://www.earthobservatory.eu/ontologies/noaOntology.owl#UrbanArea2> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.earthobservatory.eu/ontologies/noaOntology.owl#UrbanArea>.
   15.15 +<http://www.earthobservatory.eu/ontologies/noaOntology.owl#Hotspot1> <http://strdf.di.uoa.gr/ontology#hasGeometry> "POINT(10 10)"^^<http://strdf.di.uoa.gr/ontology#WKT>.
   15.16 +<http://www.earthobservatory.eu/ontologies/noaOntology.owl#Hotspot2> <http://strdf.di.uoa.gr/ontology#hasGeometry> "POINT(5 6)"^^<http://strdf.di.uoa.gr/ontology#WKT>.
   15.17 +<http://www.earthobservatory.eu/ontologies/noaOntology.owl#Hotspot3> <http://strdf.di.uoa.gr/ontology#hasGeometry> "POINT(10 10)"^^<http://strdf.di.uoa.gr/ontology#WKT>.
   15.18 +<http://www.earthobservatory.eu/ontologies/noaOntology.owl#Hotspot4> <http://strdf.di.uoa.gr/ontology#hasGeometry> "POINT(0 0)"^^<http://strdf.di.uoa.gr/ontology#WKT>.
   15.19 +<http://www.earthobservatory.eu/ontologies/noaOntology.owl#Hotspot5> <http://strdf.di.uoa.gr/ontology#hasGeometry> "POINT(10 10)"^^<http://strdf.di.uoa.gr/ontology#WKT>.
   15.20 +<http://www.earthobservatory.eu/ontologies/noaOntology.owl#Hotspot6> <http://strdf.di.uoa.gr/ontology#hasGeometry> "POINT(5 6)"^^<http://strdf.di.uoa.gr/ontology#WKT>.
   15.21 +<http://www.earthobservatory.eu/ontologies/noaOntology.owl#BurntArea1> <http://strdf.di.uoa.gr/ontology#hasGeometry> "POLYGON((20 20, 20 22, 22 22, 22 20, 20 20))"^^<http://strdf.di.uoa.gr/ontology#WKT>.
   15.22 +<http://www.earthobservatory.eu/ontologies/noaOntology.owl#BurntArea2> <http://strdf.di.uoa.gr/ontology#hasGeometry> "POLYGON((23 18, 24 19, 23 19, 23 18))"^^<http://strdf.di.uoa.gr/ontology#WKT>.
   15.23 +<http://www.earthobservatory.eu/ontologies/noaOntology.owl#BurntArea3> <http://strdf.di.uoa.gr/ontology#hasGeometry> "POLYGON((20 15, 21 15, 21 16, 20 15))"^^<http://strdf.di.uoa.gr/ontology#WKT>.
   15.24 +<http://www.earthobservatory.eu/ontologies/noaOntology.owl#UrbanArea1> <http://strdf.di.uoa.gr/ontology#hasGeometry> "POLYGON((21.5 18.5, 23.5 18.5, 23.5 21, 21.5 21, 21.5 18.5))"^^<http://strdf.di.uoa.gr/ontology#WKT>.
   15.25 +<http://www.earthobservatory.eu/ontologies/noaOntology.owl#UrbanArea2> <http://strdf.di.uoa.gr/ontology#hasGeometry> "POLYGON((19 19, 21 19, 21 21, 19 21, 19 19))"^^<http://strdf.di.uoa.gr/ontology#WKT>.
    16.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    16.2 +++ b/runtime/src/test/resources/having-tests-srid.nt	Fri May 18 17:53:48 2012 +0300
    16.3 @@ -0,0 +1,26 @@
    16.4 +<http://www.earthobservatory.eu/ontologies/noaOntology.owl#Hotspot1> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.earthobservatory.eu/ontologies/noaOntology.owl#Hotspot>.
    16.5 +<http://www.earthobservatory.eu/ontologies/noaOntology.owl#Hotspot2> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.earthobservatory.eu/ontologies/noaOntology.owl#Hotspot>.
    16.6 +<http://www.earthobservatory.eu/ontologies/noaOntology.owl#Hotspot3> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.earthobservatory.eu/ontologies/noaOntology.owl#Hotspot>.
    16.7 +<http://www.earthobservatory.eu/ontologies/noaOntology.owl#Hotspot4> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.earthobservatory.eu/ontologies/noaOntology.owl#Hotspot>.
    16.8 +<http://www.earthobservatory.eu/ontologies/noaOntology.owl#Hotspot5> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.earthobservatory.eu/ontologies/noaOntology.owl#Hotspot>.
    16.9 +<http://www.earthobservatory.eu/ontologies/noaOntology.owl#Hotspot6> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.earthobservatory.eu/ontologies/noaOntology.owl#Hotspot>.
   16.10 +<http://www.earthobservatory.eu/ontologies/noaOntology.owl#BurntArea1> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.earthobservatory.eu/ontologies/noaOntology.owl#BurntArea>.
   16.11 +<http://www.earthobservatory.eu/ontologies/noaOntology.owl#BurntArea2> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.earthobservatory.eu/ontologies/noaOntology.owl#BurntArea>.
   16.12 +<http://www.earthobservatory.eu/ontologies/noaOntology.owl#BurntArea3> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.earthobservatory.eu/ontologies/noaOntology.owl#BurntArea>.
   16.13 +<http://www.earthobservatory.eu/ontologies/noaOntology.owl#UrbanArea1> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.earthobservatory.eu/ontologies/noaOntology.owl#UrbanArea>.
   16.14 +<http://www.earthobservatory.eu/ontologies/noaOntology.owl#UrbanArea2> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.earthobservatory.eu/ontologies/noaOntology.owl#UrbanArea>.
   16.15 +<http://www.earthobservatory.eu/ontologies/noaOntology.owl#BurntArea1> <http://www.earthobservatory.eu/ontologies/noaOntology.owl#reliability> "52"^^<http://www.w3.org/2001/XMLSchema#integer>.
   16.16 +<http://www.earthobservatory.eu/ontologies/noaOntology.owl#BurntArea1> <http://www.earthobservatory.eu/ontologies/noaOntology.owl#reliability> "47"^^<http://www.w3.org/2001/XMLSchema#integer>.
   16.17 +<http://www.earthobservatory.eu/ontologies/noaOntology.owl#BurntArea2> <http://www.earthobservatory.eu/ontologies/noaOntology.owl#reliability> "11"^^<http://www.w3.org/2001/XMLSchema#integer>.
   16.18 +<http://www.earthobservatory.eu/ontologies/noaOntology.owl#BurntArea3> <http://www.earthobservatory.eu/ontologies/noaOntology.owl#reliability> "19"^^<http://www.w3.org/2001/XMLSchema#integer>.
   16.19 +<http://www.earthobservatory.eu/ontologies/noaOntology.owl#Hotspot1> <http://strdf.di.uoa.gr/ontology#hasGeometry> "POINT(10 10)"^^<http://strdf.di.uoa.gr/ontology#WKT>.
   16.20 +<http://www.earthobservatory.eu/ontologies/noaOntology.owl#Hotspot2> <http://strdf.di.uoa.gr/ontology#hasGeometry> "POINT(5 6)"^^<http://strdf.di.uoa.gr/ontology#WKT>.
   16.21 +<http://www.earthobservatory.eu/ontologies/noaOntology.owl#Hotspot3> <http://strdf.di.uoa.gr/ontology#hasGeometry> "POINT(10 10)"^^<http://strdf.di.uoa.gr/ontology#WKT>.
   16.22 +<http://www.earthobservatory.eu/ontologies/noaOntology.owl#Hotspot4> <http://strdf.di.uoa.gr/ontology#hasGeometry> "POINT(0 0)"^^<http://strdf.di.uoa.gr/ontology#WKT>.
   16.23 +<http://www.earthobservatory.eu/ontologies/noaOntology.owl#Hotspot5> <http://strdf.di.uoa.gr/ontology#hasGeometry> "POINT(10 10)"^^<http://strdf.di.uoa.gr/ontology#WKT>.
   16.24 +<http://www.earthobservatory.eu/ontologies/noaOntology.owl#Hotspot6> <http://strdf.di.uoa.gr/ontology#hasGeometry> "POINT(5 6)"^^<http://strdf.di.uoa.gr/ontology#WKT>.
   16.25 +<http://www.earthobservatory.eu/ontologies/noaOntology.owl#BurntArea1> <http://strdf.di.uoa.gr/ontology#hasGeometry> "POLYGON((20 20, 20 22, 22 22, 22 20, 20 20))"^^<http://strdf.di.uoa.gr/ontology#WKT>.
   16.26 +<http://www.earthobservatory.eu/ontologies/noaOntology.owl#BurntArea2> <http://strdf.di.uoa.gr/ontology#hasGeometry> "POLYGON((23 18, 24 19, 23 19, 23 18))"^^<http://strdf.di.uoa.gr/ontology#WKT>.
   16.27 +<http://www.earthobservatory.eu/ontologies/noaOntology.owl#BurntArea3> <http://strdf.di.uoa.gr/ontology#hasGeometry> "POLYGON((20 15, 21 15, 21 16, 20 15))"^^<http://strdf.di.uoa.gr/ontology#WKT>.
   16.28 +<http://www.earthobservatory.eu/ontologies/noaOntology.owl#UrbanArea1> <http://strdf.di.uoa.gr/ontology#hasGeometry> "POLYGON((21.5 18.5, 23.5 18.5, 23.5 21, 21.5 21, 21.5 18.5))"^^<http://strdf.di.uoa.gr/ontology#WKT>.
   16.29 +<http://www.earthobservatory.eu/ontologies/noaOntology.owl#UrbanArea2> <http://strdf.di.uoa.gr/ontology#hasGeometry> "POLYGON((19 19, 21 19, 21 21, 19 21, 19 19))"^^<http://strdf.di.uoa.gr/ontology#WKT>.
    17.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    17.2 +++ b/runtime/src/test/resources/join-tests-srid.nt	Fri May 18 17:53:48 2012 +0300
    17.3 @@ -0,0 +1,20 @@
    17.4 +<http://teleios.di.uoa.gr/ontologies/noaOntology.owl#Area88> <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#hasGeography> "POINT(0 1)"^^<http://strdf.di.uoa.gr/ontology#WKT>.
    17.5 +<http://dbpedia.org/ontology/PopulatedPlaceGeoNames> <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#hasGeography> "POINT(3 5)"^^<http://strdf.di.uoa.gr/ontology#WKT>.
    17.6 +<http://dbpedia.org/ontology/PopulatedPlaceGeoNames> <http://www.w3.org/2002/07/owl#sameAs> <http://dbpedia.org/ontology/PopulatedPlace9>.
    17.7 +<http://linkedgeodata.org/ontology/Node1> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://linkedgeodata.org/ontology/NaturalWood>.
    17.8 +<http://dbpedia.org/ontology/PopulatedPlace9> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://dbpedia.org/ontology/PopulatedPlace>.
    17.9 +<http://teleios.di.uoa.gr/ontologies/noaOntology.owl#LandArea9> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#Area>.
   17.10 +<http://teleios.di.uoa.gr/ontologies/noaOntology.owl#Area88> <http://www.geonames.org/ontology#name> "London".
   17.11 +<http://linkedgeodata.org/ontology/Node1> <http://www.w3.org/2003/01/geo/wgs84_pos#geometry> "POINT(1 0)"^^<http://strdf.di.uoa.gr/ontology#WKT>.
   17.12 +<http://pachube.org/ontology/SensorSystem1> <http://purl.oclc.org/NET/ssnx/ssn#hasSubSystem> <http://pachube.org/ontology/System1>.
   17.13 +<http://pachube.org/ontology/SensorSystem9> <http://purl.oclc.org/NET/ssnx/ssn#hasSubSystem> <http://pachube.org/ontology/System9>.
   17.14 +<http://pachube.org/ontology/SensorDeployment1> <http://purl.oclc.org/NET/ssnx/ssn#deployedSystem> <http://pachube.org/ontology/SensorSystem1>.
   17.15 +<http://pachube.org/ontology/SensorDeployment9> <http://purl.oclc.org/NET/ssnx/ssn#deployedSystem> <http://pachube.org/ontology/SensorSystem9>.
   17.16 +<http://pachube.org/ontology/SensorDeployment1> <http://purl.oclc.org/NET/ssnx/ssn#deployedOnPlatform> <http://pachube.org/ontology/SensorPlatform1>.
   17.17 +<http://pachube.org/ontology/SensorDeployment9> <http://purl.oclc.org/NET/ssnx/ssn#deployedOnPlatform> <http://pachube.org/ontology/SensorPlatform9>.
   17.18 +<http://teleios.di.uoa.gr/ontologies/noaOntology.owl#LandArea9> <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#hasLandUse> <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#portAreas>.
   17.19 +<http://pachube.org/ontology/SensorPlatform1> <http://www.loa-cnr.it/ontologies/DUL.owl#hasLocation> <http://pachube.org/ontology/Tajikistan>.
   17.20 +<http://pachube.org/ontology/SensorPlatform9> <http://www.loa-cnr.it/ontologies/DUL.owl#hasLocation> <http://pachube.org/ontology/Kikirikistan>.
   17.21 +<http://teleios.di.uoa.gr/ontologies/noaOntology.owl#LandArea9> <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#hasGeometry> "POINT(0 5)"^^<http://strdf.di.uoa.gr/ontology#WKT>.
   17.22 +<http://pachube.org/ontology/Tajikistan> <http://dbpedia.org/property/hasGeometry> "POINT(0 0)"^^<http://strdf.di.uoa.gr/ontology#WKT>.
   17.23 +<http://pachube.org/ontology/Kikirikistan> <http://dbpedia.org/property/hasGeometry> "POINT(2 0)"^^<http://strdf.di.uoa.gr/ontology#WKT>.
    18.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    18.2 +++ b/runtime/src/test/resources/join-tests.nt	Fri May 18 17:53:48 2012 +0300
    18.3 @@ -0,0 +1,20 @@
    18.4 +<http://pachube.org/ontology/Tajikistan> <http://dbpedia.org/property/hasGeometry> "POINT(0 0)"^^<http://strdf.di.uoa.gr/ontology#WKT>.
    18.5 +<http://pachube.org/ontology/SensorDeployment9> <http://purl.oclc.org/NET/ssnx/ssn#deployedOnPlatform> <http://pachube.org/ontology/SensorPlatform9>.
    18.6 +<http://pachube.org/ontology/SensorPlatform9> <http://www.loa-cnr.it/ontologies/DUL.owl#hasLocation> <http://pachube.org/ontology/Kikirikistan>.
    18.7 +<http://dbpedia.org/ontology/PopulatedPlace9> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://dbpedia.org/ontology/PopulatedPlace>.
    18.8 +<http://pachube.org/ontology/SensorDeployment1> <http://purl.oclc.org/NET/ssnx/ssn#deployedOnPlatform> <http://pachube.org/ontology/SensorPlatform1>.
    18.9 +<http://linkedgeodata.org/ontology/Node1> <http://www.w3.org/2003/01/geo/wgs84_pos#geometry> "POINT(1 0)"^^<http://strdf.di.uoa.gr/ontology#WKT>.
   18.10 +<http://pachube.org/ontology/Kikirikistan> <http://dbpedia.org/property/hasGeometry> "POINT(2 0)"^^<http://strdf.di.uoa.gr/ontology#WKT>.
   18.11 +<http://dbpedia.org/ontology/PopulatedPlaceGeoNames> <http://www.w3.org/2002/07/owl#sameAs> <http://dbpedia.org/ontology/PopulatedPlace9>.
   18.12 +<http://teleios.di.uoa.gr/ontologies/noaOntology.owl#Area88> <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#hasGeography> "POINT(0 1)"^^<http://strdf.di.uoa.gr/ontology#WKT>.
   18.13 +<http://pachube.org/ontology/SensorSystem1> <http://purl.oclc.org/NET/ssnx/ssn#hasSubSystem> <http://pachube.org/ontology/System1>.
   18.14 +<http://dbpedia.org/ontology/PopulatedPlaceGeoNames> <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#hasGeography> "POINT(3 5)"^^<http://strdf.di.uoa.gr/ontology#WKT>.
   18.15 +<http://teleios.di.uoa.gr/ontologies/noaOntology.owl#LandArea9> <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#hasGeometry> "POINT(0 5)"^^<http://strdf.di.uoa.gr/ontology#WKT>.
   18.16 +<http://teleios.di.uoa.gr/ontologies/noaOntology.owl#LandArea9> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#Area>.
   18.17 +<http://teleios.di.uoa.gr/ontologies/noaOntology.owl#Area88> <http://www.geonames.org/ontology#name> "London".
   18.18 +<http://pachube.org/ontology/SensorDeployment1> <http://purl.oclc.org/NET/ssnx/ssn#deployedSystem> <http://pachube.org/ontology/SensorSystem1>.
   18.19 +<http://teleios.di.uoa.gr/ontologies/noaOntology.owl#LandArea9> <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#hasLandUse> <http://teleios.di.uoa.gr/ontologies/noaOntology.owl#portAreas>.
   18.20 +<http://pachube.org/ontology/SensorSystem9> <http://purl.oclc.org/NET/ssnx/ssn#hasSubSystem> <http://pachube.org/ontology/System9>.
   18.21 +<http://pachube.org/ontology/SensorDeployment9> <http://purl.oclc.org/NET/ssnx/ssn#deployedSystem> <http://pachube.org/ontology/SensorSystem9>.
   18.22 +<http://linkedgeodata.org/ontology/Node1> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://linkedgeodata.org/ontology/NaturalWood>.
   18.23 +<http://pachube.org/ontology/SensorPlatform1> <http://www.loa-cnr.it/ontologies/DUL.owl#hasLocation> <http://pachube.org/ontology/Tajikistan>.
    19.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    19.2 +++ b/runtime/src/test/resources/more-tests-srid.nt	Fri May 18 17:53:48 2012 +0300
    19.3 @@ -0,0 +1,58 @@
    19.4 +<http://www.geonames.org/ontology/Athens> <http://www.w3.org/2002/07/owl#sameAs> <http://dbpedia.org/resource/Athens>.
    19.5 +<http://linkedgeodata.org/triplify/node742231352> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://linkedgeodata.org/ontology/Node>.
    19.6 +<http://linkedgeodata.org/triplify/node742231352> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://linkedgeodata.org/ontology/Cafe>.
    19.7 +<http://linkedgeodata.org/triplify/node742231352> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://linkedgeodata.org/ontology/Amenity>.
    19.8 +<http://linkedgeodata.org/triplify/node666779036> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://linkedgeodata.org/ontology/Node>.
    19.9 +<http://linkedgeodata.org/triplify/node666779036> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://linkedgeodata.org/ontology/Cafe>.
   19.10 +<http://linkedgeodata.org/triplify/node666779036> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://linkedgeodata.org/ontology/Amenity>.
   19.11 +<http://linkedgeodata.org/triplify/node278982153> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://linkedgeodata.org/ontology/Node>.
   19.12 +<http://linkedgeodata.org/triplify/node278982153> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://linkedgeodata.org/ontology/Cafe>.
   19.13 +<http://linkedgeodata.org/triplify/node278982153> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://linkedgeodata.org/ontology/Amenity>.
   19.14 +<http://linkedgeodata.org/triplify/node278571210> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://linkedgeodata.org/ontology/Node>.
   19.15 +<http://linkedgeodata.org/triplify/node278571210> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://linkedgeodata.org/ontology/Cafe>.
   19.16 +<http://linkedgeodata.org/triplify/node278571210> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://linkedgeodata.org/ontology/Amenity>.
   19.17 +<http://linkedgeodata.org/triplify/node823767435> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://linkedgeodata.org/ontology/Node>.
   19.18 +<http://linkedgeodata.org/triplify/node823767435> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://linkedgeodata.org/ontology/Cafe>.
   19.19 +<http://linkedgeodata.org/triplify/node823767435> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://linkedgeodata.org/ontology/Amenity>.
   19.20 +<http://linkedgeodata.org/triplify/node817345828> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://linkedgeodata.org/ontology/Node>.
   19.21 +<http://linkedgeodata.org/triplify/node817345828> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://linkedgeodata.org/ontology/Cafe>.
   19.22 +<http://linkedgeodata.org/triplify/node817345828> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://linkedgeodata.org/ontology/Amenity>.
   19.23 +<http://linkedgeodata.org/triplify/node823767430> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://linkedgeodata.org/ontology/Node>.
   19.24 +<http://linkedgeodata.org/triplify/node823767430> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://linkedgeodata.org/ontology/Cafe>.
   19.25 +<http://linkedgeodata.org/triplify/node823767430> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://linkedgeodata.org/ontology/Amenity>.
   19.26 +<http://linkedgeodata.org/triplify/node344800922> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://linkedgeodata.org/ontology/Node>.
   19.27 +<http://linkedgeodata.org/triplify/node344800922> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://linkedgeodata.org/ontology/Cafe>.
   19.28 +<http://linkedgeodata.org/triplify/node344800922> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://linkedgeodata.org/ontology/Amenity>.
   19.29 +<http://linkedgeodata.org/triplify/node742231354> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://linkedgeodata.org/ontology/Node>.
   19.30 +<http://linkedgeodata.org/triplify/node742231354> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://linkedgeodata.org/ontology/Cafe>.
   19.31 +<http://linkedgeodata.org/triplify/node742231354> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://linkedgeodata.org/ontology/Amenity>.
   19.32 +<http://linkedgeodata.org/triplify#way4020526> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://linkedgeodata.org/ontology#Harbour>.
   19.33 +<http://linkedgeodata.org/triplify#way4020525> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://linkedgeodata.org/ontology#Pier>.
   19.34 +<http://dbpedia.org/resource/Greece> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://dbpedia.org/resource/Country>.
   19.35 +<http://linkedgeodata.org/ontology/Node122> <http://linkedgeodata.org/ontology/bufferExtent> "2"^^<http://www.w3.org/2001/XMLSchema#integer>.
   19.36 +<http://linkedgeodata.org/triplify/node742231352> <http://www.w3.org/2000/01/rdf-schema#label> "Rosie's".
   19.37 +<http://linkedgeodata.org/triplify/node666779036> <http://www.w3.org/2000/01/rdf-schema#label> "Curzon Diner".
   19.38 +<http://linkedgeodata.org/triplify/node278982153> <http://www.w3.org/2000/01/rdf-schema#label> "Café Riva".
   19.39 +<http://linkedgeodata.org/triplify/node278571210> <http://www.w3.org/2000/01/rdf-schema#label> "The Clock Café".
   19.40 +<http://linkedgeodata.org/triplify/node823767435> <http://www.w3.org/2000/01/rdf-schema#label> "Costa".
   19.41 +<http://linkedgeodata.org/triplify/node817345828> <http://www.w3.org/2000/01/rdf-schema#label> "Coffee Republic".
   19.42 +<http://linkedgeodata.org/triplify/node823767430> <http://www.w3.org/2000/01/rdf-schema#label> "Caffe Nero".
   19.43 +<http://linkedgeodata.org/triplify/node344800922> <http://www.w3.org/2000/01/rdf-schema#label> "Norwegian Wood".
   19.44 +<http://linkedgeodata.org/triplify/node742231354> <http://www.w3.org/2000/01/rdf-schema#label> "Boscanova".
   19.45 +<http://dbpedia.org/resource/Athens> <http://www.w3.org/2000/01/rdf-schema#label> "Athens".
   19.46 +<http://linkedgeodata.org/triplify#way4020525> <http://www.w3.org/2000/01/rdf-schema#label> "Piraeus Pier".
   19.47 +<http://linkedgeodata.org/triplify#way4020526> <http://www.w3.org/2000/01/rdf-schema#label> "Pearl Harbor".
   19.48 +<http://dbpedia.org/resource/Greece> <http://dbpedia.org/property/capital> "Athens".
   19.49 +<http://linkedgeodata.org/triplify/node742231352> <http://www.w3.org/2003/01/geo/wgs84_pos#geometry> "POINT(-1.84186 50.7255)"^^<http://strdf.di.uoa.gr/ontology#WKT>.
   19.50 +<http://linkedgeodata.org/triplify/node666779036> <http://www.w3.org/2003/01/geo/wgs84_pos#geometry> "POINT(-1.84667 50.7317)"^^<http://strdf.di.uoa.gr/ontology#WKT>.
   19.51 +<http://linkedgeodata.org/triplify/node278982153> <http://www.w3.org/2003/01/geo/wgs84_pos#geometry> "POINT(-1.81769 50.7218)"^^<http://strdf.di.uoa.gr/ontology#WKT>.
   19.52 +<http://linkedgeodata.org/triplify/node278571210> <http://www.w3.org/2003/01/geo/wgs84_pos#geometry> "POINT(-1.84845 50.7231)"^^<http://strdf.di.uoa.gr/ontology#WKT>.
   19.53 +<http://linkedgeodata.org/triplify/node823767435> <http://www.w3.org/2003/01/geo/wgs84_pos#geometry> "POINT(-1.87652 50.7214)"^^<http://strdf.di.uoa.gr/ontology#WKT>.
   19.54 +<http://linkedgeodata.org/triplify/node817345828> <http://www.w3.org/2003/01/geo/wgs84_pos#geometry> "POINT(-1.87647 50.721)"^^<http://strdf.di.uoa.gr/ontology#WKT>.
   19.55 +<http://linkedgeodata.org/triplify/node823767430> <http://www.w3.org/2003/01/geo/wgs84_pos#geometry> "POINT(-1.87631 50.7213)"^^<http://strdf.di.uoa.gr/ontology#WKT>.
   19.56 +<http://linkedgeodata.org/triplify/node344800922> <http://www.w3.org/2003/01/geo/wgs84_pos#geometry> "POINT(-1.87346 50.7214)"^^<http://strdf.di.uoa.gr/ontology#WKT>.
   19.57 +<http://linkedgeodata.org/triplify/node742231354> <http://www.w3.org/2003/01/geo/wgs84_pos#geometry> "POINT(-1.83702 50.7272)"^^<http://strdf.di.uoa.gr/ontology#WKT>.
   19.58 +<http://www.geonames.org/ontology/Greece> <http://strdf.di.uoa.gr/ontology#hasGeometry> "POINT(22.0 39.0)"^^<http://strdf.di.uoa.gr/ontology#WKT>.
   19.59 +<http://www.geonames.org/ontology/Athens> <http://strdf.di.uoa.gr/ontology#hasGeometry> "POINT(23.71 37.97)"^^<http://strdf.di.uoa.gr/ontology#WKT>.
   19.60 +<http://linkedgeodata.org/triplify#way4020525> <http://strdf.di.uoa.gr/ontology#hasGeometry> "POLYGON((23.65 37.94,23.64 37.935,23.64 37.934,23.65 37.94))"^^<http://strdf.di.uoa.gr/ontology#WKT>.
   19.61 +<http://linkedgeodata.org/triplify#way4020526> <http://strdf.di.uoa.gr/ontology#hasGeometry> "POINT(23.63 37.96)"^^<http://strdf.di.uoa.gr/ontology#WKT>.
    20.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    20.2 +++ b/runtime/src/test/resources/more-tests.nt	Fri May 18 17:53:48 2012 +0300
    20.3 @@ -0,0 +1,58 @@
    20.4 +<http://linkedgeodata.org/triplify/node823767430> <http://www.w3.org/2003/01/geo/wgs84_pos#geometry> "POINT(-1.87631 50.7213)"^^<http://strdf.di.uoa.gr/ontology#WKT>.
    20.5 +<http://linkedgeodata.org/triplify#way4020525> <http://strdf.di.uoa.gr/ontology#hasGeometry> "POLYGON((23.65 37.94,23.64 37.935,23.64 37.934,23.65 37.94))"^^<http://strdf.di.uoa.gr/ontology#WKT>.
    20.6 +<http://dbpedia.org/resource/Greece> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://dbpedia.org/resource/Country>.
    20.7 +<http://linkedgeodata.org/triplify#way4020525> <http://www.w3.org/2000/01/rdf-schema#label> "Piraeus Pier".
    20.8 +<http://linkedgeodata.org/triplify/node742231352> <http://www.w3.org/2000/01/rdf-schema#label> "Rosie's".
    20.9 +<http://linkedgeodata.org/triplify/node817345828> <http://www.w3.org/2000/01/rdf-schema#label> "Coffee Republic".
   20.10 +<http://linkedgeodata.org/triplify#way4020525> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://linkedgeodata.org/ontology#Pier>.
   20.11 +<http://linkedgeodata.org/triplify/node344800922> <http://www.w3.org/2000/01/rdf-schema#label> "Norwegian Wood".
   20.12 +<http://linkedgeodata.org/triplify/node817345828> <http://www.w3.org/2003/01/geo/wgs84_pos#geometry> "POINT(-1.87647 50.721)"^^<http://strdf.di.uoa.gr/ontology#WKT>.
   20.13 +<http://linkedgeodata.org/triplify/node742231354> <http://www.w3.org/2003/01/geo/wgs84_pos#geometry> "POINT(-1.83702 50.7272)"^^<http://strdf.di.uoa.gr/ontology#WKT>.
   20.14 +<http://linkedgeodata.org/triplify/node817345828> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://linkedgeodata.org/ontology/Cafe>.
   20.15 +<http://linkedgeodata.org/triplify/node344800922> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://linkedgeodata.org/ontology/Cafe>.
   20.16 +<http://linkedgeodata.org/triplify/node278571210> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://linkedgeodata.org/ontology/Cafe>.
   20.17 +<http://linkedgeodata.org/triplify/node278982153> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://linkedgeodata.org/ontology/Cafe>.
   20.18 +<http://linkedgeodata.org/triplify/node742231354> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://linkedgeodata.org/ontology/Cafe>.
   20.19 +<http://linkedgeodata.org/triplify/node666779036> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://linkedgeodata.org/ontology/Cafe>.
   20.20 +<http://linkedgeodata.org/triplify/node742231352> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://linkedgeodata.org/ontology/Cafe>.
   20.21 +<http://linkedgeodata.org/triplify/node823767430> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://linkedgeodata.org/ontology/Cafe>.
   20.22 +<http://linkedgeodata.org/triplify/node823767435> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://linkedgeodata.org/ontology/Cafe>.
   20.23 +<http://linkedgeodata.org/triplify/node278982153> <http://www.w3.org/2003/01/geo/wgs84_pos#geometry> "POINT(-1.81769 50.7218)"^^<http://strdf.di.uoa.gr/ontology#WKT>.
   20.24 +<http://linkedgeodata.org/triplify/node278571210> <http://www.w3.org/2000/01/rdf-schema#label> "The Clock Café".
   20.25 +<http://linkedgeodata.org/triplify/node278571210> <http://www.w3.org/2003/01/geo/wgs84_pos#geometry> "POINT(-1.84845 50.7231)"^^<http://strdf.di.uoa.gr/ontology#WKT>.
   20.26 +<http://linkedgeodata.org/triplify/node666779036> <http://www.w3.org/2003/01/geo/wgs84_pos#geometry> "POINT(-1.84667 50.7317)"^^<http://strdf.di.uoa.gr/ontology#WKT>.
   20.27 +<http://linkedgeodata.org/triplify/node344800922> <http://www.w3.org/2003/01/geo/wgs84_pos#geometry> "POINT(-1.87346 50.7214)"^^<http://strdf.di.uoa.gr/ontology#WKT>.
   20.28 +<http://linkedgeodata.org/triplify#way4020526> <http://www.w3.org/2000/01/rdf-schema#label> "Pearl Harbor".
   20.29 +<http://linkedgeodata.org/ontology/Node122> <http://linkedgeodata.org/ontology/bufferExtent> "2"^^<http://www.w3.org/2001/XMLSchema#integer>.
   20.30 +<http://www.geonames.org/ontology/Athens> <http://www.w3.org/2002/07/owl#sameAs> <http://dbpedia.org/resource/Athens>.
   20.31 +<http://linkedgeodata.org/triplify/node823767435> <http://www.w3.org/2003/01/geo/wgs84_pos#geometry> "POINT(-1.87652 50.7214)"^^<http://strdf.di.uoa.gr/ontology#WKT>.
   20.32 +<http://linkedgeodata.org/triplify/node278982153> <http://www.w3.org/2000/01/rdf-schema#label> "Café Riva".
   20.33 +<http://linkedgeodata.org/triplify/node666779036> <http://www.w3.org/2000/01/rdf-schema#label> "Curzon Diner".
   20.34 +<http://linkedgeodata.org/triplify/node742231352> <http://www.w3.org/2003/01/geo/wgs84_pos#geometry> "POINT(-1.84186 50.7255)"^^<http://strdf.di.uoa.gr/ontology#WKT>.
   20.35 +<http://linkedgeodata.org/triplify/node742231354> <http://www.w3.org/2000/01/rdf-schema#label> "Boscanova".
   20.36 +<http://linkedgeodata.org/triplify/node823767430> <http://www.w3.org/2000/01/rdf-schema#label> "Caffe Nero".
   20.37 +<http://linkedgeodata.org/triplify#way4020526> <http://strdf.di.uoa.gr/ontology#hasGeometry> "POINT(23.63 37.96)"^^<http://strdf.di.uoa.gr/ontology#WKT>.
   20.38 +<http://www.geonames.org/ontology/Athens> <http://strdf.di.uoa.gr/ontology#hasGeometry> "POINT(23.71 37.97)"^^<http://strdf.di.uoa.gr/ontology#WKT>.
   20.39 +<http://linkedgeodata.org/triplify#way4020526> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://linkedgeodata.org/ontology#Harbour>.
   20.40 +<http://linkedgeodata.org/triplify/node823767435> <http://www.w3.org/2000/01/rdf-schema#label> "Costa".
   20.41 +<http://www.geonames.org/ontology/Greece> <http://strdf.di.uoa.gr/ontology#hasGeometry> "POINT(22.0 39.0)"^^<http://strdf.di.uoa.gr/ontology#WKT>.
   20.42 +<http://dbpedia.org/resource/Athens> <http://www.w3.org/2000/01/rdf-schema#label> "Athens".
   20.43 +<http://dbpedia.org/resource/Greece> <http://dbpedia.org/property/capital> "Athens".
   20.44 +<http://linkedgeodata.org/triplify/node817345828> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://linkedgeodata.org/ontology/Node>.
   20.45 +<http://linkedgeodata.org/triplify/node344800922> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://linkedgeodata.org/ontology/Node>.
   20.46 +<http://linkedgeodata.org/triplify/node278571210> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://linkedgeodata.org/ontology/Node>.
   20.47 +<http://linkedgeodata.org/triplify/node278982153> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://linkedgeodata.org/ontology/Node>.
   20.48 +<http://linkedgeodata.org/triplify/node742231354> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://linkedgeodata.org/ontology/Node>.
   20.49 +<http://linkedgeodata.org/triplify/node666779036> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://linkedgeodata.org/ontology/Node>.
   20.50 +<http://linkedgeodata.org/triplify/node742231352> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://linkedgeodata.org/ontology/Node>.
   20.51 +<http://linkedgeodata.org/triplify/node823767430> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://linkedgeodata.org/ontology/Node>.
   20.52 +<http://linkedgeodata.org/triplify/node823767435> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://linkedgeodata.org/ontology/Node>.
   20.53 +<http://linkedgeodata.org/triplify/node817345828> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://linkedgeodata.org/ontology/Amenity>.
   20.54 +<http://linkedgeodata.org/triplify/node344800922> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://linkedgeodata.org/ontology/Amenity>.
   20.55 +<http://linkedgeodata.org/triplify/node278571210> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://linkedgeodata.org/ontology/Amenity>.
   20.56 +<http://linkedgeodata.org/triplify/node278982153> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://linkedgeodata.org/ontology/Amenity>.
   20.57 +<http://linkedgeodata.org/triplify/node742231354> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://linkedgeodata.org/ontology/Amenity>.
   20.58 +<http://linkedgeodata.org/triplify/node666779036> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://linkedgeodata.org/ontology/Amenity>.
   20.59 +<http://linkedgeodata.org/triplify/node742231352> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://linkedgeodata.org/ontology/Amenity>.
   20.60 +<http://linkedgeodata.org/triplify/node823767430> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://linkedgeodata.org/ontology/Amenity>.
   20.61 +<http://linkedgeodata.org/triplify/node823767435> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://linkedgeodata.org/ontology/Amenity>.
    21.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    21.2 +++ b/runtime/src/test/resources/spatial-tests-srid.nt	Fri May 18 17:53:48 2012 +0300
    21.3 @@ -0,0 +1,30 @@
    21.4 +<http://example.org/pol1> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://example.org/Polygon>.
    21.5 +<http://example.org/pol11> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://example.org/Polygon>.
    21.6 +<http://example.org/pol2> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://example.org/Polygon>.
    21.7 +<http://example.org/pol3> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://example.org/Polygon>.
    21.8 +<http://example.org/pol4> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://example.org/Polygon>.
    21.9 +<http://example.org/pol5> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://example.org/Polygon>.
   21.10 +<http://example.org/pol6> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://example.org/Polygon>.
   21.11 +<http://example.org/pol7> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://example.org/Polygon>.
   21.12 +<http://example.org/pol8> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://example.org/Polygon>.
   21.13 +<http://example.org/pol9> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://example.org/Polygon>.
   21.14 +<http://example.org/pol1> <http://example.org/id> "A"^^<http://www.w3.org/2001/XMLSchema#string>.
   21.15 +<http://example.org/pol11> <http://example.org/id> "A"^^<http://www.w3.org/2001/XMLSchema#string>.
   21.16 +<http://example.org/pol2> <http://example.org/id> "B"^^<http://www.w3.org/2001/XMLSchema#string>.
   21.17 +<http://example.org/pol3> <http://example.org/id> "C"^^<http://www.w3.org/2001/XMLSchema#string>.
   21.18 +<http://example.org/pol4> <http://example.org/id> "D"^^<http://www.w3.org/2001/XMLSchema#string>.
   21.19 +<http://example.org/pol5> <http://example.org/id> "E"^^<http://www.w3.org/2001/XMLSchema#string>.
   21.20 +<http://example.org/pol6> <http://example.org/id> "F"^^<http://www.w3.org/2001/XMLSchema#string>.
   21.21 +<http://example.org/pol7> <http://example.org/id> "G"^^<http://www.w3.org/2001/XMLSchema#string>.
   21.22 +<http://example.org/pol8> <http://example.org/id> "H"^^<http://www.w3.org/2001/XMLSchema#string>.
   21.23 +<http://example.org/pol9> <http://example.org/id> "Z"^^<http://www.w3.org/2001/XMLSchema#string>.
   21.24 +<http://example.org/pol1> <http://example.org/geometry> "POLYGON((1 6, 2 6, 2 7, 1 7, 1 6))"^^<http://strdf.di.uoa.gr/ontology#WKT>.
   21.25 +<http://example.org/pol11> <http://example.org/geometry> "POLYGON((1 6, 2 6, 2 7, 1 7, 1 6))"^^<http://strdf.di.uoa.gr/ontology#WKT>.
   21.26 +<http://example.org/pol2> <http://example.org/geometry> "POLYGON((4 2, 5 2, 5 4, 4 4, 4 2))"^^<http://strdf.di.uoa.gr/ontology#WKT>.
   21.27 +<http://example.org/pol3> <http://example.org/geometry> "POLYGON((8 1, 9 1, 9 2, 8 2, 8 1))"^^<http://strdf.di.uoa.gr/ontology#WKT>.
   21.28 +<http://example.org/pol4> <http://example.org/geometry> "POLYGON((11 6, 12 6, 12 7, 11 7, 11 6))"^^<http://strdf.di.uoa.gr/ontology#WKT>.
   21.29 +<http://example.org/pol5> <http://example.org/geometry> "POLYGON((8 6, 9 6, 9 7, 8 7, 8 6))"^^<http://strdf.di.uoa.gr/ontology#WKT>.
   21.30 +<http://example.org/pol6> <http://example.org/geometry> "POLYGON((6 7, 7 7, 7 8, 6 8, 6 7))"^^<http://strdf.di.uoa.gr/ontology#WKT>.
   21.31 +<http://example.org/pol7> <http://example.org/geometry> "POLYGON((4 8, 5 8, 5 9, 4 9, 4 8))"^^<http://strdf.di.uoa.gr/ontology#WKT>.
   21.32 +<http://example.org/pol8> <http://example.org/geometry> "POLYGON((8 9, 9 9, 9 10, 8 10, 8 9))"^^<http://strdf.di.uoa.gr/ontology#WKT>.
   21.33 +<http://example.org/pol9> <http://example.org/geometry> "POLYGON((3 3, 10 3, 10 8, 3 8, 3 3))"^^<http://strdf.di.uoa.gr/ontology#WKT>.