org.semanticweb.HermiT.owlapi.structural
Class OwlClausification

java.lang.Object
  extended by org.semanticweb.HermiT.owlapi.structural.OwlClausification

public class OwlClausification
extends java.lang.Object


Nested Class Summary
protected static class OwlClausification.Clausifier
           
protected static class OwlClausification.DataVisitor
           
protected static class OwlClausification.DetermineExpressivity
           
protected static class OwlClausification.FactClausifier
           
protected static class OwlClausification.HeadComparator
           
 
Field Summary
private  int amqOffset
           
 org.semanticweb.owl.model.OWLDataFactory factory
           
private  OwlNormalization normalization
           
protected  boolean onlyCoreDatatypes
           
protected static Variable X
           
protected static Variable Y
           
protected static Variable Z
           
 
Constructor Summary
OwlClausification(org.semanticweb.owl.model.OWLDataFactory factory)
           
 
Method Summary
protected static java.util.Map<AtomicRole,HierarchyPosition<AtomicRole>> buildRoleHierarchy(java.util.Collection<org.semanticweb.owl.model.OWLObjectPropertyExpression[]> objInclusions, java.util.Collection<org.semanticweb.owl.model.OWLDataPropertyExpression[]> dataInclusions, java.util.Set<AtomicRole> objectRoles, java.util.Set<AtomicRole> dataRoles)
           
 DLOntology clausify(Reasoner.Configuration config, org.semanticweb.owl.model.OWLOntology ontology, java.util.Collection<DescriptionGraph> descriptionGraphs)
           
protected  DLOntology clausify(Reasoner.Configuration config, java.lang.String ontologyURI, java.util.Collection<org.semanticweb.owl.model.OWLDescription[]> conceptInclusions, java.util.Collection<org.semanticweb.owl.model.OWLObjectPropertyExpression[]> objectPropertyInclusions, java.util.Collection<org.semanticweb.owl.model.OWLDataPropertyExpression[]> dataPropertyInclusions, java.util.Set<org.semanticweb.owl.model.OWLObjectPropertyExpression> asymmetricObjectProperties, java.util.Set<org.semanticweb.owl.model.OWLObjectPropertyExpression> reflexiveObjectProperties, java.util.Set<org.semanticweb.owl.model.OWLObjectPropertyExpression> irreflexiveObjectProperties, java.util.Set<org.semanticweb.owl.model.OWLObjectPropertyExpression> transitiveObjectProperties, java.util.Set<org.semanticweb.owl.model.OWLObjectPropertyExpression[]> disjointObjectProperties, java.util.Set<org.semanticweb.owl.model.OWLDataPropertyExpression[]> disjointDataProperties, java.util.Collection<org.semanticweb.owl.model.OWLIndividualAxiom> facts, java.util.Collection<DescriptionGraph> descriptionGraphs, java.util.Set<org.semanticweb.owl.model.OWLClass> classes, java.util.Set<org.semanticweb.owl.model.OWLIndividual> individuals, java.util.Set<org.semanticweb.owl.model.OWLDataProperty> dataProperties, java.util.Set<org.semanticweb.owl.model.OWLObjectProperty> objectProperties)
           
 AtomicConcept define(org.semanticweb.owl.model.OWLDescription desc, java.util.Set<DLClause> outClauses, java.util.Set<Atom> outPositiveFacts, java.util.Set<Atom> outNegativeFacts)
          Constructs clauses and facts which make the atomic concept returned equivalent to `desc`.
protected static Atom getDataPropertyAtom(org.semanticweb.owl.model.OWLDataPropertyExpression dataProperty, Term first, Term second)
          Creates a concrete role (data property) atom in the Hermit internal format.
protected static Individual getIndividual(org.semanticweb.owl.model.OWLIndividual individual)
           
protected static LiteralConcept getLiteralConcept(org.semanticweb.owl.model.OWLDescription description)
          Returns an atomic concept or a negated atomic concept in the Hermit internal format, which are both LiteralConcept objects.
protected static Role getRole(org.semanticweb.owl.model.OWLDataPropertyExpression dataProperty)
           
protected static Role getRole(org.semanticweb.owl.model.OWLObjectPropertyExpression objectProperty)
          Creates an abstract role (object property) in the Hermit internal format.
protected static Atom getRoleAtom(org.semanticweb.owl.model.OWLObjectPropertyExpression objectProperty, Term first, Term second)
          Creates an atom in the Hermit internal format such that the variables automatically reflect whether the role was an inverse role or not.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

X

protected static final Variable X

Y

protected static final Variable Y

Z

protected static final Variable Z

factory

public org.semanticweb.owl.model.OWLDataFactory factory

normalization

private OwlNormalization normalization

amqOffset

private int amqOffset

