public class QueryTreeFactoryBase extends Object implements QueryTreeFactory
| Constructor and Description |
|---|
QueryTreeFactoryBase() |
| 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.
|
static String |
encode(String s) |
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.
|
static void |
main(String[] args) |
int |
maxDepth() |
void |
setMaxDepth(int maxDepth) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetQueryTree, getQueryTree, getQueryTreepublic QueryTreeFactoryBase()
public void setMaxDepth(int maxDepth)
setMaxDepth in interface QueryTreeFactorymaxDepth - the maximum depth of the generated query treespublic int maxDepth()
maxDepth in interface QueryTreeFactorypublic 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