public class ConflictResolverFactory extends Object
Constructor and Description |
---|
ConflictResolverFactory(String resultGraphPrefix,
ConflictResolutionConfig globalConfig)
Creates a new instance with the given settings passed to newly created ConflictResolver instances.
|
ConflictResolverFactory(String resultGraphPrefix,
ConflictResolutionConfig globalConfig,
AggregationSpec defaultAggregationSpec)
Creates a new instance with the given settings passed to newly created ConflictResolver instances.
|
Modifier and Type | Method and Description |
---|---|
ConflictResolver |
createResolver(AggregationSpec aggregationSpec,
NamedGraphMetadataMap metadata)
Return a new instance of ConflictResolver.
|
ConflictResolver |
createResolver(AggregationSpec aggregationSpec,
NamedGraphMetadataMap metadata,
Iterator<com.hp.hpl.jena.graph.Triple> sameAsLinks,
Set<String> preferredURIs)
Return a new instance of ConflictResolver.
|
ConflictResolver |
createResolver(AggregationSpec aggregationSpec,
NamedGraphMetadataMap metadata,
URIMapping uriMapping)
Return a new instance of ConflictResolver.
|
public ConflictResolverFactory(String resultGraphPrefix, ConflictResolutionConfig globalConfig, AggregationSpec defaultAggregationSpec)
resultGraphPrefix
- prefix of URIs of named graphs where resolved triples are placedglobalConfig
- global configuration CR settings
property names must not contain prefixed names
(overridden by aggregationSpec passed to #createResolver()
)defaultAggregationSpec
- default aggregation settings for conflict resolution;
(overridden by aggregationSpec passed to #createResolver()
)public ConflictResolverFactory(String resultGraphPrefix, ConflictResolutionConfig globalConfig)
resultGraphPrefix
- prefix of URIs of named graphs where resolved triples are placedglobalConfig
- global configuration CR settings
property names must not contain prefixed namespublic ConflictResolver createResolver(AggregationSpec aggregationSpec, NamedGraphMetadataMap metadata)
aggregationSpec
- aggregation settings; these have preference over those given in the constructormetadata
- metadata about named graphs of resolved quadspublic ConflictResolver createResolver(AggregationSpec aggregationSpec, NamedGraphMetadataMap metadata, URIMapping uriMapping)
aggregationSpec
- aggregation settings; these have preference over those given in the constructormetadata
- metadata about named graphs of resolved quadsuriMapping
- mapping of URIs to their canonical URI (based on owl:sameAs links)preferredURIs
- set of URIs preferred as canonical URIspublic ConflictResolver createResolver(AggregationSpec aggregationSpec, NamedGraphMetadataMap metadata, Iterator<com.hp.hpl.jena.graph.Triple> sameAsLinks, Set<String> preferredURIs)
aggregationSpec
- aggregation settings; these have preference over those given in the constructormetadata
- metadata about named graphs of resolved quadssameAsLinks
- collection of owl:sameAs links to be considered during the conflict resolution processpreferredURIs
- set of URIs preferred as canonical URIsCopyright © 2013. All Rights Reserved.