public boolean equals(Object obj) { if(obj == this) { return true; } if(!(obj instanceof OWLImportsDeclaration)) { return false; } OWLImportsDeclaration other = (OWLImportsDeclaration) obj; return this.iri.equals(other.getIRI()); }
@Override public boolean equals(@Nullable Object obj) { if (obj == this) { return true; } if (!(obj instanceof OWLImportsDeclaration)) { return false; } OWLImportsDeclaration other = (OWLImportsDeclaration) obj; return iri.equals(other.getIRI()); }
/** * Builder initialized from an existing object. * * @param expected the existing object * @param df data factory */ public BuilderImportsDeclaration(OWLImportsDeclaration expected, OWLDataFactory df) { this(df); withImportedOntology(expected.getIRI()); }
@Override public boolean equals(@Nullable Object obj) { if (obj == this) { return true; } if (!(obj instanceof OWLImportsDeclaration)) { return false; } OWLImportsDeclaration other = (OWLImportsDeclaration) obj; return iri.equals(other.getIRI()); }
@Override public boolean equals(@Nullable Object obj) { if (obj == this) { return true; } if (!(obj instanceof OWLImportsDeclaration)) { return false; } OWLImportsDeclaration other = (OWLImportsDeclaration) obj; return iri.equals(other.getIRI()); }
/** * Builder initialized from an existing object. * * @param expected the existing object * @param df data factory */ public BuilderImportsDeclaration(OWLImportsDeclaration expected, OWLDataFactory df) { this(df); withImportedOntology(expected.getIRI()); }
@Override public void visit(AddImport change) { sb.append("Add Import: "); sb.append(renderer.render(change.getImportDeclaration().getIRI())); } @Override
/** * @param e exception * @param importsDeclaration imports declaration */ public UnloadableImportException(OWLOntologyCreationException e, OWLImportsDeclaration importsDeclaration) { super("Could not load imported ontology: " + importsDeclaration.getIRI().toQuotedString() + " Cause: " + e.getMessage(), e); this.importsDeclaration = importsDeclaration; ontologyCreationException = e; }
/** * @param axiom the axiom */ public void visit(OWLImportsDeclaration axiom) { write("ImportsDeclaration"); axiom.getIRI().accept(this); }
@Override public void write(OWLOutputStream out, Object o) throws IOException { AddImport change = (AddImport) o; out.write(change.getImportDeclaration().getIRI()); }
/** * @param axiom the axiom */ public void visit(OWLImportsDeclaration axiom) { write("ImportsDeclaration"); axiom.getIRI().accept(this); }
@Override public SafeHtml visit(RemoveImportData data) throws RuntimeException { return renderer.getHtmlBrowserText(data.getDeclaration().getIRI()); } };
public UnloadableImportException(OWLOntologyCreationException e, OWLImportsDeclaration importsDeclaration) { super("Could not loaded imported ontology: " + importsDeclaration.getIRI().toQuotedString() + " Cause: " + e.getMessage(), e); this.importsDeclaration = importsDeclaration; this.ontologyCreationException = e; }
/** * @param e exception * @param importsDeclaration imports declaration */ public UnloadableImportException(OWLOntologyCreationException e, OWLImportsDeclaration importsDeclaration) { super("Could not load imported ontology: " + importsDeclaration.getIRI().toQuotedString() + " Cause: " + e.getMessage(), e); this.importsDeclaration = importsDeclaration; ontologyCreationException = e; }
/** * @param axiom the axiom */ public void visit(OWLImportsDeclaration axiom) { write("ImportsDeclaration"); axiom.getIRI().accept(this); }
public List<MListButton> getAdditionalButtons() { OWLOntology ont = eKit.getOWLModelManager().getOWLOntologyManager().getImportedOntology(decl); if(ont == null) { return Collections.emptyList(); } Optional<IRI> defaultDocumentIRI = ont.getOntologyID().getDefaultDocumentIRI(); if (Optional.of(decl.getIRI()).equals(defaultDocumentIRI)) { return Collections.emptyList(); } return Collections.singletonList(fixImportsButton); }
public List<MListButton> getAdditionalButtons() { OWLOntology ont = eKit.getOWLModelManager().getOWLOntologyManager().getImportedOntology(decl); if(ont == null) { return Collections.emptyList(); } Optional<IRI> defaultDocumentIRI = ont.getOntologyID().getDefaultDocumentIRI(); if (Optional.of(decl.getIRI()).equals(defaultDocumentIRI)) { return Collections.emptyList(); } return Collections.singletonList(fixImportsButton); }
public List<MListButton> getAdditionalButtons() { OWLOntology ont = eKit.getOWLModelManager().getOWLOntologyManager().getImportedOntology(decl); // @@TODO what about anonymous ontologies? if (ont != null && !decl.getIRI().equals(ont.getOntologyID().getDefaultDocumentIRI())) { return Collections.singletonList(fixImportsButton); } return Collections.EMPTY_LIST; }
private void addImportsDeclarationsToOntologyHeader(RDFResource ontologyHeaderNode) { for (OWLImportsDeclaration decl : ontology.getImportsDeclarations()) { graph.addTriple(new RDFTriple(ontologyHeaderNode, new RDFResourceIRI(OWL_IMPORTS.getIRI()), new RDFResourceIRI(decl.getIRI()))); } }
protected void writeImports(OWLImportsDeclaration decl) { fireSectionItemPrepared(IMPORT.toString()); write(IMPORT.toString()); write(":"); writeSpace(); fireSectionRenderingStarted(IMPORT.toString()); writeFullURI(decl.getIRI().toString()); writeNewLine(); fireSectionRenderingFinished(IMPORT.toString()); }