Package com.semedy.reasoner.api.core
Class TripleCache
java.lang.Object
com.semedy.reasoner.api.core.TripleCache
A caching mechanism for querying triples
- Author:
- angele
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioninthow many invalidations?query(DeductiveDatabase ddb, String ooquery, int maxNumberOfResults) Retrieve triples using an OO-logic query.query(DeductiveDatabase ddb, String ooquery, int maxNumberOfResults, boolean withCodes) Retrieve triples using an OO-logic query.
-
Constructor Details
-
TripleCache
public TripleCache()
-
-
Method Details
-
query
public List<Object[]> query(DeductiveDatabase ddb, String ooquery, int maxNumberOfResults, boolean withCodes) throws ReasoningException, InterruptedException, IOException, SemReasonerException Retrieve triples using an OO-logic query.
The conditions must contain
conditions on the properties to select the objects.- Parameters:
ddb- , the deductive databaseooquery- , OO-logic query to filter the objectsmaxNumberOfResults- , max number of results to be retrievedwithCodes- , codes are also delivered- Returns:
- Throws:
IOExceptionInterruptedExceptionReasoningExceptionSemReasonerException
-
query
public List<Object[]> query(DeductiveDatabase ddb, String ooquery, int maxNumberOfResults) throws ReasoningException, InterruptedException, IOException, SemReasonerException Retrieve triples using an OO-logic query.
The conditions must contain
conditions on the properties to select the objects.- Parameters:
ddb- , the deductive databaseooquery- , OO-logic query to filter the objectsmaxNumberOfResults- , max number of results to be retrieved- Returns:
- Throws:
IOExceptionInterruptedExceptionReasoningExceptionSemReasonerException
-
invalidated
public int invalidated()how many invalidations?- Returns:
-