Class EntityDeprecator
java.lang.Object
org.incenp.obofoundry.kgcl.owl.EntityDeprecator
Deprecates entities within an ontology.
This class provides a configurable way of deprecating entities. The configuration is based on Protégé’s concept of ”deprecation profile”.
-
Constructor Summary
ConstructorsConstructorDescriptionEntityDeprecator(org.semanticweb.owlapi.model.OWLOntology ontology) Creates a new instance with the default deprecation profile.EntityDeprecator(org.semanticweb.owlapi.model.OWLOntology ontology, org.incenp.obofoundry.kgcl.model.DeprecationProfile profile) Creates a new instance with the given deprecation profile. -
Method Summary
Modifier and TypeMethodDescriptionvoiddeprecate(org.semanticweb.owlapi.model.IRI target, org.semanticweb.owlapi.model.IRI replacement, Set<org.semanticweb.owlapi.model.IRI> alternatives, Set<org.semanticweb.owlapi.model.OWLAxiom> removed, Set<org.semanticweb.owlapi.model.OWLAxiom> added) Deprecates an entity.
-
Constructor Details
-
EntityDeprecator
public EntityDeprecator(org.semanticweb.owlapi.model.OWLOntology ontology) Creates a new instance with the default deprecation profile.The default deprecation profile corresponds to the original behaviour of KGCL-Java.
- Parameters:
ontology- The ontology in which entities are to be deprecated.
-
EntityDeprecator
public EntityDeprecator(org.semanticweb.owlapi.model.OWLOntology ontology, org.incenp.obofoundry.kgcl.model.DeprecationProfile profile) Creates a new instance with the given deprecation profile.- Parameters:
ontology- The ontology in which entities are to be deprecated.profile- The deprecation profile to use.
-
-
Method Details
-
deprecate
public void deprecate(org.semanticweb.owlapi.model.IRI target, org.semanticweb.owlapi.model.IRI replacement, Set<org.semanticweb.owlapi.model.IRI> alternatives, Set<org.semanticweb.owlapi.model.OWLAxiom> removed, Set<org.semanticweb.owlapi.model.OWLAxiom> added) Deprecates an entity.- Parameters:
target- The IRI of the entity to deprecate.replacement- The IRI of the entity that directly replaces the entity to deprecate. May benull.alternatives- The IRIs of the entities that are potential (non-direct) replacements for the entity to deprecate. May benull.removed- This will receive the axioms that are to be removed from the ontology.added- This will receive the axioms that are to be added to the ontology.
-