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, wait
getConciseBoundedDescription, getConciseBoundedDescription, getConciseBoundedDescription, setAllowedClassNamespaces, triplePattern
public BlanknodeResolvingCBDGenerator(org.apache.jena.rdf.model.Model model)
public org.apache.jena.rdf.model.Model getConciseBoundedDescription(String resourceURI)
ConciseBoundedDescriptionGenerator
getConciseBoundedDescription
in interface ConciseBoundedDescriptionGenerator
resourceURI
- the resource URIpublic org.apache.jena.rdf.model.Model getConciseBoundedDescription(String resource, int depth)
ConciseBoundedDescriptionGenerator
getConciseBoundedDescription
in interface ConciseBoundedDescriptionGenerator
resource
- the resource URIdepth
- the max. depth of the CBDpublic 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 setIgnoredProperties(Set<String> properties)
ConciseBoundedDescriptionGenerator
setIgnoredProperties
in interface ConciseBoundedDescriptionGenerator
properties
- the ignored propertiespublic void setAllowedPropertyNamespaces(Set<String> namespaces)
ConciseBoundedDescriptionGenerator
setAllowedPropertyNamespaces
in interface ConciseBoundedDescriptionGenerator
namespaces
- the allowed property namespacespublic 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