protected OWLAnnotationProperty updateView(OWLAnnotationProperty property) { list.setRootObject(property == null ? null : property.getIRI()); return property; } }
@Override public void visit(OWLAnnotationProperty property) { write("AnnotationProperty"); property.getIRI().accept(this); }
@Override public void visit(OWLAnnotationProperty property) { process(property); property.getIRI().accept(this); }
/** * Determines if this annotation property has an IRI corresponding to * {@code rdfs:comment}. * * @return {@code true} if the IRI of this annotation property is {@code rdfs:comment}, where * {@code rdfs:} expands to the usual prefix, otherwise {@code false}. */ default boolean isComment() { return getIRI().equals(OWLRDFVocabulary.RDFS_COMMENT.getIRI()); }
private boolean isMetadataTag(OWLAnnotationProperty p) { final IRI metadataTagIRI = IRI .create(Obo2OWLConstants.OIOVOCAB_IRI_PREFIX, OboFormatTag.TAG_IS_METADATA_TAG .getTag()); return owlOntology.annotationAssertionAxioms(p.getIRI()) .anyMatch(ax -> metadataTagIRI.equals(ax.getProperty() .getIRI())); }
protected void expandAssertions(OWLOntology o, OWLAnnotationProperty p) { OWLAnnotationProperty ap425 = df.getOWLAnnotationProperty(IRI_IAO_0000425.getIRI()); getAnnotationObjects(p, o.importsClosure(), ap425).map(a -> a.getValue().asLiteral()) .filter(v -> v.isPresent()) .forEach(v -> { String str = v.get().getLiteral(); LOG.info("assertion mapping {} to {}", p, str); expandAssertionToMap.put(p.getIRI(), str); }); }
@Override public Boolean visit(OWLAnnotationProperty property) { return !modelManager.getActiveOntology().getAxioms(property, Imports.EXCLUDED).isEmpty() || !modelManager.getActiveOntology().getAnnotationAssertionAxioms(property.getIRI()).isEmpty(); } }
@Override public void visit(OWLAnnotationProperty property) { writer.writeStartElement(ANNOTATION_PROPERTY); writer.writeIRIAttribute(property.getIRI()); writer.writeEndElement(); }
protected void handleSelectAnnotation() { OWLAnnotationProperty prop = new UIHelper(getOWLEditorKit()).pickAnnotationProperty(); if (prop != null){ labelAnnotation = prop.getIRI(); annotationIriLabel.setText(labelAnnotation.toString()); } }
protected void punningAnnotation(OWLAnnotationProperty property) { if (getCurrentOntology().containsObjectPropertyInSignature(property.getIRI(), INCLUDED)) { illegalPunning(property); } if (getCurrentOntology().containsDataPropertyInSignature(property.getIRI(), INCLUDED)) { illegalPunning(property); } }
private void addAxiom(OWLAnnotationAssertionAxiom ax) { OWLLiteral literal = (OWLLiteral) ax.getValue(); DictionaryLanguage lang = DictionaryLanguage.create(ax.getProperty().getIRI(), literal.getLang()); activeLangs.add(lang); }
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); }
protected void reservedForAnnotation(OWLAnnotationProperty property) { if (!property.isBuiltIn() && property.getIRI().isReservedVocabulary()) { violations.add(new UseOfReservedVocabularyForAnnotationPropertyIRI(getCurrentOntology(), getCurrentAxiom(), property)); } }
@Override public void visit(OWLAnnotationProperty property) { if (!writeEntitiesAsURIs) { write(ANNOTATION_PROPERTY); writeOpenBracket(); } property.getIRI().accept(this); if (!writeEntitiesAsURIs) { writeCloseBracket(); } }
private void handleAddAnnotation() { OWLAnnotationProperty p = new UIHelper(eKit).pickAnnotationProperty(); if (p != null){ Object[] rowData = new Object[]{p.getIRI(), null}; model.addRow(rowData); table.getSelectionModel().setSelectionInterval(model.getRowCount()-1, model.getRowCount()-1); } }
private boolean isRenderingProperty() { if (!isMyRendererPlugin(OWLRendererPreferences.getInstance().getRendererPlugin())) { return false; } List<IRI> annotations = OWLRendererPreferences.getInstance().getAnnotationIRIs(); for (IRI iri : annotations) { if (iri.equals(property.getIRI())) { return true; } } return false; }
@Override public void visit(OWLAnnotationPropertyRangeAxiom axiom) { write("Range"); axiom.getProperty().getIRI().accept(this); writeSpace(); axiom.getRange().accept(this); }
@Override public void visit(OWLAnnotationPropertyDomainAxiom axiom) { write("Domain"); axiom.getProperty().getIRI().accept(this); writeSpace(); axiom.getDomain().accept(this); }
public PropertyMenuItem(OWLAnnotationProperty prop) { super(getOWLModelManager().getRendering(prop)); property = prop; setToolTipText(property.getIRI().toString()); addActionListener(arg0 -> { onStateChanged(); }); setSelected(isRenderingProperty()); }
private void initialiseAnnotationPropertyFrameSections() { //@formatter:off initialiseSection(new AnnAxiom<OWLAnnotationProperty, OWLAnnotationProperty>(x -> parseAnnotationProperty(), SUB_PROPERTY_OF, (s, o, anns) -> df.getOWLSubAnnotationPropertyOfAxiom(s, o, anns)), annotationPropertyFrameSections); initialiseSection(new AnnAxiom<OWLAnnotationProperty, IRI>(x -> parseIRI(), DOMAIN, (s, o, anns) -> df.getOWLAnnotationPropertyDomainAxiom(s, o, anns)), annotationPropertyFrameSections); initialiseSection(new AnnAxiom<OWLAnnotationProperty, IRI>(x -> parseIRI(), RANGE, (s, o, anns) -> df.getOWLAnnotationPropertyRangeAxiom(s, o, anns)), annotationPropertyFrameSections); initialiseSection(new AnnAxiom<OWLAnnotationProperty, OWLAnnotation>(x -> parseAnnotation(), ANNOTATIONS, (s, o, anns) -> df.getOWLAnnotationAssertionAxiom(s.getIRI(), o, anns)), annotationPropertyFrameSections); //@formatter:on }