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:
parent
1fec2825d1
commit
81733d305d
1 changed files with 3 additions and 2 deletions
|
@ -28,6 +28,7 @@ public class RDFServiceDatasetGraph implements DatasetGraph {
|
||||||
|
|
||||||
private RDFService rdfService;
|
private RDFService rdfService;
|
||||||
private Lock lock = new LockMRSW();
|
private Lock lock = new LockMRSW();
|
||||||
|
private Context context = new Context() ;
|
||||||
|
|
||||||
public RDFServiceDatasetGraph(RDFService rdfService) {
|
public RDFServiceDatasetGraph(RDFService rdfService) {
|
||||||
this.rdfService = rdfService;
|
this.rdfService = rdfService;
|
||||||
|
@ -163,7 +164,7 @@ public class RDFServiceDatasetGraph implements DatasetGraph {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Context getContext() {
|
public Context getContext() {
|
||||||
return null;
|
return context;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue