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

Broken when using with Protege 5.6.1 #12

Open
LorenzBuehmann opened this issue Mar 27, 2023 · 5 comments
Open

Broken when using with Protege 5.6.1 #12

LorenzBuehmann opened this issue Mar 27, 2023 · 5 comments

Comments

@LorenzBuehmann
Copy link

This API is broken when using with Protege 5.6.1 which happens when using the SPARQL query tab because the OWL API version has been bumped

Protege: 4.5.25
this lib: 4.5.15

leads to

java.lang.NoSuchMethodError: 'void org.semanticweb.owlapi.rdf.model.AbstractTranslator.<init>(org.semanticweb.owlapi.model.OWLOntologyManager, org.semanticweb.owlapi.model.OWLOntology, boolean, org.semanticweb.owlapi.util.IndividualAppearance, org.semanticweb.owlapi.util.AxiomAppearance, java.util.concurrent.atomic.AtomicInteger, java.util.Map)'
	at org.protege.owl.rdf.impl.RDFTranslator.<init>(RDFTranslator.java:107) ~[na:na]
	at org.protege.owl.rdf.impl.RDFTranslator.translate(RDFTranslator.java:55) ~[na:na]
	at org.protege.owl.rdf.impl.OwlTripleStoreImpl.addAxiom(OwlTripleStoreImpl.java:99) ~[na:na]
	at org.protege.owl.rdf.Utilities.loadOwlTripleStore(Utilities.java:48) ~[na:na]
	at org.protege.owl.rdf.Utilities.getOwlTripleStore(Utilities.java:32) ~[na:na]
	at org.protege.editor.owl.rdf.repository.BasicSparqlReasoner.precalculate(BasicSparqlReasoner.java:54) ~[na:na]
	at org.protege.editor.owl.rdf.SparqlQueryView.initializeReasoner(SparqlQueryView.java:34) ~[na:na]
	at org.protege.editor.owl.rdf.SparqlQueryView.initialiseOWLView(SparqlQueryView.java:24) ~[na:na]
	at org.protege.editor.owl.ui.view.AbstractOWLViewComponent.initialise(AbstractOWLViewComponent.java:43) ~[na:na]
	at org.protege.editor.core.ui.view.View.createContent(View.java:413) ~[na:na]
	at org.protege.editor.core.ui.view.View.createUI(View.java:220) ~[na:na]
	at org.protege.editor.core.ui.view.View$1.hierarchyChanged(View.java:124) ~[na:na]

Basically, the constructor of org.semanticweb.owlapi.rdf.model.AbstractTranslator has been changed, see https://github.com/owlcs/owlapi/blob/owlapi-parent-4.5.24/parsers/src/main/java/org/semanticweb/owlapi/rdf/model/AbstractTranslator.java#L289-L303

It also needs the OWLDocumentFormat now as an argument which has to be addressed in org.protege.owl.rdf.impl.RDFTranslator

@anastass
Copy link

Dear Support Team,
I am using Protégé 5.6.3 and this feature still does not work. Are there any plans to fix this issue?
Thank you!

@gouttegd
Copy link

gouttegd commented May 2, 2024

This is in fact already fixed in the master branch (6c2e962), so all that needs to happen is a 3.0.1 release of rdf-library that Protégé could then use. Any chance of that happening?

@tejaswinihbhat
Copy link

tejaswinihbhat commented Nov 8, 2024

PREFIX owl: http://www.w3.org/2002/07/owl#
PREFIX rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns#
PREFIX rdfs: http://www.w3.org/2000/01/rdf-schema#
PREFIX onto: http://www.example.org/ontologies/fish.owl#
SELECT ?species ?speciesName
WHERE {
?species rdfs:label ?speciesName.
FILTER NOT EXISTS { ?species onto:hasStatus ?Status. }
}
Capture

@gouttegd Can you help with this please

@gouttegd
Copy link

gouttegd commented Nov 8, 2024

@tejaswinihbhat Do not spam issues with comments about your problem, even if you believe the issue is related.

You’re seemingly using the Snap-SPARQL plugin, which AFAIK does not support the NOT EXISTS construct from SPARQL 1.1.

@LorenzBuehmann
Copy link
Author

Hi, neither the Snap SPARQL view nor the standard Sparql tab do support SPARQL 1.1, thus FILTER (NOT) EXISTS fails with the error message

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants