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, waitgetQueryTree, getQueryTree, maxDepthpublic QueryTreeFactoryCache(QueryTreeFactory delegatee)
public void setMaxDepth(int maxDepth)
setMaxDepth in interface QueryTreeFactorymaxDepth - the maximum depth of the generated query treespublic RDFResourceTree getQueryTree(String example, org.apache.jena.rdf.model.Model model, int maxDepth)
QueryTreeFactorygetQueryTree in interface QueryTreeFactoryexample - 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)
QueryTreeFactorygetQueryTree in interface QueryTreeFactoryresource - 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)
QueryTreeFactoryaddDropFilters in interface QueryTreeFactorydropFilters - the filters
DL-Learner is licenced under the terms of the GNU General Public License.
Copyright © 2007-2019 Jens Lehmann