public class QueryTreeFactoryCache extends Object implements QueryTreeFactory
Constructor and Description |
---|
QueryTreeFactoryCache(QueryTreeFactory delegatee) |
Modifier and Type | Method and Description |
---|---|
void |
addDropFilters(Predicate<org.apache.jena.rdf.model.Statement>... dropFilters)
Adds a set of filters that will be applied on the model before the creation of the query tree.
|
RDFResourceTree |
getQueryTree(org.apache.jena.rdf.model.Resource resource,
org.apache.jena.rdf.model.Model model,
int maxDepth)
Generates a query tree with the given resource as root and the edges based on the data contained in the model.
|
RDFResourceTree |
getQueryTree(String example,
org.apache.jena.rdf.model.Model model,
int maxDepth)
Generates a query tree with the given resource as root and the edges based on the data contained in the model.
|
void |
setMaxDepth(int maxDepth) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getQueryTree, getQueryTree, maxDepth
public QueryTreeFactoryCache(QueryTreeFactory delegatee)
public void setMaxDepth(int maxDepth)
setMaxDepth
in interface QueryTreeFactory
maxDepth
- the maximum depth of the generated query treespublic RDFResourceTree getQueryTree(String example, org.apache.jena.rdf.model.Model model, int maxDepth)
QueryTreeFactory
getQueryTree
in interface QueryTreeFactory
example
- the resource URI which is supposed to be the root of the query treemodel
- the datamaxDepth
- the maximum depth of the query treepublic RDFResourceTree getQueryTree(org.apache.jena.rdf.model.Resource resource, org.apache.jena.rdf.model.Model model, int maxDepth)
QueryTreeFactory
getQueryTree
in interface QueryTreeFactory
resource
- the resource which is supposed to be the root of the query treemodel
- the datamaxDepth
- the maximum depth of the query tree@SafeVarargs public final void addDropFilters(Predicate<org.apache.jena.rdf.model.Statement>... dropFilters)
QueryTreeFactory
addDropFilters
in interface QueryTreeFactory
dropFilters
- the filters DL-Learner is licenced under the terms of the GNU General Public License.
Copyright © 2007-2019 Jens Lehmann