onlyCoreDatatypes

protected boolean onlyCoreDatatypes
Constructor Detail

OwlClausification

public OwlClausification(org.semanticweb.owl.model.OWLDataFactory factory)
Method Detail

clausify

public DLOntology clausify(Reasoner.Configuration config,
                           org.semanticweb.owl.model.OWLOntology ontology,
                           java.util.Collection<DescriptionGraph> descriptionGraphs)
                    throws org.semanticweb.owl.model.OWLException
Throws:
org.semanticweb.owl.model.OWLException

buildRoleHierarchy

protected static java.util.Map<AtomicRole,HierarchyPosition<AtomicRole>> buildRoleHierarchy(java.util.Collection<org.semanticweb.owl.model.OWLObjectPropertyExpression[]> objInclusions,
                                                                                            java.util.Collection<org.semanticweb.owl.model.OWLDataPropertyExpression[]> dataInclusions,
                                                                                            java.util.Set<AtomicRole> objectRoles,
                                                                                            java.util.Set<AtomicRole> dataRoles)

clausify

protected DLOntology clausify(Reasoner.Configuration config,
                              java.lang.String ontologyURI,
                              java.util.Collection<org.semanticweb.owl.model.OWLDescription[]> conceptInclusions,
                              java.util.Collection<org.semanticweb.owl.model.OWLObjectPropertyExpression[]> objectPropertyInclusions,
                              java.util.Collection<org.semanticweb.owl.model.OWLDataPropertyExpression[]> dataPropertyInclusions,
                              java.util.Set<org.semanticweb.owl.model.OWLObjectPropertyExpression> asymmetricObjectProperties,
                              java.util.Set<org.semanticweb.owl.model.OWLObjectPropertyExpression> reflexiveObjectProperties,
                              java.util.Set<org.semanticweb.owl.model.OWLObjectPropertyExpression> irreflexiveObjectProperties,
                              java.util.Set<org.semanticweb.owl.model.OWLObjectPropertyExpression> transitiveObjectProperties,
                              java.util.Set<org.semanticweb.owl.model.OWLObjectPropertyExpression[]> disjointObjectProperties,
                              java.util.Set<org.semanticweb.owl.model.OWLDataPropertyExpression[]> disjointDataProperties,
                              java.util.Collection<org.semanticweb.owl.model.OWLIndividualAxiom> facts,
                              java.util.Collection<DescriptionGraph> descriptionGraphs,
                              java.util.Set<org.semanticweb.owl.model.OWLClass> classes,
                              java.util.Set<org.semanticweb.owl.model.OWLIndividual> individuals,
                              java.util.Set<org.semanticweb.owl.model.OWLDataProperty> dataProperties,
                              java.util.Set<org.semanticweb.owl.model.OWLObjectProperty> objectProperties)

define

public AtomicConcept define(org.semanticweb.owl.model.OWLDescription desc,
                            java.util.Set<DLClause> outClauses,
                            java.util.Set<Atom> outPositiveFacts,
                            java.util.Set<Atom> outNegativeFacts)
Constructs clauses and facts which make the atomic concept returned equivalent to `desc`. Note that we introduce new names for sub-concepts the first time they are encountered, and produce new clauses for definitions of these sub- concepts. If the same sub-concept is encountered on another occasion, the clauses defining it will *not* be reproduced, so you need to retain all clauses/facts produced by all prior definitions when working with newer definitions. -rob 2008-10-02


getRoleAtom

protected static Atom getRoleAtom(org.semanticweb.owl.model.OWLObjectPropertyExpression objectProperty,
                                  Term first,
                                  Term second)
Creates an atom in the Hermit internal format such that the variables automatically reflect whether the role was an inverse role or not.


getDataPropertyAtom

protected static Atom getDataPropertyAtom(org.semanticweb.owl.model.OWLDataPropertyExpression dataProperty,
                                          Term first,
                                          Term second)
Creates a concrete role (data property) atom in the Hermit internal format.

Parameters:
dataProperty - the data property/concrete role
first - its term
second - its second term
Returns:
an atom

getLiteralConcept

protected static LiteralConcept getLiteralConcept(org.semanticweb.owl.model.OWLDescription description)
Returns an atomic concept or a negated atomic concept in the Hermit internal format, which are both LiteralConcept objects.


getRole

protected static Role getRole(org.semanticweb.owl.model.OWLObjectPropertyExpression objectProperty)
Creates an abstract role (object property) in the Hermit internal format.

Parameters:
objectProperty - the object property/abstract role
Returns:
an Abstract Role

getRole

protected static Role getRole(org.semanticweb.owl.model.OWLDataPropertyExpression dataProperty)

getIndividual

protected static Individual getIndividual(org.semanticweb.owl.model.OWLIndividual individual)