From: <mrp...@us...> - 2014-04-06 16:36:31
|
Revision: 8062 http://sourceforge.net/p/bigdata/code/8062 Author: mrpersonick Date: 2014-04-06 16:36:28 +0000 (Sun, 06 Apr 2014) Log Message: ----------- fixed the toString method to handle Sids more gracefully Modified Paths: -------------- branches/RDR/bigdata-rdf/src/java/com/bigdata/rdf/store/AbstractTripleStore.java Modified: branches/RDR/bigdata-rdf/src/java/com/bigdata/rdf/store/AbstractTripleStore.java =================================================================== --- branches/RDR/bigdata-rdf/src/java/com/bigdata/rdf/store/AbstractTripleStore.java 2014-04-06 15:09:14 UTC (rev 8061) +++ branches/RDR/bigdata-rdf/src/java/com/bigdata/rdf/store/AbstractTripleStore.java 2014-04-06 16:36:28 UTC (rev 8062) @@ -95,6 +95,7 @@ import com.bigdata.rdf.internal.IExtension; import com.bigdata.rdf.internal.IExtensionFactory; import com.bigdata.rdf.internal.IV; +import com.bigdata.rdf.internal.NotMaterializedException; import com.bigdata.rdf.internal.VTE; import com.bigdata.rdf.internal.constraints.RangeBOp; import com.bigdata.rdf.internal.impl.BlobIV; @@ -3275,13 +3276,19 @@ // // } - final BigdataValue v = getTerm(iv); + String s = ""; + + try { + + final BigdataValue v = getTerm(iv); + + if (v == null) + return "<NOT_FOUND#" + iv + ">"; + + s = (v instanceof URI ? abbrev((URI) v) : v.toString()); + + } catch (NotMaterializedException ex) { } - if (v == null) - return "<NOT_FOUND#" + iv + ">"; - - final String s = (v instanceof URI ? abbrev((URI) v) : v.toString()); - return s + ("(" + iv + ")"); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |