Package com.semedy.reasoner.api.core
Class JSONCache
java.lang.Object
com.semedy.reasoner.api.core.JSONCache
Caching mechanism for querying jsons
- Author:
- angele
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
clear cacheint
how many invalidations?retrieveJsons
(JSONDeductiveDatabase jdb, String ooquery, int maxNumberOfResults, Properties builtinConfig) Retrieve JSON Objects as strings using an OO-logic query.
-
Constructor Details
-
JSONCache
public JSONCache()
-
-
Method Details
-
retrieveJsons
public List<String> retrieveJsons(JSONDeductiveDatabase jdb, String ooquery, int maxNumberOfResults, Properties builtinConfig) throws ReasoningException, InterruptedException, IOException, InstantiationException, IllegalAccessException, SemReasonerException Retrieve JSON Objects as strings using an OO-logic query.
The conditions must contain
conditions on the properties to select the objects.
As variable for the instances of the class ?Id is used.
e.g. ?- ?Id:Person, ?Id[name:?Y,age:?Z], ?Y="Kevin",?Z>20.- Parameters:
jdb
- , the json deductive databaseooquery
- , OO-logic query to filter the objectsmaxNumberOfResults
- , maximum number of results to be retrievedbuiltinConfig
- , built-in configuration like access token- Returns:
- Throws:
IOException
InterruptedException
ReasoningException
IllegalAccessException
InstantiationException
SemReasonerException
-
invalidated
public int invalidated()how many invalidations?- Returns:
-
clear
public void clear()clear cache
-