public class BlanknodeResolvingCBDGenerator extends Object implements ConciseBoundedDescriptionGenerator
TP| Constructor and Description |
|---|
BlanknodeResolvingCBDGenerator(org.apache.jena.rdf.model.Model model) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.jena.rdf.model.Model |
getConciseBoundedDescription(String resourceURI)
Computes the CBD (of depth 1) for the given resource.
|
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.
|
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, waitgetConciseBoundedDescription, getConciseBoundedDescription, getConciseBoundedDescription, setAllowedClassNamespaces, triplePatternpublic BlanknodeResolvingCBDGenerator(org.apache.jena.rdf.model.Model model)
public org.apache.jena.rdf.model.Model getConciseBoundedDescription(String resourceURI)
ConciseBoundedDescriptionGeneratorgetConciseBoundedDescription in interface ConciseBoundedDescriptionGeneratorresourceURI - the resource URIpublic org.apache.jena.rdf.model.Model getConciseBoundedDescription(String resource, int depth)
ConciseBoundedDescriptionGeneratorgetConciseBoundedDescription in interface ConciseBoundedDescriptionGeneratorresource - the resource URIdepth - the max. depth of the CBDpublic org.apache.jena.rdf.model.Model getConciseBoundedDescription(String resource, int depth, boolean withTypesForLeafs)
ConciseBoundedDescriptionGeneratorgetConciseBoundedDescription in interface ConciseBoundedDescriptionGeneratorresource - the resource URIdepth - the max. depth of the CBDwithTypesForLeafs - whether to get the types of the leaf nodespublic void setIgnoredProperties(Set<String> properties)
ConciseBoundedDescriptionGeneratorsetIgnoredProperties in interface ConciseBoundedDescriptionGeneratorproperties - the ignored propertiespublic void setAllowedPropertyNamespaces(Set<String> namespaces)
ConciseBoundedDescriptionGeneratorsetAllowedPropertyNamespaces in interface ConciseBoundedDescriptionGeneratornamespaces - the allowed property namespacespublic void setAllowedObjectNamespaces(Set<String> namespaces)
ConciseBoundedDescriptionGeneratorsetAllowedObjectNamespaces in interface ConciseBoundedDescriptionGeneratornamespaces - the allowed namespaces
DL-Learner is licenced under the terms of the GNU General Public License.
Copyright © 2007-2019 Jens Lehmann