From: <mrp...@us...> - 2014-03-12 14:26:16
|
Revision: 7940 http://sourceforge.net/p/bigdata/code/7940 Author: mrpersonick Date: 2014-03-12 14:26:12 +0000 (Wed, 12 Mar 2014) Log Message: ----------- Fixed the turtle parser to write the RDR statement inside the <<>>. Modified Paths: -------------- branches/RDR/bigdata-rdf/src/java/com/bigdata/rdf/rio/turtle/BigdataTurtleParser.java Modified: branches/RDR/bigdata-rdf/src/java/com/bigdata/rdf/rio/turtle/BigdataTurtleParser.java =================================================================== --- branches/RDR/bigdata-rdf/src/java/com/bigdata/rdf/rio/turtle/BigdataTurtleParser.java 2014-03-12 13:26:39 UTC (rev 7939) +++ branches/RDR/bigdata-rdf/src/java/com/bigdata/rdf/rio/turtle/BigdataTurtleParser.java 2014-03-12 14:26:12 UTC (rev 7940) @@ -14,6 +14,7 @@ import org.openrdf.model.URI; import org.openrdf.model.Value; import org.openrdf.model.ValueFactory; +import org.openrdf.rio.RDFHandlerException; import org.openrdf.rio.RDFParseException; import org.openrdf.rio.turtle.TurtleParser; import org.openrdf.rio.turtle.TurtleUtil; @@ -864,10 +865,18 @@ throw new RDFParseException( "You must set a ValueFactory to use the RDR syntax"); } + + try { + // write the RDR statement + reportStatement(s, p, o); + } catch (RDFHandlerException ex) { + throw new IOException(ex); + } + return valueFactory.createBNode(valueFactory.createStatement(s, p, o)); } else { reportError("expecting >> to close statement identifier"); - throw new IOException(); + throw new IOException("expecting >> to close statement identifier"); } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |