public class BaseSmusher extends Object
Constructor and Description |
---|
BaseSmusher() |
Modifier and Type | Method and Description |
---|---|
protected IRI |
getPreferedIRI(Set<IRI> uriRefs)
Returns a prefered IRI for the IRIs in a set.
|
void |
smush(Graph mGraph,
Set<Set<BlankNodeOrIRI>> equivalenceSets,
boolean addOwlSameAs)
Smushes the resources in mGraph that belong to the same set in equivalenceSets,
i.e.
|
public void smush(Graph mGraph, Set<Set<BlankNodeOrIRI>> equivalenceSets, boolean addOwlSameAs)
Optionally owl:sameAs statement are added that point from the IRIs that no longer have properties to the one with properties. If addOwlSameAs is false the IRIs will just disappear from the graph.
mGraph
- the graph to smushequivalenceSets
- sets of equivalent resourcesaddOwlSameAs
- whether owl:sameAs statements should be addedCopyright © 2015–2022 The Apache Software Foundation. All rights reserved.