public class ABoxUpdater extends Object
| Constructor and Description |
|---|
ABoxUpdater(UpdateSettings settings,
ChangeLogger logger,
ChangeRecord record)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addClass(AtomicOntologyChange change)
Examine the knowledge base for a class addition to the ontology and
add messages to the change log indicating where manual review is
recommended.
|
protected int |
deleteIndividual(org.apache.jena.rdf.model.Resource individual) |
void |
deleteIndividualsOfType(AtomicOntologyChange change)
Remove all instances of the given class from the abox of the knowledge base.
|
void |
logChange(org.apache.jena.rdf.model.Statement statement,
boolean add) |
void |
logChanges(org.apache.jena.rdf.model.Statement oldStatement,
org.apache.jena.rdf.model.Statement newStatement) |
void |
processClassChanges(List<AtomicOntologyChange> changes)
Update a knowledge base to align with changes in the class definitions in
a new version of the ontology.
|
void |
processPropertyChanges(List<AtomicOntologyChange> changes) |
void |
renameClass(AtomicOntologyChange change)
Update the knowledge base for a class rename in the ontology.
|
void |
renameClassToParent(AtomicOntologyChange change)
Update a knowledge base to account for a class deletion in the ontology.
|
static String |
stmtString(org.apache.jena.rdf.model.Resource subject,
org.apache.jena.rdf.model.Property predicate,
org.apache.jena.rdf.model.RDFNode object) |
static String |
stmtString(org.apache.jena.rdf.model.Statement statement) |
public ABoxUpdater(UpdateSettings settings, ChangeLogger logger, ChangeRecord record)
settings - - Update settingslogger - - for writing to the change log
and the error log.record - - for writing to the additions model
and the retractions model.public void processClassChanges(List<AtomicOntologyChange> changes) throws IOException
changes - - a list of AtomicOntologyChange objects, each representing
one change in class definition in the new version of the
ontology.
Writes to the change log file, the error log file, and the incremental change
knowledge base.IOExceptionpublic void renameClass(AtomicOntologyChange change) throws IOException
change - - an AtomicOntologyChange object representing a class
rename operation.IOExceptionpublic void addClass(AtomicOntologyChange change) throws IOException
change - - an AtomicOntologyChange object representing a class
addition operation.IOExceptionpublic void renameClassToParent(AtomicOntologyChange change) throws IOException
change - - an AtomicOntologyChange object representing a class
delete operation.IOExceptionpublic void deleteIndividualsOfType(AtomicOntologyChange change) throws IOException
change - - an AtomicOntologyChange object representing a class
delete operation.IOExceptionprotected int deleteIndividual(org.apache.jena.rdf.model.Resource individual)
throws IOException
IOExceptionpublic void processPropertyChanges(List<AtomicOntologyChange> changes) throws IOException
IOExceptionpublic void logChanges(org.apache.jena.rdf.model.Statement oldStatement,
org.apache.jena.rdf.model.Statement newStatement)
throws IOException
IOExceptionpublic void logChange(org.apache.jena.rdf.model.Statement statement,
boolean add)
throws IOException
IOExceptionpublic static String stmtString(org.apache.jena.rdf.model.Statement statement)
public static String stmtString(org.apache.jena.rdf.model.Resource subject, org.apache.jena.rdf.model.Property predicate, org.apache.jena.rdf.model.RDFNode object)
Copyright © 2022. All rights reserved.