Strabon
changeset 647:a7188f5f0c4a temporals
Strabon now parses and stores quads, with the last element representing the context of the triple.
Sesame 2.6.9 RDFFormat of sesame now includes NQUADS so i used the respective packages of 2.6.9.
Not sure if it worths the while though.
Sesame 2.6.9 RDFFormat of sesame now includes NQUADS so i used the respective packages of 2.6.9.
Not sure if it worths the while though.
author | Konstantina Bereta <Konstantina.Bereta@di.uoa.gr> |
---|---|
date | Tue Oct 16 17:13:56 2012 +0300 (2012-10-16) |
parents | 300e958d034b |
children | 5f925d5a4885 |
files | runtime/pom.xml runtime/src/main/java/eu/earthobservatory/runtime/generaldb/Strabon.java |
line diff
1.1 --- a/runtime/pom.xml Tue Oct 16 15:47:04 2012 +0300 1.2 +++ b/runtime/pom.xml Tue Oct 16 17:13:56 2012 +0300 1.3 @@ -311,7 +311,7 @@ 1.4 <dependency> 1.5 <groupId>net.fortytwo.sesametools</groupId> 1.6 <artifactId>nquads</artifactId> 1.7 - <version>1.1</version> 1.8 + <version>1.6</version> 1.9 </dependency> 1.10 1.11 </dependencies>
2.1 --- a/runtime/src/main/java/eu/earthobservatory/runtime/generaldb/Strabon.java Tue Oct 16 15:47:04 2012 +0300 2.2 +++ b/runtime/src/main/java/eu/earthobservatory/runtime/generaldb/Strabon.java Tue Oct 16 17:13:56 2012 +0300 2.3 @@ -377,6 +377,10 @@ 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 + .getBytes() 2.10 + );*/ 2.11 Collection<Statement> statements = translator.translate(in, baseURI); 2.12 Iterator iterator = statements.iterator(); 2.13 for(Statement st: statements) 2.14 @@ -384,7 +388,7 @@ 2.15 //edw prepei na mpei sunartisi pou na metasximatizei to context an einai temporal 2.16 con1.add(st.getSubject(), st.getPredicate(), st.getObject(), st.getContext()); 2.17 System.out.println("STATEMENT: "+st.toString()); 2.18 - System.out.println("CONTEXT: "+st.getObject().toString()); 2.19 + System.out.println("CONTEXT: "+st.getContext().toString()); 2.20 return; //there is no point continuing in this method. Or maybe there is for geosparql reasoning 2.21 } 2.22 }