public abstract class Enricher extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Enricher.ResourceFilter
Filters resources of a TripleCollcetion
|
Modifier and Type | Field and Description |
---|---|
Enricher.ResourceFilter |
acceptAll
A filter accepting all resources
|
Constructor and Description |
---|
Enricher() |
Modifier and Type | Method and Description |
---|---|
protected BNode |
createLocalBNode() |
abstract Iterator<Triple> |
filter(NonLiteral subject,
UriRef predicate,
Resource object,
TripleCollection base)
returns the additional triples to a specified base graph.
|
protected Iterator<Triple> |
filterIterator(NonLiteral subject,
UriRef predicate,
Resource object,
Iterator<Triple> baseIter)
utility method to filter an iterator
|
protected static Enricher.ResourceFilter |
getDataTypeFilter(UriRef dataType) |
protected static Enricher.ResourceFilter |
getExtensionalFilter(Resource... resources)
creates a resource filters that matches only the specified resource
|
protected static Enricher.ResourceFilter |
getFilterForSubjectsWith(UriRef predicate,
Resource object) |
protected static Enricher.ResourceFilter |
getFilterForSubjectsWithProperty(UriRef predicate) |
protected Enricher.ResourceFilter |
getLocalBNodeFilter() |
Enricher.ResourceFilter |
getObjectFilter()
The filter method of this enricher shall only be invoked with objects
matching the Filter returned by this method
|
Enricher.ResourceFilter |
getPredicateFilter()
The filter method of this enricher shall only be invoked with predicates
matching the Filter returned by this method
|
Enricher.ResourceFilter |
getSubjectFilter()
The filter method of this enricher shall only be invoked with subjects
matching the Filter returned by this method
|
abstract int |
providedTriplesCount(TripleCollection base)
returns the number of enrichment triples for
base |
public Enricher.ResourceFilter acceptAll
public abstract Iterator<Triple> filter(NonLiteral subject, UriRef predicate, Resource object, TripleCollection base)
subject
- predicate
- object
- base
- public abstract int providedTriplesCount(TripleCollection base)
base
base
- the triplecollection for which enrichment triples are generatedpublic Enricher.ResourceFilter getSubjectFilter()
public Enricher.ResourceFilter getPredicateFilter()
public Enricher.ResourceFilter getObjectFilter()
protected static Enricher.ResourceFilter getFilterForSubjectsWithProperty(UriRef predicate)
predicate
- protected static Enricher.ResourceFilter getFilterForSubjectsWith(UriRef predicate, Resource object)
protected static Enricher.ResourceFilter getExtensionalFilter(Resource... resources)
resources
- protected static Enricher.ResourceFilter getDataTypeFilter(UriRef dataType)
dataType
- protected BNode createLocalBNode()
protected Enricher.ResourceFilter getLocalBNodeFilter()
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.