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, wait
getQueryTree, getQueryTree, getQueryTree
public QueryTreeFactoryBase()
public void setMaxDepth(int maxDepth)
setMaxDepth
in interface QueryTreeFactory
maxDepth
- the maximum depth of the generated query treespublic int maxDepth()
maxDepth
in interface QueryTreeFactory
public 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