简体   繁体   中英

SPARQL Protege Plugin Error on Importing

I'm writing a plug-in for Protege that uses the BasicSPARQLReasoner provided by the SPARQL Protege plug-in. I'm using the last version provided by Maven artifact ID sparql-query-plugin , version 2.0.2 . Now if I use the class --

BasicSparqlReasoner reasoner=new BasicSparqlReasoner(editorKit.getOWLModelManager().getOWLOntologyManager());

When I load the plug-in created i receive the following error by Protege:

missing requirement [protege.plugin.YASPP [30](R 30.0)] osgi.wiring.package; (&
       (osgi.wiring.package=org.protege.editor.owl.rdf.repository)(version>=5.0.0))
at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4133) ~[org.apache.felix.main.jar:na]
    at org.apache.felix.framework.Felix.startBundle(Felix.java:2118) ~[org.apache.felix.main.jar:na]
    at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1372) ~[org.apache.felix.main.jar:na]
    at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308) [org.apache.felix.main.jar:na]
    at java.lang.Thread.run(Thread.java:745) [na:1.8.0_40]

The SPARQL plug-in works fine alone inside Protege. Any ideas?

好的,问题出在项目中包含的其他 Maven 工件中。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM