Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: creazione ontologia da file OWL #270

Closed
valeriosantarelli opened this issue Oct 17, 2023 · 3 comments
Closed

[BUG]: creazione ontologia da file OWL #270

valeriosantarelli opened this issue Oct 17, 2023 · 3 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@valeriosantarelli
Copy link
Contributor

valeriosantarelli commented Oct 17, 2023

Describe the bug

Scegliendo la modalità di creazione di una ontologia da file OWL, Eddy restituisce un errore.

Reproduction Steps

Allego l'ontologia che genera l'errore.

GPTdocu.owl.zip

Expected Result

No response

Actual Result

Stacktrace dell'errore:

Traceback (most recent call last):
  File "Absent.java", line 47, in com.google.common.base.Absent.get
Exception: Java Exception

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/Users/runner/work/eddy/eddy/eddy/plugins/ontology-importer/ontology_importer.py", line 1158, in doOpenOntologyFile
  File "/Users/runner/work/eddy/eddy/eddy/plugins/ontology-importer/ontology_importer.py", line 1010, in doOpenOntologyFile
java.lang.java.lang.IllegalStateException: java.lang.IllegalStateException: Optional.get() cannot be called on an absent value

Affected Versions

3.5, 3.5.1

Installation

macOS dmg

Operating System

Windows

Operating System Version

macOC 12.6

Operating System Architecture

x86_64

Log

No response

@MariaRosariaFraraccio
Copy link
Contributor

Va in errore perché nel file non c'è l'IRI dell'ontologia, non so se vogliamo permetterlo

@valeriosantarelli
Copy link
Contributor Author

Idealmente direi di no, però per evitare situazioni di errore che poi ci tocca gestire, potremmo anche pensare che se c'è modo di generarne una (in stile protege per intenderci), lo facciamo.

Altrimenti comunque cerchiamo di lanciare un messaggio di errore parlante.

@valeriosantarelli valeriosantarelli added this to the Eddy 3.5.2 milestone Nov 29, 2023
mnamici added a commit to mnamici/eddy that referenced this issue Dec 5, 2023
If the ontology to import is anonymous, set the ontology id to be
the local file uri as the ontology iri, and no version iri.

Fixes obdasystems#270
@mnamici
Copy link
Collaborator

mnamici commented Dec 5, 2023

Ho messo una proposta di fix nella PR allegata, al momento uso la URI del file contenente l'ontologia per permettere al db di identificarla. Fatemi sapere che ne pensate.

@mnamici mnamici closed this as completed in 81e8c69 Mar 4, 2024
mnamici added a commit that referenced this issue Mar 4, 2024
Backport of 81e8c69

If the ontology to import is anonymous, set the ontology id to be
the local file uri as the ontology iri, and no version iri.

Fixes #270
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants