--- a/jena/src/main/scala/JenaModel.scala Thu May 05 16:59:13 2011 -0400
+++ b/jena/src/main/scala/JenaModel.scala Thu May 05 19:08:10 2011 -0400
@@ -29,7 +29,15 @@
def hasNext = iterator.hasNext
def next = iterator.next
}
- def ++(other:Graph):Graph = new Graph(new com.hp.hpl.jena.graph.compose.Union(jenaGraph, other.jenaGraph))
+ def ++(other:Graph):Graph = {
+ val g = Factory.createDefaultGraph
+ iterator foreach { t => g add t }
+ other.iterator foreach { t => g add t }
+ new Graph(g)
+ }
+
+
+// new Graph(new com.hp.hpl.jena.graph.compose.Union(jenaGraph, other.jenaGraph))
// {
// for(triple <- other) jenaGraph add triple