----------------------------------------------- Interface to the Application Layer ----------------------------------------------- Input: + queries + questions for explanations Output + query results as triples plus queryID + explanations as EXPL graphs Methods: ------------------------------------------------ 1. fetch () ------------------------------------------------ Gets all information about a given object. Is a variation of find(), see below. Input: 1. URI or bNode 2. PolicyURI Output: 1. QueryID 2. All known triples about the resource which fullfill the policy ------------------------------------------------ 2. find() ------------------------------------------------ Gets all triples which fullfil the given pattern. Input: 1. Pattern 2. PolicyURI Output: 1. QueryID 2. All known triples which fullfill the pattern and the policy ------------------------------------------------ 3. explain () ------------------------------------------------ Explains why a given triple was selected. Input: 1. Triple 2. QueryID Output: 1. Explanation Graph using the EXPL Vocabulary ------------------------------------------------ 4. deleteQueryFromCache() ------------------------------------------------ Deletes the query from the query/explanation cache in order to free resources. Input: 1. QueryID Output: 1. true/false