[Mulgara-svn] r666 - trunk/src/jar/content-n3/java/org/mulgara/content/n3
pag at mulgara.org
pag at mulgara.org
Mon Mar 3 15:36:32 UTC 2008
Author: pag
Date: 2008-03-03 07:36:31 -0800 (Mon, 03 Mar 2008)
New Revision: 666
Modified:
trunk/src/jar/content-n3/java/org/mulgara/content/n3/Parser.java
Log:
Fixed blank node allocation to not allocate a node when selecting from an N3 resolver and not loading data
Modified: trunk/src/jar/content-n3/java/org/mulgara/content/n3/Parser.java
===================================================================
--- trunk/src/jar/content-n3/java/org/mulgara/content/n3/Parser.java 2008-03-03 15:33:13 UTC (rev 665)
+++ trunk/src/jar/content-n3/java/org/mulgara/content/n3/Parser.java 2008-03-03 15:36:31 UTC (rev 666)
@@ -517,9 +517,11 @@
*/
private BlankNodeImpl createBlankNode() {
try {
- return new BlankNodeImpl(resolverSession.newBlankNode());
- } catch (NodePoolException npe) {
- throw new RuntimeException("Unable to create blank node", npe);
+ BlankNodeImpl bn = new BlankNodeImpl();
+ resolverSession.localize(bn); // This sets and returns the node ID
+ return bn;
+ } catch (LocalizeException le) {
+ throw new RuntimeException("Unable to create blank node", le);
}
}
More information about the Mulgara-svn
mailing list