public OWLAxioms() { m_classes=new HashSet<OWLClass>(); m_objectProperties=new HashSet<OWLObjectProperty>(); m_objectPropertiesOccurringInOWLAxioms=new HashSet<OWLObjectProperty>(); m_complexObjectPropertyExpressions=new HashSet<OWLObjectPropertyExpression>(); m_dataProperties=new HashSet<OWLDataProperty>(); m_namedIndividuals=new HashSet<OWLNamedIndividual>(); m_conceptInclusions=new ArrayList<OWLClassExpression[]>(); m_dataRangeInclusions=new ArrayList<OWLDataRange[]>(); m_simpleObjectPropertyInclusions=new ArrayList<OWLObjectPropertyExpression[]>(); m_complexObjectPropertyInclusions=new ArrayList<ComplexObjectPropertyInclusion>(); m_disjointObjectProperties=new ArrayList<OWLObjectPropertyExpression[]>(); m_reflexiveObjectProperties=new HashSet<OWLObjectPropertyExpression>(); m_irreflexiveObjectProperties=new HashSet<OWLObjectPropertyExpression>(); m_asymmetricObjectProperties=new HashSet<OWLObjectPropertyExpression>(); m_disjointDataProperties=new ArrayList<OWLDataPropertyExpression[]>(); m_dataPropertyInclusions=new ArrayList<OWLDataPropertyExpression[]>(); m_facts=new HashSet<OWLIndividualAxiom>(); m_hasKeys=new HashSet<OWLHasKeyAxiom>(); m_definedDatatypesIRIs=new HashSet<String>(); m_rules=new HashSet<DisjunctiveRule>(); }
public OWLAxioms() { m_classes=new HashSet<OWLClass>(); m_objectProperties=new HashSet<OWLObjectProperty>(); m_objectPropertiesOccurringInOWLAxioms=new HashSet<OWLObjectProperty>(); m_complexObjectPropertyExpressions=new HashSet<OWLObjectPropertyExpression>(); m_dataProperties=new HashSet<OWLDataProperty>(); m_namedIndividuals=new HashSet<OWLNamedIndividual>(); m_aspConstraints=new HashSet<ASPConstraint>(); m_aspRules=new HashSet<ASPRule>(); m_conceptInclusions=new ArrayList<OWLClassExpression[]>(); m_dataRangeInclusions=new ArrayList<OWLDataRange[]>(); m_simpleObjectPropertyInclusions=new ArrayList<OWLObjectPropertyExpression[]>(); m_complexObjectPropertyInclusions=new ArrayList<ComplexObjectPropertyInclusion>(); m_disjointObjectProperties=new ArrayList<OWLObjectPropertyExpression[]>(); m_reflexiveObjectProperties=new HashSet<OWLObjectPropertyExpression>(); m_irreflexiveObjectProperties=new HashSet<OWLObjectPropertyExpression>(); m_asymmetricObjectProperties=new HashSet<OWLObjectPropertyExpression>(); m_disjointDataProperties=new ArrayList<OWLDataPropertyExpression[]>(); m_dataPropertyInclusions=new ArrayList<OWLDataPropertyExpression[]>(); m_facts=new HashSet<OWLIndividualAxiom>(); m_hasKeys=new HashSet<OWLHasKeyAxiom>(); m_definedDatatypesIRIs=new HashSet<String>(); m_rules=new HashSet<DisjunctiveRule>(); }
public void visit(OWLHasKeyAxiom axiom) { for (OWLDataPropertyExpression dataPropertyExpression : axiom.getDataPropertyExpressions()) checkTopDataPropertyUse(dataPropertyExpression,axiom); OWLClassExpression description=positive(axiom.getClassExpression()); if (!isSimple(description)) { OWLClassExpression definition=getDefinitionFor(description,m_alreadyExists); if (!m_alreadyExists[0]) m_classExpressionInclusionsAsDisjunctions.add(new OWLClassExpression[] { negative(definition),description }); description=definition; } m_axioms.m_hasKeys.add(m_factory.getOWLHasKeyAxiom(description,axiom.getPropertyExpressions())); for (OWLObjectPropertyExpression objectPropertyExpression : axiom.getObjectPropertyExpressions()) m_axioms.m_objectPropertiesOccurringInOWLAxioms.add(objectPropertyExpression.getNamedProperty()); }
@Override public OWLHasKeyAxiom visit(ElkHasKeyAxiom axiom) { return owlFactory_.getOWLHasKeyAxiom( convert(axiom.getClassExpression()), toPropertyExpressionSet(axiom.getObjectPropertyExpressions(), axiom.getDataPropertyExpressions())); }
@Override public void visit(@Nonnull OWLHasKeyAxiom axiom) { axiom.getClassExpression().accept(this); for (OWLPropertyExpression prop : axiom.getPropertyExpressions()) { prop.accept(this); } processAxiomAnnotations(axiom); }
public void visit(OWLHasKeyAxiom axiom) { notSupported(axiom); }
public void visit(OWLHasKeyAxiom axiom) { }
@Override public T visit(OWLHasKeyAxiom axiom) { throw new IllegalArgumentException(OWLHasKeyAxiom.class.getSimpleName() + " cannot be converted to " + getTargetClass().getSimpleName()); }
@SuppressWarnings("static-method") public ElkHasKeyAxiom convert(OWLHasKeyAxiom owlHasKey) { return new ElkHasKeyAxiomWrap<OWLHasKeyAxiom>(owlHasKey); }
@Override public ElkAxiom visit(OWLHasKeyAxiom axiom) { return CONVERTER.convert(axiom); }
@Override public void visit(OWLHasKeyAxiom axiom) { defaultVisit(axiom); }
@Override public OWLAxiom visit(OWLHasKeyAxiom axiom) { return factory.getOWLHasKeyAxiom(axiom.getClassExpression(), axiom.getDataPropertyExpressions(), annotations); }
@Override public void visit(OWLHasKeyAxiom axiom) { }
@Override public Boolean visit(OWLHasKeyAxiom axiom) { return true; }
@Override public Boolean visit(OWLHasKeyAxiom axiom) { return false; }
@Override public Boolean visit(OWLHasKeyAxiom axiom) { Objects.requireNonNull(axiom); return add(this.df.getOWLHasKeyAxiom(axiom.getClassExpression(), axiom.getObjectPropertyExpressions(), reg(axiom.getAnnotations()))); }
@Override public Boolean visit(OWLHasKeyAxiom axiom) { Objects.requireNonNull(axiom); return add( this.df.getOWLHasKeyAxiom(axiom.getClassExpression(), axiom.getObjectPropertyExpressions(), empty())); }
@Override public Set<ComplexIntegerAxiom> visit(OWLHasKeyAxiom axiom) { Objects.requireNonNull(axiom); throw TranslationException.newUnsupportedAxiomException(axiom); }
@Override public void visit(OWLHasKeyAxiom axiom) { ignoreOwlAxiom("HasKey", axiom); }
@Override public void visit(OWLHasKeyAxiom axiom) { LOGGER.warn("Ignoring axiom {} . Reason: HasKey axiom not supported.", axiom); }
@Override public O visit(OWLHasKeyAxiom axiom) { return doDefault(axiom); }
@Override public void visit(OWLHasKeyAxiom axiom) { type = AXIOM_TYPE_INDEX_BASE + axiom.getAxiomType().getIndex(); }
@Override public OWLAxiom visit(OWLHasKeyAxiom axiom) { return axiom; }
@Override public void visit(OWLHasKeyAxiom axiom) { hashCode = primes[72]; hashCode = hashCode * MULT + axiom.getClassExpression().hashCode(); hashCode = hashCode * MULT + axiom.getPropertyExpressions().hashCode(); }
@Override public Set<OWLClassExpression> visit(OWLHasKeyAxiom axiom) { return axiom.getClassExpression().accept(this); }
@Override public void visit(OWLHasKeyAxiom axiom) { handleDefault(axiom); }
public Object visit(OWLHasKeyAxiom axiom) { profileViolations.add(new UseOfIllegalAxiom(getCurrentOntology(), axiom)); return null; }
public void visit(OWLHasKeyAxiom arg0) { unusedAxiom(arg0); }
public void visit(OWLHasKeyAxiom arg0) { }
public void visit(OWLHasKeyAxiom arg0) { // TODO Auto-generated method stub }