[TASK] Reduce amount of windows.
This commit is contained in:
parent
471fbdb8a6
commit
00f063bff8
|
@ -183,12 +183,16 @@ public class SimulationContext {
|
||||||
RDFStreamFormatter rdfStreamFormatter = new RDFStreamFormatter(streamUri);
|
RDFStreamFormatter rdfStreamFormatter = new RDFStreamFormatter(streamUri);
|
||||||
engine.registerStream(rdfStreamFormatter);
|
engine.registerStream(rdfStreamFormatter);
|
||||||
resultProxy.addObserver(rdfStreamFormatter);
|
resultProxy.addObserver(rdfStreamFormatter);
|
||||||
Observer resultObserver = this.createResultObserverWindow(queryContainer.name);
|
if(queryContainer.useObserverWindow) {
|
||||||
resultProxy.addObserver(resultObserver);
|
Observer resultObserver = this.createResultObserverWindow(queryContainer.name);
|
||||||
|
resultProxy.addObserver(resultObserver);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
// If it is a regular query, just attach a fitting observer
|
// If it is a regular query, just attach a fitting observer, if enabled
|
||||||
Observer resultObserver = this.createResultObserverWindow(queryContainer.name);
|
if(queryContainer.useObserverWindow) {
|
||||||
resultProxy.addObserver(resultObserver);
|
Observer resultObserver = this.createResultObserverWindow(queryContainer.name);
|
||||||
|
resultProxy.addObserver(resultObserver);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// Attach custom observers to resultProxy if available
|
// Attach custom observers to resultProxy if available
|
||||||
// These are used for SPARQL UPDATE queries on local domain knowledge
|
// These are used for SPARQL UPDATE queries on local domain knowledge
|
||||||
|
|
Loading…
Reference in New Issue