VIVO-773 Add a Context to RDFServiceDatasetGraph.

Every attempt at SPARQL Update fails because RDFServiceDatasetGraph.getContext() returns null.
I see that DatasetGraphBase just creates an empty Context on instantiation, so now RDFServiceDatasetGraph
does the same, and the problem goes away.
This commit is contained in:
Jim Blake 2014-06-13 10:24:21 -04:00
parent 1fec2825d1
commit 81733d305d

View file

@ -28,6 +28,7 @@ public class RDFServiceDatasetGraph implements DatasetGraph {
private RDFService rdfService;
private Lock lock = new LockMRSW();
private Context context = new Context() ;
public RDFServiceDatasetGraph(RDFService rdfService) {
this.rdfService = rdfService;
@ -163,7 +164,7 @@ public class RDFServiceDatasetGraph implements DatasetGraph {
@Override
public Context getContext() {
return null;
return context;
}
@Override