BasicIndexRuleEvaluator extends QueryEvaluator<Node> { @Override public QueryResult getResult() throws Exception { return this.getResult(false); } BasicIndexRuleEvaluator(final CommonCoreQueryEvaluator<Node> evaluator);  BasicIndexRuleEvaluator();  BasicIndexRuleEvaluator(final boolean stream);  BasicIndexRuleEvaluator(final String directoryOfIndices); long compileQuery(final String query, final boolean applySubsumptiveDemandTransformationPar); long compileQuery(final String query, final String conclusion, final boolean applySubsumptiveDemandTransformationPar); @Override long compileQuery(final String query); long compileQuery(final String query, final String conclusion); long compileQuery(final String query, final IndexScanCreatorInterface indexScanCreator); long compileQuery(final String query, final String conclusion, final IndexScanCreatorInterface indexScanCreator); long compileQuery(final String query, final boolean applySubsumptiveDemandTransformationPar, final IndexScanCreatorInterface indexScanCreator); long compileQuery(final String query, final String conclusion, final boolean applySubsumptiveDemandTransformationPar, final IndexScanCreatorInterface indexScanCreator); @Override long logicalOptimization(); @Override List<DebugContainer<BasicOperatorByteArray>> logicalOptimizationDebugByteArray(
			final Prefix prefixInstance); @Override long physicalOptimization(); @Override List<DebugContainer<BasicOperatorByteArray>> physicalOptimizationDebugByteArray(final Prefix prefixInstance); @Override long evaluateQuery(); @Override long evaluateQueryDebugSteps(final DebugStep debugstep, final Application application); QueryResult getResultWithOnDemandInference(final String inferenceRuleset, final String query); QueryResult getResultWithOnDemandInference(final String inferenceRuleset, final String query, final boolean oneTime); @Override QueryResult getResult(); QueryResult getResult(final boolean oneTime); QueryResult[] getResults(); QueryResult[] getResults(final boolean oneTime); CollectRIFResult getCollectedResults(final boolean oneTime); Result getResultOperator(); BasicOperator getRootNode(); @Override ArgumentParser getArgs(); CommonCoreQueryEvaluator<Node> getEvaluator(); @Override long prepareInputData(final Collection<URILiteral> defaultGraphs,
			final Collection<URILiteral> namedGraphs); @Override long prepareInputDataWithSourcesOfNamedGraphs(
			final Collection<URILiteral> defaultGraphs,
			final Collection<Tuple<URILiteral, URILiteral>> namedGraphs); CompilationUnit getCompilationUnit(); Document getDocument(); Root getRoot(); @Override void setupArguments(); @Override void init(); @Override void prepareForQueryDebugSteps(final DebugStep debugstep); RuleResult inferTriplesAndStoreInDataset(); QueryResult materializeInferredTriplesOfRifEngineAndGetResultOfSPARQLQuery(final String query); long compileQueryAndInferenceIntoOneOperatorgraph(final String inferenceRuleset, final String query); static void integrateInferenceOperatorgraphIntoQueryOperatorgraph(final BasicOperator rootInference, final Result resultInference, final BasicOperator rootQuery, final Result resultQuery); static void determineOperatorsConnectedWithResultOrInsert(final BasicOperator currentOperator, final LinkedList<BasicOperator> currentPath, final HashSet<BasicOperator> visited, final HashSet<BasicOperator> connectedOperators); static void deletePrecedingOperators(final BasicOperator toDelete); static LinkedList<BasicOperator> determine1stLevelTriplePatternOrIndexScans(final BasicOperator rootQuery); static boolean applySubsumptiveDemandTransformation; }
@Test public void testInsertPurgeAndInsert() throws Exception { { QueryResult selectResult = evaluator.getResult( "SELECT ?s ?p ?o " + "WHERE {?s ?p ?o.}"); assertEquals(700, selectResult.size()); } insertTriple(); { QueryResult selectResult = evaluator.getResult( "SELECT ?s ?p ?o " + "WHERE {?s ?p ?o.}"); assertEquals(701, selectResult.size()); } printInformation(); deleteTriple(); { QueryResult selectResult = evaluator.getResult( "SELECT ?s ?p ?o " + "WHERE {?s ?p ?o.}"); assertEquals(700, selectResult.size()); } insertTriple(); { QueryResult selectResult = evaluator.getResult( "SELECT ?s ?p ?o " + "WHERE {?s ?p ?o.}"); assertEquals(701, selectResult.size()); } }