/** * An irreflexive role assertion <i>Irr(r)</i> is tranlated into the constrained:</br> * </br> * <code> * :- r(X,X). * </code> * @see org.semanticweb.owlapi.model.OWLAxiomVisitor#visit(org.semanticweb.owlapi.model.OWLIrreflexiveObjectPropertyAxiom) */ public void visit(OWLIrreflexiveObjectPropertyAxiom irrPropertyAxiom) { OWLObjectPropertyExpression property = irrPropertyAxiom.getProperty(); String propertyName = mapper.getPredicateName(property.getNamedProperty()); String cVar = var.currentVar(); //String nVar = var.nextVariable(); writer.write("icons " + ASP2CoreSymbols.IMPLICATION); writer.write(String.format(" activated(%d), ", nConstraints++)); writer.write(propertyName); writer.write(ASP2CoreSymbols.BRACKET_OPEN); writer.write(cVar); writer.write(ASP2CoreSymbols.ARG_SEPERATOR); writer.write(cVar); writer.write(ASP2CoreSymbols.BRACKET_CLOSE); writer.write(ASP2CoreSymbols.EOR); }
/** * An irreflexive role assertion <i>Irr(r)</i> is tranlated into the constrained:</br> * </br> * <code> * :- r(X,X). * </code> * @see org.semanticweb.owlapi.model.OWLAxiomVisitor#visit(org.semanticweb.owlapi.model.OWLIrreflexiveObjectPropertyAxiom) */ public void visit(OWLIrreflexiveObjectPropertyAxiom irrPropertyAxiom) { OWLObjectPropertyExpression property = irrPropertyAxiom.getProperty(); String propertyName = mapper.getPredicateName(property.getNamedProperty()); String cVar = var.currentVar(); //String nVar = var.nextVariable(); writer.write(ASP2CoreSymbols.IMPLICATION); writer.write(propertyName); writer.write(ASP2CoreSymbols.BRACKET_OPEN); writer.write(cVar); writer.write(ASP2CoreSymbols.ARG_SEPERATOR); writer.write(cVar); writer.write(ASP2CoreSymbols.BRACKET_CLOSE); writer.write(ASP2CoreSymbols.EOR); }
@Override public T visit(OWLIrreflexiveObjectPropertyAxiom axiom) { throw new IllegalArgumentException( OWLIrreflexiveObjectPropertyAxiom.class.getSimpleName() + " cannot be converted to " + getTargetClass().getSimpleName()); }
@Nonnull @Override public OWLIrreflexiveObjectPropertyAxiom getAxiomWithoutAnnotations() { if (!isAnnotated()) { return this; } return new OWLIrreflexiveObjectPropertyAxiomImpl(getProperty(), NO_ANNOTATIONS); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!super.equals(obj)) { return false; } return obj instanceof OWLIrreflexiveObjectPropertyAxiom; }
public void visit(OWLIrreflexiveObjectPropertyAxiom axiom) { notSupported(axiom); }
public void visit(OWLIrreflexiveObjectPropertyAxiom axiom) { makeIrreflexive(axiom.getProperty()); m_axioms.m_objectPropertiesOccurringInOWLAxioms.add(axiom.getProperty().getNamedProperty()); }
public Boolean visit(OWLIrreflexiveObjectPropertyAxiom axiom) { return reasoner.isIrreflexive(axiom.getProperty()); }
public void visit(OWLIrreflexiveObjectPropertyAxiom axiom) { }
@Override public OWLIrreflexiveObjectPropertyAxiom visit( ElkIrreflexiveObjectPropertyAxiom axiom) { return owlFactory_.getOWLIrreflexiveObjectPropertyAxiom( convert(axiom.getProperty())); }
@SuppressWarnings("static-method") public ElkIrreflexiveObjectPropertyAxiom convert( OWLIrreflexiveObjectPropertyAxiom owlIrreflexiveObjectPropertyAxiom) { return new ElkIrreflexiveObjectPropertyAxiomWrap<OWLIrreflexiveObjectPropertyAxiom>( owlIrreflexiveObjectPropertyAxiom); }
@Override public ElkAxiom visit( OWLIrreflexiveObjectPropertyAxiom owlIrreflexiveObjectPropertyAxiom) { return CONVERTER.convert(owlIrreflexiveObjectPropertyAxiom); }
@Override public ElkObjectPropertyAxiom visit( OWLIrreflexiveObjectPropertyAxiom owlIrreflexiveObjectPropertyAxiom) { return CONVERTER.convert(owlIrreflexiveObjectPropertyAxiom); }
@Override public void visit(OWLIrreflexiveObjectPropertyAxiom axiom) { defaultVisit(axiom); }
@Override public OWLAxiom visit(OWLIrreflexiveObjectPropertyAxiom axiom) { return factory.getOWLIrreflexiveObjectPropertyAxiom(axiom.getProperty(), annotations); }
@Override public void visit(OWLIrreflexiveObjectPropertyAxiom axiom) { }
@Override public Boolean visit(OWLIrreflexiveObjectPropertyAxiom axiom) { return true; }
@Override public Boolean visit(OWLIrreflexiveObjectPropertyAxiom axiom) { return false; }
@Override public Boolean visit(OWLIrreflexiveObjectPropertyAxiom axiom) { Objects.requireNonNull(axiom); return add(this.df.getOWLIrreflexiveObjectPropertyAxiom(axiom.getProperty(), reg(axiom.getAnnotations()))); }
@Override public Boolean visit(OWLIrreflexiveObjectPropertyAxiom axiom) { Objects.requireNonNull(axiom); return add(this.df.getOWLIrreflexiveObjectPropertyAxiom(axiom.getProperty(), empty())); }
@Override public Set<ComplexIntegerAxiom> visit(OWLIrreflexiveObjectPropertyAxiom axiom) { Objects.requireNonNull(axiom); throw TranslationException.newUnsupportedAxiomException(axiom); }
@Override public void visit(OWLIrreflexiveObjectPropertyAxiom axiom) { ignoreOwlAxiom("IrreflexiveObjectProperty", axiom); }
@Override public void visit(OWLIrreflexiveObjectPropertyAxiom axiom) { axiom.asOWLSubClassOfAxiom().accept(this); }
@Override public O visit(OWLIrreflexiveObjectPropertyAxiom axiom) { return doDefault(axiom); }
@Override public void visit(OWLIrreflexiveObjectPropertyAxiom axiom) { type = AXIOM_TYPE_INDEX_BASE + axiom.getAxiomType().getIndex(); }
@Override public OWLAxiom visit(OWLIrreflexiveObjectPropertyAxiom axiom) { return axiom; }
@Override public void visit(OWLIrreflexiveObjectPropertyAxiom axiom) { hashCode = primes[20]; hashCode = hashCode * MULT + axiom.getProperty().hashCode(); hashCode = hashCode * MULT + axiom.getAnnotations().hashCode(); }
@Override public void visit(OWLIrreflexiveObjectPropertyAxiom axiom) { handleDefault(axiom); }
@Override public OWLIrreflexiveObjectPropertyAxiom getAnnotatedAxiom( Set<OWLAnnotation> annotations) { return new OWLIrreflexiveObjectPropertyAxiomImpl(getProperty(), mergeAnnos(annotations)); }
@Override public void visit(@Nonnull OWLIrreflexiveObjectPropertyAxiom axiom) { axiom.getProperty().accept(this); processAxiomAnnotations(axiom); }
public Object visit(OWLIrreflexiveObjectPropertyAxiom axiom) { profileViolations.add(new UseOfIllegalAxiom(getCurrentOntology(), axiom)); return null; }
public void visit(OWLIrreflexiveObjectPropertyAxiom arg0) { unusedAxiom(arg0); }
@Override protected OWLIrreflexiveObjectPropertyAxiom createAxiom(OWLObjectPropertyExpression propertyExpression, Set<OWLAnnotation> annotations, OWLDataFactory dataFactory) { return dataFactory.getOWLIrreflexiveObjectPropertyAxiom(propertyExpression, annotations); }
public void visit(OWLIrreflexiveObjectPropertyAxiom arg0) { }
public void visit(OWLIrreflexiveObjectPropertyAxiom arg0) { // TODO Auto-generated method stub }