Strabon

changeset 648:5f925d5a4885 temporals

added strdf to geoconstants and modified generaldb for storing quads
author Konstantina Bereta <Konstantina.Bereta@di.uoa.gr>
date Tue Oct 23 19:16:40 2012 +0300 (2012-10-23)
parents a7188f5f0c4a
children f21d6acefe7f
files evaluation/src/main/java/org/openrdf/query/algebra/evaluation/function/spatial/GeoConstants.java runtime/src/main/java/eu/earthobservatory/runtime/generaldb/Strabon.java
line diff
     1.1 --- a/evaluation/src/main/java/org/openrdf/query/algebra/evaluation/function/spatial/GeoConstants.java	Tue Oct 16 17:13:56 2012 +0300
     1.2 +++ b/evaluation/src/main/java/org/openrdf/query/algebra/evaluation/function/spatial/GeoConstants.java	Tue Oct 23 19:16:40 2012 +0300
     1.3 @@ -43,6 +43,7 @@
     1.4  	 * in the model stRDF and query language stSPARQL
     1.5  	 */
     1.6  	public static final String GML						= stRDF + "GML";
     1.7 +	public static final String validTime                = stRDF + "validTime";
     1.8  
     1.9  	/**
    1.10  	 * 
     2.1 --- a/runtime/src/main/java/eu/earthobservatory/runtime/generaldb/Strabon.java	Tue Oct 16 17:13:56 2012 +0300
     2.2 +++ b/runtime/src/main/java/eu/earthobservatory/runtime/generaldb/Strabon.java	Tue Oct 23 19:16:40 2012 +0300
     2.3 @@ -377,11 +377,11 @@
     2.4  		{
     2.5  			NQuadsTranslator translator = new NQuadsTranslator();
     2.6  		//	 final ByteArrayInputStream bais = new ByteArrayInputStream(i);
     2.7 -			 /*final ByteArrayInputStream bais = new ByteArrayInputStream(
     2.8 -			            "<http://www.v/dat/4b> <http://www.w3.org/20/ica#dtend> <http://sin/value/2> <http://sin.siteserv.org/def/> ."
     2.9 +			 final ByteArrayInputStream bais = new ByteArrayInputStream(
    2.10 +			            "<http://www.v/dat/4b> <http://www.w3.org/20/ica#dtend> <http://sin/value/2> \"lala\" ."
    2.11  			            .getBytes()
    2.12 -			        );*/
    2.13 -			Collection<Statement> statements = translator.translate(in, baseURI);
    2.14 +			        );
    2.15 +			Collection<Statement> statements = translator.translate(bais, baseURI);
    2.16  			Iterator iterator = statements.iterator();
    2.17  			for(Statement st: statements)
    2.18  			{
    2.19 @@ -391,6 +391,7 @@
    2.20  				System.out.println("CONTEXT: "+st.getContext().toString());
    2.21  				return; //there is no point continuing in this method. Or maybe there is for geosparql reasoning
    2.22  			}
    2.23 +			return;
    2.24  		}
    2.25  
    2.26  		RDFParser parser = Rio.createParser(format);