Strabon

changeset 763:d715fd304e9e temporals

storing metadata before the data
author Konstantina Bereta <Konstantina.Bereta@di.uoa.gr>
date Sat Dec 01 21:21:42 2012 +0200 (2012-12-01)
parents 33f3fa561579
children cdfdf384451a 6aa5f315664a
files runtime/src/main/java/eu/earthobservatory/runtime/generaldb/Strabon.java
line diff
     1.1 --- a/runtime/src/main/java/eu/earthobservatory/runtime/generaldb/Strabon.java	Sat Dec 01 20:07:42 2012 +0200
     1.2 +++ b/runtime/src/main/java/eu/earthobservatory/runtime/generaldb/Strabon.java	Sat Dec 01 21:21:42 2012 +0200
     1.3 @@ -487,6 +487,8 @@
     1.4  			Collection<Statement> statements = translator.translate(in, baseURI);
     1.5  			System.out.println("Translated NQUADS to NTRIPLES!");
     1.6  			Iterator iterator = statements.iterator();
     1.7 +			StringReader quadGraphReader = new StringReader(translator.getHandledTriples().toString());
     1.8 +			con1.add(quadGraphReader, "", RDFFormat.NTRIPLES);
     1.9  			for(Statement st: statements)
    1.10  			{
    1.11  				//edw prepei na mpei sunartisi pou na metasximatizei to context an einai temporal
    1.12 @@ -507,8 +509,7 @@
    1.13  					e.printStackTrace();
    1.14  				}
    1.15  			}
    1.16 -			StringReader quadGraphReader = new StringReader(translator.getHandledTriples().toString());
    1.17 -			con1.add(quadGraphReader, "", RDFFormat.NTRIPLES);
    1.18 +			
    1.19  			return;
    1.20  		}
    1.21