public class OWLRDFConsumer extends Object implements RDFConsumer
| Modifier and Type | Field and Description |
|---|---|
protected Map<org.semanticweb.owlapi.model.IRI,BuiltInTypeHandler> |
axiomTypeTripleHandlers
The axiom type triple handlers.
|
protected TPInverseOfHandler |
inverseOfHandler
The inverse of handler.
|
protected List<AbstractLiteralTripleHandler> |
literalTripleHandlers
The literal triple handlers.
|
protected List<AbstractResourceTripleHandler> |
resourceTripleHandlers
The resource triple handlers.
|
| Constructor and Description |
|---|
OWLRDFConsumer(org.semanticweb.owlapi.model.OWLOntology ontology,
AnonymousNodeChecker checker,
org.semanticweb.owlapi.model.OWLOntologyLoaderConfiguration configuration)
Instantiates a new oWLRDF consumer.
|
OWLRDFConsumer(org.semanticweb.owlapi.model.OWLOntologyManager owlOntologyManager,
org.semanticweb.owlapi.model.OWLOntology ontology,
AnonymousNodeChecker checker,
org.semanticweb.owlapi.model.OWLOntologyLoaderConfiguration configuration)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAnnotatedSource(org.semanticweb.owlapi.model.IRI annotatedAnonSource,
org.semanticweb.owlapi.model.IRI annotationMainNode)
Records an annotation of an anonymous node (either an annotation of an
annotation, or an annotation of an axiom for example).
|
protected void |
addAnnotationIRI(org.semanticweb.owlapi.model.IRI iri)
Adds the annotation iri.
|
protected void |
addAnnotationProperty(org.semanticweb.owlapi.model.IRI iri,
boolean explicitlyTyped)
Adds the annotation property.
|
void |
addAxiom(org.semanticweb.owlapi.model.IRI axiomIRI)
Adds the axiom.
|
protected void |
addAxiom(org.semanticweb.owlapi.model.OWLAxiom axiom)
Adds the axiom.
|
void |
addClassExpression(org.semanticweb.owlapi.model.IRI iri,
boolean explicitlyTyped)
Adds the class expression.
|
void |
addDataProperty(org.semanticweb.owlapi.model.IRI iri,
boolean explicitlyTyped)
Adds the data property.
|
void |
addDataRange(org.semanticweb.owlapi.model.IRI iri,
boolean explicitlyTyped)
Adds the data range.
|
void |
addFirst(org.semanticweb.owlapi.model.IRI subject,
org.semanticweb.owlapi.model.IRI object)
Adds the first.
|
void |
addFirst(org.semanticweb.owlapi.model.IRI subject,
org.semanticweb.owlapi.model.OWLLiteral object)
Adds the first.
|
protected void |
addImport(org.semanticweb.owlapi.model.OWLImportsDeclaration declaration)
Adds the import.
|
void |
addModelAttribte(String string,
String string1)
Receives the notification that the attribute and its value has been
parsed.
|
void |
addObjectProperty(org.semanticweb.owlapi.model.IRI iri,
boolean explicitlyTyped)
Adds the object property.
|
void |
addOntology(org.semanticweb.owlapi.model.IRI iri)
Adds the ontology.
|
protected void |
addOntologyAnnotation(org.semanticweb.owlapi.model.OWLAnnotation annotation)
Adds the ontology annotation.
|
protected void |
addOWLNamedIndividual(org.semanticweb.owlapi.model.IRI iri,
boolean explicitlyType)
Adds the owl named individual.
|
protected void |
addOWLRestriction(org.semanticweb.owlapi.model.IRI iri,
boolean explicitlyTyped)
Adds the owl restriction.
|
protected void |
addRDFProperty(org.semanticweb.owlapi.model.IRI iri)
Adds the rdf property.
|
void |
addRest(org.semanticweb.owlapi.model.IRI subject,
org.semanticweb.owlapi.model.IRI object)
Adds the rest.
|
protected void |
addSharedAnonymousNode(org.semanticweb.owlapi.model.IRI iri,
Object translation)
Adds the shared anonymous node.
|
protected void |
addSWRLBuiltInAtom(org.semanticweb.owlapi.model.IRI iri)
Adds the swrl built in atom.
|
protected void |
addSWRLClassAtom(org.semanticweb.owlapi.model.IRI iri)
Adds the swrl class atom.
|
protected void |
addSWRLDataPropertyAtom(org.semanticweb.owlapi.model.IRI iri)
Adds the swrl data property atom.
|
protected void |
addSWRLDataRangeAtom(org.semanticweb.owlapi.model.IRI iri)
Adds the swrl data range atom.
|
protected void |
addSWRLDifferentFromAtom(org.semanticweb.owlapi.model.IRI iri)
Adds the swrl different from atom.
|
protected void |
addSWRLIndividualPropertyAtom(org.semanticweb.owlapi.model.IRI iri)
Adds the swrl individual property atom.
|
protected void |
addSWRLRule(org.semanticweb.owlapi.model.IRI iri)
Adds the swrl rule.
|
protected void |
addSWRLSameAsAtom(org.semanticweb.owlapi.model.IRI iri)
Adds the swrl same as atom.
|
protected void |
addSWRLVariable(org.semanticweb.owlapi.model.IRI iri)
Adds the swrl variable.
|
void |
addTriple(org.semanticweb.owlapi.model.IRI subject,
org.semanticweb.owlapi.model.IRI predicate,
org.semanticweb.owlapi.model.IRI object)
Adds the triple.
|
void |
addTriple(org.semanticweb.owlapi.model.IRI subject,
org.semanticweb.owlapi.model.IRI predicate,
org.semanticweb.owlapi.model.OWLLiteral con)
Adds the triple.
|
protected void |
applyChange(org.semanticweb.owlapi.model.OWLOntologyChange change)
Apply change.
|
protected void |
checkForAndProcessAnnotatedDeclaration(org.semanticweb.owlapi.model.IRI mainNode)
Check for and process annotated declaration.
|
protected void |
consumeTriple(org.semanticweb.owlapi.model.IRI subject,
org.semanticweb.owlapi.model.IRI predicate,
org.semanticweb.owlapi.model.IRI object)
Consume triple.
|
protected void |
consumeTriple(org.semanticweb.owlapi.model.IRI subject,
org.semanticweb.owlapi.model.IRI predicate,
org.semanticweb.owlapi.model.OWLLiteral con)
Consume triple.
|
protected void |
dumpRemainingTriples()
Dump remaining triples.
|
void |
endModel()
Called when model parsing is finished.
|
Set<org.semanticweb.owlapi.model.IRI> |
getAnnotatedSourceAnnotationMainNodes(org.semanticweb.owlapi.model.IRI source)
Gets the main nodes of annotations that annotated the specified source.
|
org.semanticweb.owlapi.model.OWLClassExpression |
getClassExpressionIfTranslated(org.semanticweb.owlapi.model.IRI mainNode)
Gets the class expression if translated.
|
org.semanticweb.owlapi.model.OWLOntologyLoaderConfiguration |
getConfiguration()
Gets the configuration.
|
org.semanticweb.owlapi.model.OWLDataFactory |
getDataFactory()
Gets the data factory.
|
org.semanticweb.owlapi.model.OWLLiteral |
getFirstLiteral(org.semanticweb.owlapi.model.IRI subject)
Gets the first literal.
|
org.semanticweb.owlapi.model.IRI |
getFirstResource(org.semanticweb.owlapi.model.IRI subject,
boolean consume)
Gets the first resource.
|
org.semanticweb.owlapi.model.OWLAxiom |
getLastAddedAxiom()
Gets the last added axiom.
|
org.semanticweb.owlapi.model.OWLLiteral |
getLiteralObject(org.semanticweb.owlapi.model.IRI subject,
org.semanticweb.owlapi.model.IRI predicate,
boolean consume)
Gets the literal object.
|
org.semanticweb.owlapi.model.OWLLiteral |
getLiteralObject(org.semanticweb.owlapi.model.IRI subject,
org.semanticweb.owlapi.vocab.OWLRDFVocabulary predicate,
boolean consume)
Gets the literal object.
|
Set<org.semanticweb.owlapi.model.OWLLiteral> |
getLiteralObjects(org.semanticweb.owlapi.model.IRI subject,
org.semanticweb.owlapi.model.IRI predicate)
Gets the literal objects.
|
Set<org.semanticweb.owlapi.model.IRI> |
getOntologies()
Gets the ontologies.
|
org.semanticweb.owlapi.model.OWLOntology |
getOntology()
Gets the ontology.
|
org.semanticweb.owlapi.io.RDFOntologyFormat |
getOntologyFormat()
Gets the ontology format.
|
protected org.semanticweb.owlapi.model.OWLClass |
getOWLClass(org.semanticweb.owlapi.model.IRI iri)
Gets the oWL class.
|
protected org.semanticweb.owlapi.model.OWLDataProperty |
getOWLDataProperty(org.semanticweb.owlapi.model.IRI iri)
Gets the oWL data property.
|
protected org.semanticweb.owlapi.model.OWLIndividual |
getOWLIndividual(org.semanticweb.owlapi.model.IRI iri)
Gets the oWL individual.
|
protected org.semanticweb.owlapi.model.OWLObjectProperty |
getOWLObjectProperty(org.semanticweb.owlapi.model.IRI iri)
Gets the oWL object property.
|
org.semanticweb.owlapi.model.OWLOntologyManager |
getOWLOntologyManager()
Gets the oWL ontology manager.
|
Set<org.semanticweb.owlapi.model.OWLAnnotation> |
getPendingAnnotations()
Gets any annotations that were translated since the last call of this
method (calling this method clears the current pending annotations).
|
Set<org.semanticweb.owlapi.model.IRI> |
getPredicatesBySubject(org.semanticweb.owlapi.model.IRI subject)
Gets the predicates by subject.
|
org.semanticweb.owlapi.model.IRI |
getResourceObject(org.semanticweb.owlapi.model.IRI subject,
org.semanticweb.owlapi.model.IRI predicate,
boolean consume)
Gets the resource object.
|
org.semanticweb.owlapi.model.IRI |
getResourceObject(org.semanticweb.owlapi.model.IRI subject,
org.semanticweb.owlapi.vocab.OWLRDFVocabulary predicate,
boolean consume)
Gets the resource object.
|
Set<org.semanticweb.owlapi.model.IRI> |
getResourceObjects(org.semanticweb.owlapi.model.IRI subject,
org.semanticweb.owlapi.model.IRI predicate)
Gets the resource objects.
|
org.semanticweb.owlapi.model.IRI |
getRest(org.semanticweb.owlapi.model.IRI subject,
boolean consume)
Gets the rest.
|
protected Object |
getSharedAnonymousNode(org.semanticweb.owlapi.model.IRI iri)
Gets the shared anonymous node.
|
org.semanticweb.owlapi.model.IRI |
getSynonym(org.semanticweb.owlapi.model.IRI original)
Gets the synonym.
|
void |
handle(org.semanticweb.owlapi.model.IRI subject,
org.semanticweb.owlapi.model.IRI predicate,
org.semanticweb.owlapi.model.IRI object)
Handles triples in a non-streaming mode.
|
void |
handle(org.semanticweb.owlapi.model.IRI subject,
org.semanticweb.owlapi.model.IRI predicate,
org.semanticweb.owlapi.model.OWLLiteral object)
Handle.
|
boolean |
hasPredicate(org.semanticweb.owlapi.model.IRI subject,
org.semanticweb.owlapi.model.IRI predicate)
Checks for predicate.
|
void |
importsClosureChanged()
Imports closure changed.
|
void |
includeModel(String string,
String string1)
Receives the notification that the model being parsed includes another
model with supplied URIs.
|
protected boolean |
isAnnotation(org.semanticweb.owlapi.model.IRI iri)
Checks if is annotation.
|
protected boolean |
isAnnotationProperty(org.semanticweb.owlapi.model.IRI iri)
Checks if is annotation property.
|
protected boolean |
isAnnotationPropertyOnly(org.semanticweb.owlapi.model.IRI iri)
Determines if a given IRI is currently an annotation property IRI and not
a data property IRI and not an object property IRI.
|
protected boolean |
isAnonymousNode(org.semanticweb.owlapi.model.IRI iri)
Checks whether a node is anonymous.
|
boolean |
isAxiom(org.semanticweb.owlapi.model.IRI iri)
Checks if is axiom.
|
boolean |
isClassExpression(org.semanticweb.owlapi.model.IRI iri)
Checks if is class expression.
|
protected boolean |
isDataProperty(org.semanticweb.owlapi.model.IRI iri)
Checks if is data property.
|
protected boolean |
isDataPropertyOnly(org.semanticweb.owlapi.model.IRI iri)
Determines if a given IRI is currently a data property IRI and not an
object property IRI and not an annotation property IRI.
|
boolean |
isDataRange(org.semanticweb.owlapi.model.IRI iri)
Checks if is data range.
|
protected boolean |
isGeneralPredicate(org.semanticweb.owlapi.model.IRI predicate)
Checks if is general predicate.
|
protected boolean |
isIndividual(org.semanticweb.owlapi.model.IRI iri)
Checks if is individual.
|
protected boolean |
isObjectProperty(org.semanticweb.owlapi.model.IRI iri)
Checks if is object property.
|
protected boolean |
isObjectPropertyOnly(org.semanticweb.owlapi.model.IRI iri)
Determines if a given IRI is currently an object property IRI and not a
data property IRI and not an annotation property IRI.
|
protected boolean |
isOntology(org.semanticweb.owlapi.model.IRI iri)
Checks if is ontology.
|
boolean |
isParsedAllTriples()
Checks if is parsed all triples.
|
protected boolean |
isRDFProperty(org.semanticweb.owlapi.model.IRI iri)
Checks if is rDF property.
|
boolean |
isRestriction(org.semanticweb.owlapi.model.IRI iri)
Checks if is restriction.
|
protected boolean |
isSharedAnonymousNode(org.semanticweb.owlapi.model.IRI iri)
Checks if is shared anonymous node.
|
protected boolean |
isSWRLBuiltInAtom(org.semanticweb.owlapi.model.IRI iri)
Checks if is sWRL built in atom.
|
protected boolean |
isSWRLClassAtom(org.semanticweb.owlapi.model.IRI iri)
Checks if is sWRL class atom.
|
protected boolean |
isSWRLDataRangeAtom(org.semanticweb.owlapi.model.IRI iri)
Checks if is sWRL data range atom.
|
protected boolean |
isSWRLDataValuedPropertyAtom(org.semanticweb.owlapi.model.IRI iri)
Checks if is sWRL data valued property atom.
|
protected boolean |
isSWRLDifferentFromAtom(org.semanticweb.owlapi.model.IRI iri)
Checks if is sWRL different from atom.
|
protected boolean |
isSWRLIndividualPropertyAtom(org.semanticweb.owlapi.model.IRI iri)
Checks if is sWRL individual property atom.
|
protected boolean |
isSWRLRule(org.semanticweb.owlapi.model.IRI iri)
Checks if is sWRL rule.
|
protected boolean |
isSWRLSameAsAtom(org.semanticweb.owlapi.model.IRI iri)
Checks if is sWRL same as atom.
|
protected boolean |
isSWRLVariable(org.semanticweb.owlapi.model.IRI iri)
Checks if is sWRL variable.
|
boolean |
isTriplePresent(org.semanticweb.owlapi.model.IRI subject,
org.semanticweb.owlapi.model.IRI predicate,
org.semanticweb.owlapi.model.IRI object,
boolean consume)
Checks if is triple present.
|
boolean |
isTriplePresent(org.semanticweb.owlapi.model.IRI subject,
org.semanticweb.owlapi.model.IRI predicate,
org.semanticweb.owlapi.model.OWLLiteral object,
boolean consume)
Checks if is triple present.
|
protected <E extends Throwable> |
iterateLiteralTriples(org.coode.owlapi.rdfxml.parser.OWLRDFConsumer.LiteralTripleIterator<E> iterator)
Iterate literal triples.
|
protected <E extends Throwable> |
iterateResourceTriples(org.coode.owlapi.rdfxml.parser.OWLRDFConsumer.ResourceTripleIterator<E> iterator)
Iterate resource triples.
|
void |
logicalURI(String string)
Receives the logical URI of the model.
|
protected void |
removeAxiom(org.semanticweb.owlapi.model.OWLAxiom axiom)
Marks an axioms for removal at the end of parsing.
|
void |
setExpectedAxioms(int expectedAxioms)
Sets the expected axioms.
|
void |
setIRIProvider(IRIProvider iriProvider)
Sets the iRI provider.
|
void |
setOntologyFormat(org.semanticweb.owlapi.io.RDFOntologyFormat format)
Sets the ontology format.
|
protected void |
setOntologyID(org.semanticweb.owlapi.model.OWLOntologyID ontologyID)
Sets the ontology id.
|
void |
setPendingAnnotations(Set<org.semanticweb.owlapi.model.OWLAnnotation> annotations)
Sets the pending annotations.
|
void |
startModel(String string)
Called when model parsing is started.
|
void |
statementWithLiteralValue(String subject,
String predicate,
String object,
String lang,
String datatype)
Called when a statement with literal value is added to the model.
|
void |
statementWithResourceValue(String subject,
String predicate,
String object)
Called when a statement with resource value is added to the model.
|
Set<org.semanticweb.owlapi.model.OWLAnnotation> |
translateAnnotations(org.semanticweb.owlapi.model.IRI mainNode)
Translates the annotation on a main node.
|
org.semanticweb.owlapi.model.OWLClassExpression |
translateClassExpression(org.semanticweb.owlapi.model.IRI mainNode)
Translate class expression.
|
org.semanticweb.owlapi.model.OWLDataPropertyExpression |
translateDataPropertyExpression(org.semanticweb.owlapi.model.IRI iri)
Translate data property expression.
|
org.semanticweb.owlapi.model.OWLDataRange |
translateDataRange(org.semanticweb.owlapi.model.IRI mainNode)
Given a main node, translated data ranges according to Table 12.
|
org.semanticweb.owlapi.model.OWLIndividual |
translateIndividual(org.semanticweb.owlapi.model.IRI node)
Translate individual.
|
org.semanticweb.owlapi.model.OWLObjectPropertyExpression |
translateObjectPropertyExpression(org.semanticweb.owlapi.model.IRI mainNode)
Translate object property expression.
|
Set<org.semanticweb.owlapi.model.OWLClassExpression> |
translateToClassExpressionSet(org.semanticweb.owlapi.model.IRI mainNode)
Translate to class expression set.
|
Set<org.semanticweb.owlapi.model.OWLLiteral> |
translateToConstantSet(org.semanticweb.owlapi.model.IRI mainNode)
Translate to constant set.
|
List<org.semanticweb.owlapi.model.OWLDataPropertyExpression> |
translateToDataPropertyList(org.semanticweb.owlapi.model.IRI mainNode)
Translate to data property list.
|
Set<org.semanticweb.owlapi.model.OWLDataRange> |
translateToDataRangeSet(org.semanticweb.owlapi.model.IRI mainNode)
Translate to data range set.
|
Set<org.semanticweb.owlapi.model.OWLFacetRestriction> |
translateToFacetRestrictionSet(org.semanticweb.owlapi.model.IRI mainNode)
Translate to facet restriction set.
|
Set<org.semanticweb.owlapi.model.OWLIndividual> |
translateToIndividualSet(org.semanticweb.owlapi.model.IRI mainNode)
Translate to individual set.
|
List<org.semanticweb.owlapi.model.OWLObjectPropertyExpression> |
translateToObjectPropertyList(org.semanticweb.owlapi.model.IRI mainNode)
Translate to object property list.
|
protected Map<org.semanticweb.owlapi.model.IRI,BuiltInTypeHandler> axiomTypeTripleHandlers
protected List<AbstractLiteralTripleHandler> literalTripleHandlers
protected List<AbstractResourceTripleHandler> resourceTripleHandlers
protected TPInverseOfHandler inverseOfHandler
public OWLRDFConsumer(org.semanticweb.owlapi.model.OWLOntology ontology,
AnonymousNodeChecker checker,
org.semanticweb.owlapi.model.OWLOntologyLoaderConfiguration configuration)
ontology - the ontologychecker - the checkerconfiguration - the configuration@Deprecated public OWLRDFConsumer(org.semanticweb.owlapi.model.OWLOntologyManager owlOntologyManager, org.semanticweb.owlapi.model.OWLOntology ontology, AnonymousNodeChecker checker, org.semanticweb.owlapi.model.OWLOntologyLoaderConfiguration configuration)
owlOntologyManager - the owl ontology managerontology - the ontologychecker - the checkerconfiguration - the configurationpublic void setIRIProvider(IRIProvider iriProvider)
iriProvider - the new iRI providerpublic org.semanticweb.owlapi.model.OWLOntology getOntology()
public org.semanticweb.owlapi.io.RDFOntologyFormat getOntologyFormat()
public void setOntologyFormat(org.semanticweb.owlapi.io.RDFOntologyFormat format)
format - the new ontology formatpublic void setExpectedAxioms(int expectedAxioms)
expectedAxioms - the new expected axiomspublic org.semanticweb.owlapi.model.OWLDataFactory getDataFactory()
public Set<org.semanticweb.owlapi.model.OWLAnnotation> getPendingAnnotations()
public void setPendingAnnotations(Set<org.semanticweb.owlapi.model.OWLAnnotation> annotations)
annotations - the new pending annotationspublic void importsClosureChanged()
protected boolean isAnonymousNode(org.semanticweb.owlapi.model.IRI iri)
iri - The IRI of the node to be checked.true if the node is anonymous, or false if the
node is not anonymous.protected boolean isSharedAnonymousNode(org.semanticweb.owlapi.model.IRI iri)
iri - the iriprotected void addSharedAnonymousNode(org.semanticweb.owlapi.model.IRI iri,
Object translation)
iri - the iritranslation - the translationprotected Object getSharedAnonymousNode(org.semanticweb.owlapi.model.IRI iri)
iri - the iriprotected void addAxiom(org.semanticweb.owlapi.model.OWLAxiom axiom)
axiom - the axiomprotected void removeAxiom(org.semanticweb.owlapi.model.OWLAxiom axiom)
axiom - The axiom to be removed.protected void checkForAndProcessAnnotatedDeclaration(org.semanticweb.owlapi.model.IRI mainNode)
throws org.semanticweb.owlapi.model.UnloadableImportException
mainNode - the main nodeorg.semanticweb.owlapi.model.UnloadableImportException - the unloadable import exceptionprotected void applyChange(org.semanticweb.owlapi.model.OWLOntologyChange change)
change - the changeprotected void setOntologyID(org.semanticweb.owlapi.model.OWLOntologyID ontologyID)
ontologyID - the new ontology idprotected void addOntologyAnnotation(org.semanticweb.owlapi.model.OWLAnnotation annotation)
annotation - the annotationprotected void addImport(org.semanticweb.owlapi.model.OWLImportsDeclaration declaration)
declaration - the declarationpublic org.semanticweb.owlapi.model.OWLAxiom getLastAddedAxiom()
protected boolean isIndividual(org.semanticweb.owlapi.model.IRI iri)
iri - the iriprotected void addRDFProperty(org.semanticweb.owlapi.model.IRI iri)
iri - the iriprotected boolean isRDFProperty(org.semanticweb.owlapi.model.IRI iri)
iri - the iripublic void addClassExpression(org.semanticweb.owlapi.model.IRI iri,
boolean explicitlyTyped)
iri - the iriexplicitlyTyped - the explicitly typedpublic boolean isClassExpression(org.semanticweb.owlapi.model.IRI iri)
iri - the iripublic void addObjectProperty(org.semanticweb.owlapi.model.IRI iri,
boolean explicitlyTyped)
iri - the iriexplicitlyTyped - the explicitly typedpublic void addDataProperty(org.semanticweb.owlapi.model.IRI iri,
boolean explicitlyTyped)
iri - the iriexplicitlyTyped - the explicitly typedprotected void addAnnotationProperty(org.semanticweb.owlapi.model.IRI iri,
boolean explicitlyTyped)
iri - the iriexplicitlyTyped - the explicitly typedpublic void addDataRange(org.semanticweb.owlapi.model.IRI iri,
boolean explicitlyTyped)
iri - the iriexplicitlyTyped - the explicitly typedprotected void addOWLNamedIndividual(org.semanticweb.owlapi.model.IRI iri,
boolean explicitlyType)
iri - the iriexplicitlyType - the explicitly typeprotected void addOWLRestriction(org.semanticweb.owlapi.model.IRI iri,
boolean explicitlyTyped)
iri - the iriexplicitlyTyped - the explicitly typedpublic boolean isRestriction(org.semanticweb.owlapi.model.IRI iri)
iri - the iriprotected void addAnnotationIRI(org.semanticweb.owlapi.model.IRI iri)
iri - the iriprotected boolean isAnnotation(org.semanticweb.owlapi.model.IRI iri)
iri - the iriprotected boolean isObjectPropertyOnly(org.semanticweb.owlapi.model.IRI iri)
iri - The IRI to check.true if the IRI is an object property IRI and not a data
property IRI and not an annotation property IRI. Otherwise,
false.protected boolean isObjectProperty(org.semanticweb.owlapi.model.IRI iri)
iri - the iriprotected boolean isDataPropertyOnly(org.semanticweb.owlapi.model.IRI iri)
iri - The IRI to check.true if the IRI is a data property IRI and not an object
property IRI and not an annotation property IRI. Otherwise,
false.protected boolean isDataProperty(org.semanticweb.owlapi.model.IRI iri)
iri - the iriprotected boolean isAnnotationPropertyOnly(org.semanticweb.owlapi.model.IRI iri)
iri - The IRI to check.true if the IRI is an annotation property IRI and not a
data property IRI and not an object property IRI. Otherwise,
false.protected boolean isAnnotationProperty(org.semanticweb.owlapi.model.IRI iri)
iri - the iriprotected boolean isOntology(org.semanticweb.owlapi.model.IRI iri)
iri - the iripublic org.semanticweb.owlapi.model.OWLOntologyManager getOWLOntologyManager()
public void addAnnotatedSource(org.semanticweb.owlapi.model.IRI annotatedAnonSource,
org.semanticweb.owlapi.model.IRI annotationMainNode)
annotatedAnonSource - The source that the annotation annotatesannotationMainNode - The annotationspublic Set<org.semanticweb.owlapi.model.IRI> getAnnotatedSourceAnnotationMainNodes(org.semanticweb.owlapi.model.IRI source)
source - The source (axiom or annotation main node)protected org.semanticweb.owlapi.model.OWLClass getOWLClass(org.semanticweb.owlapi.model.IRI iri)
iri - the iriprotected org.semanticweb.owlapi.model.OWLObjectProperty getOWLObjectProperty(org.semanticweb.owlapi.model.IRI iri)
iri - the iriprotected org.semanticweb.owlapi.model.OWLDataProperty getOWLDataProperty(org.semanticweb.owlapi.model.IRI iri)
iri - the iriprotected org.semanticweb.owlapi.model.OWLIndividual getOWLIndividual(org.semanticweb.owlapi.model.IRI iri)
iri - the iriprotected void consumeTriple(org.semanticweb.owlapi.model.IRI subject,
org.semanticweb.owlapi.model.IRI predicate,
org.semanticweb.owlapi.model.IRI object)
subject - the subjectpredicate - the predicateobject - the objectprotected void consumeTriple(org.semanticweb.owlapi.model.IRI subject,
org.semanticweb.owlapi.model.IRI predicate,
org.semanticweb.owlapi.model.OWLLiteral con)
subject - the subjectpredicate - the predicatecon - the conprotected void addSWRLRule(org.semanticweb.owlapi.model.IRI iri)
iri - the iriprotected boolean isSWRLRule(org.semanticweb.owlapi.model.IRI iri)
iri - the iriprotected void addSWRLIndividualPropertyAtom(org.semanticweb.owlapi.model.IRI iri)
iri - the iriprotected boolean isSWRLIndividualPropertyAtom(org.semanticweb.owlapi.model.IRI iri)
iri - the iriprotected void addSWRLDataPropertyAtom(org.semanticweb.owlapi.model.IRI iri)
iri - the iriprotected boolean isSWRLDataValuedPropertyAtom(org.semanticweb.owlapi.model.IRI iri)
iri - the iriprotected void addSWRLClassAtom(org.semanticweb.owlapi.model.IRI iri)
iri - the iriprotected boolean isSWRLClassAtom(org.semanticweb.owlapi.model.IRI iri)
iri - the iriprotected void addSWRLSameAsAtom(org.semanticweb.owlapi.model.IRI iri)
iri - the iriprotected boolean isSWRLSameAsAtom(org.semanticweb.owlapi.model.IRI iri)
iri - the iriprotected void addSWRLDifferentFromAtom(org.semanticweb.owlapi.model.IRI iri)
iri - the iriprotected boolean isSWRLDifferentFromAtom(org.semanticweb.owlapi.model.IRI iri)
iri - the iriprotected void addSWRLDataRangeAtom(org.semanticweb.owlapi.model.IRI iri)
iri - the iriprotected boolean isSWRLDataRangeAtom(org.semanticweb.owlapi.model.IRI iri)
iri - the iriprotected void addSWRLBuiltInAtom(org.semanticweb.owlapi.model.IRI iri)
iri - the iriprotected boolean isSWRLBuiltInAtom(org.semanticweb.owlapi.model.IRI iri)
iri - the iriprotected void addSWRLVariable(org.semanticweb.owlapi.model.IRI iri)
iri - the iriprotected boolean isSWRLVariable(org.semanticweb.owlapi.model.IRI iri)
iri - the iripublic void handle(org.semanticweb.owlapi.model.IRI subject,
org.semanticweb.owlapi.model.IRI predicate,
org.semanticweb.owlapi.model.IRI object)
throws org.semanticweb.owlapi.model.UnloadableImportException
subject - The subject of the triplepredicate - The predicate of the tripleobject - The object of the tripleorg.semanticweb.owlapi.model.UnloadableImportException - if such exception is raised by handleTriple()public void handle(org.semanticweb.owlapi.model.IRI subject,
org.semanticweb.owlapi.model.IRI predicate,
org.semanticweb.owlapi.model.OWLLiteral object)
subject - the subjectpredicate - the predicateobject - the objectprotected void dumpRemainingTriples()
public void startModel(String string) throws SAXException
RDFConsumerstartModel in interface RDFConsumerstring - physical URI of the modelSAXException - sax exceptionpublic boolean isParsedAllTriples()
public void endModel()
throws SAXException
RDFConsumerendModel in interface RDFConsumerSAXException - sax exceptionpublic void addModelAttribte(String string, String string1) throws SAXException
RDFConsumeraddModelAttribte in interface RDFConsumerstring - the key of the attributestring1 - the value of the attributeSAXException - sax exceptionpublic void includeModel(String string, String string1) throws SAXException
RDFConsumerincludeModel in interface RDFConsumerstring - logical URI of the modelstring1 - physical URI of the modelSAXException - sax exceptionpublic void logicalURI(String string) throws SAXException
RDFConsumerlogicalURI in interface RDFConsumerstring - logical URI of the modelSAXException - sax exceptionpublic org.semanticweb.owlapi.model.IRI getSynonym(org.semanticweb.owlapi.model.IRI original)
original - the originalpublic void statementWithLiteralValue(String subject, String predicate, String object, String lang, String datatype) throws SAXException
RDFConsumerstatementWithLiteralValue in interface RDFConsumersubject - URI of the subject resourcepredicate - URI of the predicate resourceobject - literal object valuelang - the languagedatatype - the URI of the literal's datatype (may be null)SAXException - sax exceptionpublic void statementWithResourceValue(String subject, String predicate, String object) throws SAXException
RDFConsumerstatementWithResourceValue in interface RDFConsumersubject - URI of the subject resourcepredicate - URI of the predicate resourceobject - URI of the object resourceSAXException - sax exceptionpublic org.semanticweb.owlapi.model.OWLDataRange translateDataRange(org.semanticweb.owlapi.model.IRI mainNode)
mainNode - The main nodepublic org.semanticweb.owlapi.model.OWLDataPropertyExpression translateDataPropertyExpression(org.semanticweb.owlapi.model.IRI iri)
iri - the iripublic org.semanticweb.owlapi.model.OWLObjectPropertyExpression translateObjectPropertyExpression(org.semanticweb.owlapi.model.IRI mainNode)
mainNode - the main nodepublic org.semanticweb.owlapi.model.OWLIndividual translateIndividual(org.semanticweb.owlapi.model.IRI node)
node - the nodepublic Set<org.semanticweb.owlapi.model.OWLAnnotation> translateAnnotations(org.semanticweb.owlapi.model.IRI mainNode)
mainNode - The main nodepublic org.semanticweb.owlapi.model.OWLClassExpression translateClassExpression(org.semanticweb.owlapi.model.IRI mainNode)
mainNode - the main nodepublic org.semanticweb.owlapi.model.OWLClassExpression getClassExpressionIfTranslated(org.semanticweb.owlapi.model.IRI mainNode)
mainNode - the main nodepublic List<org.semanticweb.owlapi.model.OWLObjectPropertyExpression> translateToObjectPropertyList(org.semanticweb.owlapi.model.IRI mainNode)
mainNode - the main nodepublic List<org.semanticweb.owlapi.model.OWLDataPropertyExpression> translateToDataPropertyList(org.semanticweb.owlapi.model.IRI mainNode)
mainNode - the main nodepublic Set<org.semanticweb.owlapi.model.OWLClassExpression> translateToClassExpressionSet(org.semanticweb.owlapi.model.IRI mainNode)
mainNode - the main nodepublic Set<org.semanticweb.owlapi.model.OWLLiteral> translateToConstantSet(org.semanticweb.owlapi.model.IRI mainNode)
mainNode - the main nodepublic Set<org.semanticweb.owlapi.model.OWLIndividual> translateToIndividualSet(org.semanticweb.owlapi.model.IRI mainNode)
mainNode - the main nodepublic Set<org.semanticweb.owlapi.model.OWLDataRange> translateToDataRangeSet(org.semanticweb.owlapi.model.IRI mainNode)
mainNode - the main nodepublic Set<org.semanticweb.owlapi.model.OWLFacetRestriction> translateToFacetRestrictionSet(org.semanticweb.owlapi.model.IRI mainNode)
mainNode - the main nodepublic Set<org.semanticweb.owlapi.model.IRI> getPredicatesBySubject(org.semanticweb.owlapi.model.IRI subject)
subject - the subjectpublic org.semanticweb.owlapi.model.IRI getResourceObject(org.semanticweb.owlapi.model.IRI subject,
org.semanticweb.owlapi.vocab.OWLRDFVocabulary predicate,
boolean consume)
subject - the subjectpredicate - the predicateconsume - the consumepublic org.semanticweb.owlapi.model.IRI getResourceObject(org.semanticweb.owlapi.model.IRI subject,
org.semanticweb.owlapi.model.IRI predicate,
boolean consume)
subject - the subjectpredicate - the predicateconsume - the consumepublic Set<org.semanticweb.owlapi.model.IRI> getResourceObjects(org.semanticweb.owlapi.model.IRI subject, org.semanticweb.owlapi.model.IRI predicate)
subject - the subjectpredicate - the predicatepublic org.semanticweb.owlapi.model.OWLLiteral getLiteralObject(org.semanticweb.owlapi.model.IRI subject,
org.semanticweb.owlapi.vocab.OWLRDFVocabulary predicate,
boolean consume)
subject - the subjectpredicate - the predicateconsume - the consumepublic org.semanticweb.owlapi.model.OWLLiteral getLiteralObject(org.semanticweb.owlapi.model.IRI subject,
org.semanticweb.owlapi.model.IRI predicate,
boolean consume)
subject - the subjectpredicate - the predicateconsume - the consumepublic Set<org.semanticweb.owlapi.model.OWLLiteral> getLiteralObjects(org.semanticweb.owlapi.model.IRI subject, org.semanticweb.owlapi.model.IRI predicate)
subject - the subjectpredicate - the predicatepublic boolean isTriplePresent(org.semanticweb.owlapi.model.IRI subject,
org.semanticweb.owlapi.model.IRI predicate,
org.semanticweb.owlapi.model.IRI object,
boolean consume)
subject - the subjectpredicate - the predicateobject - the objectconsume - the consumeprotected boolean isGeneralPredicate(org.semanticweb.owlapi.model.IRI predicate)
predicate - the predicatepublic boolean isTriplePresent(org.semanticweb.owlapi.model.IRI subject,
org.semanticweb.owlapi.model.IRI predicate,
org.semanticweb.owlapi.model.OWLLiteral object,
boolean consume)
subject - the subjectpredicate - the predicateobject - the objectconsume - the consumepublic boolean hasPredicate(org.semanticweb.owlapi.model.IRI subject,
org.semanticweb.owlapi.model.IRI predicate)
subject - the subjectpredicate - the predicatepublic void addRest(org.semanticweb.owlapi.model.IRI subject,
org.semanticweb.owlapi.model.IRI object)
subject - the subjectobject - the objectpublic void addFirst(org.semanticweb.owlapi.model.IRI subject,
org.semanticweb.owlapi.model.IRI object)
subject - the subjectobject - the objectpublic org.semanticweb.owlapi.model.IRI getFirstResource(org.semanticweb.owlapi.model.IRI subject,
boolean consume)
subject - the subjectconsume - the consumepublic org.semanticweb.owlapi.model.OWLLiteral getFirstLiteral(org.semanticweb.owlapi.model.IRI subject)
subject - the subjectpublic org.semanticweb.owlapi.model.IRI getRest(org.semanticweb.owlapi.model.IRI subject,
boolean consume)
subject - the subjectconsume - the consumepublic void addFirst(org.semanticweb.owlapi.model.IRI subject,
org.semanticweb.owlapi.model.OWLLiteral object)
subject - the subjectobject - the objectpublic void addOntology(org.semanticweb.owlapi.model.IRI iri)
iri - the iripublic Set<org.semanticweb.owlapi.model.IRI> getOntologies()
public void addAxiom(org.semanticweb.owlapi.model.IRI axiomIRI)
axiomIRI - the axiom iripublic boolean isAxiom(org.semanticweb.owlapi.model.IRI iri)
iri - the iripublic boolean isDataRange(org.semanticweb.owlapi.model.IRI iri)
iri - the iripublic org.semanticweb.owlapi.model.OWLOntologyLoaderConfiguration getConfiguration()
protected <E extends Throwable> void iterateResourceTriples(org.coode.owlapi.rdfxml.parser.OWLRDFConsumer.ResourceTripleIterator<E> iterator) throws E extends Throwable
E - the element typeiterator - the iteratorE - the eE extends Throwableprotected <E extends Throwable> void iterateLiteralTriples(org.coode.owlapi.rdfxml.parser.OWLRDFConsumer.LiteralTripleIterator<E> iterator) throws E extends Throwable
E - the element typeiterator - the iteratorE - the eE extends Throwablepublic void addTriple(org.semanticweb.owlapi.model.IRI subject,
org.semanticweb.owlapi.model.IRI predicate,
org.semanticweb.owlapi.model.IRI object)
subject - the subjectpredicate - the predicateobject - the objectpublic void addTriple(org.semanticweb.owlapi.model.IRI subject,
org.semanticweb.owlapi.model.IRI predicate,
org.semanticweb.owlapi.model.OWLLiteral con)
subject - the subjectpredicate - the predicatecon - the conCopyright © 2014 The University of Manchester. All Rights Reserved.