Refine search
@Override public void visit(OWLAnnotationAssertionAxiom axiom) { if (lastLangMatchIndex > 0 && axiom.getProperty().equals(prop)) { // a perfect match - no need to carry on search axiom.getValue().accept(this); } }
public void visit(OWLAnnotationAssertionAxiom anno) { if (lastLangMatchIndex > 0 && // a perfect match - no need to carry on search anno.getProperty().equals(prop)){ anno.getValue().accept(this); } }
@Override public void visit(@Nonnull OWLAnnotationAssertionAxiom axiom) { if (lastLangMatchIndex > 0 && axiom.getProperty().equals(prop)) { // a perfect match - no need to carry on search axiom.getValue().accept(this); } }
@Override public void visit(OWLAnnotationAssertionAxiom axiom) { if (lastLangMatchIndex > 0 && axiom.getProperty().equals(prop)) { // a perfect match - no need to carry on search axiom.getValue().accept(this); } }
public void visit(OWLAnnotationAssertionAxiom axiom) { hashCode = 47; hashCode = hashCode * MULT + axiom.getSubject().hashCode(); hashCode = hashCode * MULT + axiom.getProperty().hashCode(); hashCode = hashCode * MULT + axiom.getValue().hashCode(); hashCode = hashCode * MULT + axiom.getAnnotations().hashCode(); }
@Override public boolean equals(Object obj) { if(super.equals(obj)) { // superclass is responsible for null, identity, owlaxiom type and annotations if (!(obj instanceof OWLAnnotationAssertionAxiom)) { return false; } OWLAnnotationAssertionAxiom other = (OWLAnnotationAssertionAxiom) obj; return subject.equals(other.getSubject()) && property.equals(other.getProperty()) && value.equals(other.getValue()); } return false; }
private void tr(OWLAnnotationAssertionAxiom aanAx, Frame frame) { boolean success = tr(aanAx.getProperty(), aanAx.getValue(), aanAx.getAnnotations(), frame); if (!success) { untranslatableAxioms.add(aanAx); } }
@Override default Stream<?> componentsAnnotationsFirst() { return Stream.of(annotationsAsList(), getSubject(), getProperty(), getValue()); }
private boolean isSplitFromAnnotationAssertion(OWLAxiom axiom) { return axiom instanceof OWLAnnotationAssertionAxiom && ((OWLAnnotationAssertionAxiom) axiom).getProperty().equals(splitFromProperty) && diffMap.getUnmatchedTargetAxioms().contains(axiom) && ((OWLAnnotationAssertionAxiom) axiom).getSubject() instanceof IRI && ((OWLAnnotationAssertionAxiom) axiom).getValue() instanceof OWLLiteral && ((OWLLiteral) ((OWLAnnotationAssertionAxiom) axiom).getValue()).getDatatype().equals(STRING_DATATYPE); }
@Override public void visit(OWLAnnotationAssertionAxiom axiom) { addSingleTripleAxiom(axiom, axiom.getSubject(), axiom.getProperty(), axiom.getValue()); if (axiom.getValue() instanceof OWLAnonymousIndividual) { processIfAnonymous((OWLAnonymousIndividual) axiom.getValue(), axiom); } }
@Override public void visit(OWLAnnotationAssertionAxiom axiom) { addSingleTripleAxiom(axiom, axiom.getSubject(), axiom.getProperty(), axiom.getValue()); if (axiom.getValue() instanceof OWLAnonymousIndividual) { processIfAnonymous((OWLAnonymousIndividual) axiom.getValue(), axiom); } }
@Override public void visit(OWLAnnotationAssertionAxiom axiom) { addSingleTripleAxiom(axiom, axiom.getSubject(), axiom.getProperty(), axiom.getValue()); if (axiom.getValue() instanceof OWLAnonymousIndividual) { processIfAnonymous((OWLAnonymousIndividual) axiom.getValue(), axiom); } }
@Override public void visit(OWLAnnotationAssertionAxiom axiom) { addSingleTripleAxiom(axiom, axiom.getSubject(), axiom.getProperty(), axiom.getValue()); if (axiom.getValue() instanceof OWLAnonymousIndividual) { processIfAnonymous((OWLAnonymousIndividual) axiom.getValue(), axiom); } }
private Optional<ChangeSummary> getValueChangedDescription(OWLAnnotationAssertionAxiom added, OWLAnnotationAssertionAxiom removed) { var msg = formatter.formatString("Edited %s annotation on %s", added.getProperty(), added.getSubject()); return Optional.of(ChangeSummary.get(EditedAnnotationValue.get((IRI) added.getSubject(), added.getProperty(), added.getValue(), removed.getValue()))); } }
public static boolean isAxiomForDictionary(@Nonnull OWLAnnotationAssertionAxiom ax, @Nonnull Dictionary dictionary) { if(!(ax.getSubject() instanceof IRI)) { return false; } if(!(ax.getValue() instanceof OWLLiteral)) { return false; } IRI iri = ax.getProperty().getIRI(); String lang = ((OWLLiteral) ax.getValue()).getLang(); return isDictionaryFor(dictionary, iri, lang); }
private void addAxiom(OWLAnnotationAssertionAxiom ax) { OWLLiteral literal = (OWLLiteral) ax.getValue(); DictionaryLanguage lang = DictionaryLanguage.create(ax.getProperty().getIRI(), literal.getLang()); activeLangs.add(lang); }
@Override public void visit(OWLAnnotationAssertionAxiom ax) { try { IRIConstant c1 = getIndividual(ax.getSubject()); Constant c2 = getValue(ax.getValue()); AnnotationProperty ap = getPropertyExpression(ax.getProperty(), builder.annotationProperties()); builder.addAnnotationAssertion(ap, c1, c2); } catch (TranslationException e) { log.warn(NOT_SUPPORTED_EXT, ax, e.getMessage()); } }
@Override default int initHashCode() { int hash = hashIndex(); hash = OWLObject.hashIteration(hash, getSubject().hashCode()); hash = OWLObject.hashIteration(hash, getProperty().hashCode()); hash = OWLObject.hashIteration(hash, getValue().hashCode()); return OWLObject.hashIteration(hash, annotationsAsList().hashCode()); }
public String getPrefixIRI(IRI iri) { for (OWLAnnotationAssertionAxiom annotation : ontology.getAnnotationAssertionAxioms(iri)) { if (annotation.getProperty().isLabel()) { OWLAnnotationValue value = annotation.getValue(); if (value != null && value instanceof OWLLiteral) { return "<" + ((OWLLiteral) value).getLiteral() + ">"; } } } return super.getPrefixIRI(iri); } }
@Override public void visit(@Nonnull OWLAnnotationAssertionAxiom axiom) { axiom.getSubject().accept(this); axiom.getProperty().accept(this); axiom.getValue().accept(this); processAxiomAnnotations(axiom); }