|
From: <mrp...@us...> - 2014-04-03 22:01:35
|
Revision: 8039
http://sourceforge.net/p/bigdata/code/8039
Author: mrpersonick
Date: 2014-04-03 22:01:30 +0000 (Thu, 03 Apr 2014)
Log Message:
-----------
allow strings to be produced as output and bound to outvars
Modified Paths:
--------------
branches/RDR/bigdata-rdf/src/java/com/bigdata/rdf/graph/impl/bd/GASService.java
Modified: branches/RDR/bigdata-rdf/src/java/com/bigdata/rdf/graph/impl/bd/GASService.java
===================================================================
--- branches/RDR/bigdata-rdf/src/java/com/bigdata/rdf/graph/impl/bd/GASService.java 2014-04-03 21:32:58 UTC (rev 8038)
+++ branches/RDR/bigdata-rdf/src/java/com/bigdata/rdf/graph/impl/bd/GASService.java 2014-04-03 22:01:30 UTC (rev 8039)
@@ -67,6 +67,7 @@
import com.bigdata.rdf.model.BigdataValue;
import com.bigdata.rdf.model.BigdataValueImpl;
import com.bigdata.rdf.sail.BigdataSail.BigdataSailConnection;
+import com.bigdata.rdf.sparql.ast.DummyConstantNode;
import com.bigdata.rdf.sparql.ast.GraphPatternGroup;
import com.bigdata.rdf.sparql.ast.IGroupMemberNode;
import com.bigdata.rdf.sparql.ast.StatementPatternNode;
@@ -1037,10 +1038,22 @@
final IV<BigdataValueImpl, ?> iv = lex
.getLexiconConfiguration().createInlineIV(val);
- iv.setValue((BigdataValueImpl) val);
+ if (iv != null) {
- bs.set(var, new Constant(iv));
+ iv.setValue((BigdataValueImpl) val);
+ bs.set(var, new Constant(iv));
+
+ } else if (val instanceof BigdataValue) {
+
+ bs.set(var, new Constant(DummyConstantNode.toDummyIV((BigdataValue) val)));
+
+ } else {
+
+ throw new RuntimeException("FIXME");
+
+ }
+
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|