public interface ConciseBoundedDescriptionGenerator
...a concise bounded description of a resource in terms of an RDF graph, as a general and broadly optimal unit of specific knowledge about that resource to be utilized by, and/or interchanged between, semantic web agents.
Given a particular node in a particular RDF graph, a concise bounded description is a subgraph consisting of those statements which together constitute a focused body of knowledge about the resource denoted by that particular node. The precise nature of that subgraph will hopefully become clear given the definition, discussion and example provided below.
Optimality is, of course, application dependent and it is not presumed that a concise bounded description is an optimal form of description for every application; however, it is presented herein as a reasonably general and broadly optimal form of description for many applications, and unless otherwise warranted, constitutes a reasonable default response to the request "tell me about this resource".
Modifier and Type | Method and Description |
---|---|
default org.apache.jena.rdf.model.Model |
getConciseBoundedDescription(Set<String> resources)
Computes the CBDs (of given depth 1) for the given resources and puts them into a single model.
|
default org.apache.jena.rdf.model.Model |
getConciseBoundedDescription(Set<String> resources,
int depth)
Computes the CBDs of given depth for the given resources and puts them into a single model.
|
default org.apache.jena.rdf.model.Model |
getConciseBoundedDescription(Set<String> resources,
int depth,
boolean withTypesForLeafs)
Computes the CBD of given depth for the given resources and puts them into a single model.
|
default org.apache.jena.rdf.model.Model |
getConciseBoundedDescription(String resource)
Computes the CBD (of depth 1) for the given resource.
|
default org.apache.jena.rdf.model.Model |
getConciseBoundedDescription(String resource,
int depth)
Computes the CBD of given depth for the given resource.
|
org.apache.jena.rdf.model.Model |
getConciseBoundedDescription(String resource,
int depth,
boolean withTypesForLeafs)
Computes the CBD of given depth for the given resource.
|
default void |
setAllowedClassNamespaces(Set<String> namespaces)
Set the allowed namespaces for classes occuring in object position of the retrieved triples.
|
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.
|
default String |
triplePattern(String s,
String p,
String o) |
static final String TP
default String triplePattern(String s, String p, String o)
default org.apache.jena.rdf.model.Model getConciseBoundedDescription(String resource)
resource
- the resource URIdefault org.apache.jena.rdf.model.Model getConciseBoundedDescription(String resource, int depth)
resource
- the resource URIdepth
- the max. depth of the CBDorg.apache.jena.rdf.model.Model getConciseBoundedDescription(String resource, int depth, boolean withTypesForLeafs)
resource
- the resource URIdepth
- the max. depth of the CBDwithTypesForLeafs
- whether to get the types of the leaf nodesdefault org.apache.jena.rdf.model.Model getConciseBoundedDescription(Set<String> resources)
resources
- the resource URIsdefault org.apache.jena.rdf.model.Model getConciseBoundedDescription(Set<String> resources, int depth)
resources
- the resource URIsdepth
- the max. depth of the CBDsdefault org.apache.jena.rdf.model.Model getConciseBoundedDescription(Set<String> resources, int depth, boolean withTypesForLeafs)
resources
- the resource URIsdepth
- the max. depth of the CBDswithTypesForLeafs
- whether to get the types of the leaf nodesvoid setAllowedPropertyNamespaces(Set<String> namespaces)
namespaces
- the allowed property namespacesvoid setAllowedObjectNamespaces(Set<String> namespaces)
namespaces
- the allowed namespacesdefault void setAllowedClassNamespaces(Set<String> namespaces)
namespaces
- the allowed namespacesvoid setIgnoredProperties(Set<String> properties)
properties
- the ignored properties DL-Learner is licenced under the terms of the GNU General Public License.
Copyright © 2007-2019 Jens Lehmann