Error on updating an import

61 views
Skip to first unread message

Thomas Francart

unread,
Oct 16, 2024, 8:21:39 AM10/16/24
to vocbench-user
Hello

I have a project that imports another, through "Metadata > Namespaces and Imports > Import > Add import from Local Project".
I want to update the import, hence I choose "Update data from linked project" to the right of the import. I get a cryptic error message : "Could not delete ontology import, because that operation would produce graphs only kept live by staged graphs". I don't understand what the message means or what is possibly wrong with my setup.

What does this mean ?

FYI none of the 2 projects is using validation or history. Both are OWL projects. The imported one is local, the importing one is remote on GraphDB.

Thanks
Thomas

--

Thomas Francart - SPARNA
linked data | domain ontologies | knowledge graphs
blog :
blog.sparna.fr, site : sparna.fr, linkedin : fr.linkedin.com/in/thomasfrancart
tel : 
 +33 (0)6.71.11.25.97

Thomas Francart

unread,
Oct 16, 2024, 8:40:51 AM10/16/24
to vocbench-user
Also, I have a more detailed error when trying to **delete** the import:

Could not delete ontology import, because that operation would produce graphs only kept live by staged graphs
it.uniroma2.art.semanticturkey.ontology.OntologyManagerException: Could not delete ontology import, because that operation would produce graphs only kept live by staged graphs at it.uniroma2.art.semanticturkey.ontology.impl.OntologyManagerImpl.computeOntologyRemoveCascade(OntologyManagerImpl.java:1127) at it.uniroma2.art.semanticturkey.ontology.impl.OntologyManagerImpl.removeOntologyImport(OntologyManagerImpl.java:1020) at it.uniroma2.art.semanticturkey.ontology.impl.OntologyManagerImpl.removeOntologyImport(OntologyManagerImpl.java:995)
at it.uniroma2.art.semanticturkey.services.core.Metadata.removeImport(Metadata.java:430)


Note : the project I am importing itself contains an owl:imports to the SKOS ontology. Could that create some kind of side effect ?

Thomas

Thomas Francart

unread,
Oct 16, 2024, 9:10:07 AM10/16/24
to vocbench-user
Answering my own question : Indeed, I can confirm that the error disappears if I remove the SKOS import from the imported project.
It is often the case that I work with OWL ontologies that import SKOS to use SKOS properties to label and define classes and properties, and to define equivalent classes on skos:inScheme values.
I am reluctant to remove these import declarations to please VB. To which extent could VocBench work with ontologies that import SKOS ?

Thanks !

Roland Wingerter

unread,
Oct 17, 2024, 1:13:10 PM10/17/24
to vocbench-user
Dear Thomas,

this is unfortunate, but there is a workaround.

1. Use SPARQL to drop the graph you want to update, e.g.
DROP GRAPH <yourgraphuri>.
2. Go to 'Namespaces and Imports' and remove the graph name by clicking on the trash can next to it.
3. Add import from "Local File"

Kind regards
Roland
1 - Error message.png
2 - remove graph name.png

Roland Wingerter

unread,
Oct 18, 2024, 5:03:13 AM10/18/24
to vocbench-user
Dear Thomas,
Thanks for pointing it out. A bug report has been filed on this issue.
Regards
Roland

Manuel Fiorelli

unread,
Jan 22, 2025, 11:46:58 AM1/22/25
to Roland Wingerter, Thomas Francart, vocbench-user
Dear Roland and Thomas,

we made several bug fixes to the import from local projects since VocBench 13.0: now your bug should be addressed.

Best regards,
Manuel

--
You received this message because you are subscribed to the Google Groups "vocbench-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vocbench-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vocbench-user/6541a168-7565-4459-9d93-bfe96ae44dd8n%40googlegroups.com.


--
Manuel Fiorelli
Reply all
Reply to author
Forward
0 new messages