public class SymmetricConciseBoundedDescriptionGeneratorImpl extends Object implements ConciseBoundedDescriptionGenerator
An alternative form of description, which includes all statements expressed along both outbound and inbound arc paths, terminated in like fashion as a concise bounded description but extending from the starting node in both directions; thus enabling the requesting agent to potentially infer itself any implicit statements based on symmetric property pairs. We can call this derivative of a concise bounded description a symmetric concise bounded description.
Specifically, given a particular node (the starting node) in a particular RDF graph (the source graph), a subgraph of that particular graph, taken to comprise a symmetric concise bounded description of the resource denoted by the starting node, can be identified as follows:
TP
Constructor and Description |
---|
SymmetricConciseBoundedDescriptionGeneratorImpl(org.apache.jena.rdf.model.Model model) |
SymmetricConciseBoundedDescriptionGeneratorImpl(org.aksw.jena_sparql_api.core.QueryExecutionFactory qef) |
SymmetricConciseBoundedDescriptionGeneratorImpl(SparqlEndpoint endpoint) |
SymmetricConciseBoundedDescriptionGeneratorImpl(SparqlEndpoint endpoint,
org.aksw.jena_sparql_api.cache.extra.CacheFrontend cache) |
Modifier and Type | Method and Description |
---|---|
org.apache.jena.rdf.model.Model |
getConciseBoundedDescription(String resource,
int depth,
boolean withTypesForLeafs)
Computes the CBD of given depth for the given resource.
|
static void |
main(String[] args) |
void |
setAllowedObjectNamespaces(Set<String> namespaces)
Set the allowed namespaces for resources occuring in object position of the retrieved triples.
|
void |
setAllowedPropertyNamespaces(Set<String> namespaces)
Set the property namespaces allowed to occur in triples of the generated CBD.
|
void |
setIgnoredProperties(Set<String> properties)
Set the properties allowed to occur in triples of the generated CBD.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConciseBoundedDescription, getConciseBoundedDescription, getConciseBoundedDescription, getConciseBoundedDescription, getConciseBoundedDescription, setAllowedClassNamespaces, triplePattern
public SymmetricConciseBoundedDescriptionGeneratorImpl(SparqlEndpoint endpoint, org.aksw.jena_sparql_api.cache.extra.CacheFrontend cache)
public SymmetricConciseBoundedDescriptionGeneratorImpl(SparqlEndpoint endpoint)
public SymmetricConciseBoundedDescriptionGeneratorImpl(org.aksw.jena_sparql_api.core.QueryExecutionFactory qef)
public SymmetricConciseBoundedDescriptionGeneratorImpl(org.apache.jena.rdf.model.Model model)
public org.apache.jena.rdf.model.Model getConciseBoundedDescription(String resource, int depth, boolean withTypesForLeafs)
ConciseBoundedDescriptionGenerator
getConciseBoundedDescription
in interface ConciseBoundedDescriptionGenerator
resource
- the resource URIdepth
- the max. depth of the CBDwithTypesForLeafs
- whether to get the types of the leaf nodespublic void setAllowedPropertyNamespaces(Set<String> namespaces)
ConciseBoundedDescriptionGenerator
setAllowedPropertyNamespaces
in interface ConciseBoundedDescriptionGenerator
namespaces
- the allowed property namespacespublic void setIgnoredProperties(Set<String> properties)
ConciseBoundedDescriptionGenerator
setIgnoredProperties
in interface ConciseBoundedDescriptionGenerator
properties
- the ignored propertiespublic void setAllowedObjectNamespaces(Set<String> namespaces)
ConciseBoundedDescriptionGenerator
setAllowedObjectNamespaces
in interface ConciseBoundedDescriptionGenerator
namespaces
- the allowed namespaces DL-Learner is licenced under the terms of the GNU General Public License.
Copyright © 2007-2019 Jens Lehmann