@Override public T visit(OWLAsymmetricObjectPropertyAxiom axiom) { throw new IllegalArgumentException( OWLAsymmetricObjectPropertyAxiom.class.getSimpleName() + " cannot be converted to " + getTargetClass().getSimpleName()); }
/** * Asymetric Role Assertion <i>Asy(r)</i> is translated to:</br> * </br> * :- r(X,Y),r(Y,X). * * @see org.semanticweb.owlapi.model.OWLAxiomVisitor#visit(org.semanticweb.owlapi.model.OWLAsymmetricObjectPropertyAxiom) */ public void visit(OWLAsymmetricObjectPropertyAxiom asymetricProperty) { OWLObjectPropertyExpression property = asymetricProperty.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(nVar); writer.write(ASP2CoreSymbols.BRACKET_CLOSE); writer.write(ASP2CoreSymbols.CONJUNCTION); //writer.write(ASP2CoreSymbols.NAF); //writer.write(ASP2CoreSymbols.SPACE); writer.write(propertyName); writer.write(ASP2CoreSymbols.BRACKET_OPEN); writer.write(nVar); writer.write(ASP2CoreSymbols.ARG_SEPERATOR); writer.write(cVar); writer.write(ASP2CoreSymbols.BRACKET_CLOSE); writer.write(ASP2CoreSymbols.EOR); }
/** * Asymetric Role Assertion <i>Asy(r)</i> is translated to:</br> * </br> * :- r(X,Y),r(Y,X). * * @see org.semanticweb.owlapi.model.OWLAxiomVisitor#visit(org.semanticweb.owlapi.model.OWLAsymmetricObjectPropertyAxiom) */ public void visit(OWLAsymmetricObjectPropertyAxiom asymetricProperty) { writer.write(ASP2CoreSymbols.IMPLICATION); OWLObjectPropertyExpression property = asymetricProperty.getProperty(); String propertyName = mapper.getPredicateName(property.getNamedProperty()); String cVar = var.currentVar(); String nVar = var.nextVariable(); writer.write(propertyName); writer.write(ASP2CoreSymbols.BRACKET_OPEN); writer.write(cVar); writer.write(ASP2CoreSymbols.ARG_SEPERATOR); writer.write(nVar); writer.write(ASP2CoreSymbols.BRACKET_CLOSE); writer.write(ASP2CoreSymbols.CONJUNCTION); //writer.write(ASP2CoreSymbols.NAF); //writer.write(ASP2CoreSymbols.SPACE); writer.write(propertyName); writer.write(ASP2CoreSymbols.BRACKET_OPEN); writer.write(nVar); writer.write(ASP2CoreSymbols.ARG_SEPERATOR); writer.write(cVar); writer.write(ASP2CoreSymbols.BRACKET_CLOSE); writer.write(ASP2CoreSymbols.EOR); }
@Override public void visit(OWLAsymmetricObjectPropertyAxiom axiom) { String propertyURI = axiom.getProperty().asOWLObjectProperty().toStringID(); ParameterizedSparqlString query = new ParameterizedSparqlString("?s ?p ?o . FILTER NOT EXISTS{?o ?p ?s}"); query.setIri("p", propertyURI); sparql += query.toString(); }
@Nonnull @Override public OWLAsymmetricObjectPropertyAxiom getAxiomWithoutAnnotations() { if (!isAnnotated()) { return this; } return new OWLAsymmetricObjectPropertyAxiomImpl(getProperty(), NO_ANNOTATIONS); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!super.equals(obj)) { return false; } return obj instanceof OWLAsymmetricObjectPropertyAxiom; }
public void visit(OWLAsymmetricObjectPropertyAxiom axiom) { notSupported(axiom); }
public void visit(OWLAsymmetricObjectPropertyAxiom axiom) { makeAsymmetric(axiom.getProperty()); m_axioms.m_objectPropertiesOccurringInOWLAxioms.add(axiom.getProperty().getNamedProperty()); }
public Boolean visit(OWLAsymmetricObjectPropertyAxiom axiom) { return reasoner.isAsymmetric(axiom.getProperty()); }
public void visit(OWLAsymmetricObjectPropertyAxiom axiom) { }
@Override public OWLAsymmetricObjectPropertyAxiom visit( ElkAsymmetricObjectPropertyAxiom axiom) { return owlFactory_.getOWLAsymmetricObjectPropertyAxiom( convert(axiom.getProperty())); }
@SuppressWarnings("static-method") public ElkAsymmetricObjectPropertyAxiom convert( OWLAsymmetricObjectPropertyAxiom owlAsymmetricObjectPropertyAxiom) { return new ElkAsymmetricObjectPropertyAxiomWrap<OWLAsymmetricObjectPropertyAxiom>( owlAsymmetricObjectPropertyAxiom); }
@Override public ElkAxiom visit( OWLAsymmetricObjectPropertyAxiom owlAsymmetricObjectPropertyAxiom) { return CONVERTER.convert(owlAsymmetricObjectPropertyAxiom); }
@Override public ElkObjectPropertyAxiom visit( OWLAsymmetricObjectPropertyAxiom owlAsymmetricObjectPropertyAxiom) { return CONVERTER.convert(owlAsymmetricObjectPropertyAxiom); }
@Override public void visit(OWLAsymmetricObjectPropertyAxiom axiom) { defaultVisit(axiom); }
@Override public OWLAxiom visit(OWLAsymmetricObjectPropertyAxiom axiom) { return factory.getOWLAsymmetricObjectPropertyAxiom(axiom.getProperty(), annotations); }
@Override public void visit(OWLAsymmetricObjectPropertyAxiom axiom) { }
@Override public Boolean visit(OWLAsymmetricObjectPropertyAxiom axiom) { return true; }
@Override public Boolean visit(OWLAsymmetricObjectPropertyAxiom axiom) { return false; }
@Override public Boolean visit(OWLAsymmetricObjectPropertyAxiom axiom) { Objects.requireNonNull(axiom); return add(this.df.getOWLAsymmetricObjectPropertyAxiom(axiom.getProperty(), reg(axiom.getAnnotations()))); }
@Override public Boolean visit(OWLAsymmetricObjectPropertyAxiom axiom) { Objects.requireNonNull(axiom); return add(this.df.getOWLAsymmetricObjectPropertyAxiom(axiom.getProperty(), empty())); }
@Override public Set<ComplexIntegerAxiom> visit(OWLAsymmetricObjectPropertyAxiom axiom) { Objects.requireNonNull(axiom); throw TranslationException.newUnsupportedAxiomException(axiom); }
@Override public void visit(OWLAsymmetricObjectPropertyAxiom axiom) { ignoreOwlAxiom("AsymmetricObjectProperty", axiom); }
@Override public O visit(OWLAsymmetricObjectPropertyAxiom axiom) { return doDefault(axiom); }
@Override public void visit(OWLAsymmetricObjectPropertyAxiom axiom) { type = AXIOM_TYPE_INDEX_BASE + axiom.getAxiomType().getIndex(); }
@Override public OWLAxiom visit(OWLAsymmetricObjectPropertyAxiom axiom) { return axiom; }
@Override public void visit(OWLAsymmetricObjectPropertyAxiom axiom) { hashCode = primes[0]; hashCode = hashCode * MULT + axiom.getProperty().hashCode(); hashCode = hashCode * MULT + axiom.getAnnotations().hashCode(); }
@Override public void visit(OWLAsymmetricObjectPropertyAxiom axiom) { handleDefault(axiom); }
@Override public void visit(@Nonnull OWLAsymmetricObjectPropertyAxiom axiom) { axiom.getProperty().accept(this); processAxiomAnnotations(axiom); }
@Override public OWLAsymmetricObjectPropertyAxiom getAnnotatedAxiom( Set<OWLAnnotation> annotations) { return new OWLAsymmetricObjectPropertyAxiomImpl(getProperty(), mergeAnnos(annotations)); }
public Object visit(OWLAsymmetricObjectPropertyAxiom axiom) { profileViolations.add(new UseOfIllegalAxiom(getCurrentOntology(), axiom)); return null; }
public void visit(OWLAsymmetricObjectPropertyAxiom arg0) { unusedAxiom(arg0); }
@Override protected OWLAsymmetricObjectPropertyAxiom createAxiom(OWLObjectPropertyExpression propertyExpression, Set<OWLAnnotation> annotations, OWLDataFactory dataFactory) { return dataFactory.getOWLAsymmetricObjectPropertyAxiom(propertyExpression, annotations); }
public void visit(OWLAsymmetricObjectPropertyAxiom arg0) { }
public void visit(OWLAsymmetricObjectPropertyAxiom arg0) { // TODO Auto-generated method stub }