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

ClassNotFoundException for Triplifiers #514

Closed
sebastianthelen opened this issue Nov 15, 2024 · 2 comments
Closed

ClassNotFoundException for Triplifiers #514

sebastianthelen opened this issue Nov 15, 2024 · 2 comments
Labels
Bug Something isn't working
Milestone

Comments

@sebastianthelen
Copy link

I use SPARQL Anything to consume data from an XML source. The latest releases seem to have problems with different data sources and cause ClassNotFoundExceptions for specific triplifiers. In my case java.lang.ClassNotFoundException: io.github.sparqlanything.xml.XMLTriplifier.

I can't share my query to reproduce the exact same problem because my endpoints are internal. A similar issue can be reproduced using the query from the documentation, i.e.,

PREFIX xyz: <http://sparql.xyz/facade-x/data/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX fx: <http://sparql.xyz/facade-x/ns/>

SELECT ?seriesName
WHERE {

    SERVICE <x-sparql-anything:https://sparql-anything.cc/example1.json> {
        ?tvSeries xyz:name ?seriesName .
        ?tvSeries xyz:stars ?star .
        ?star fx:anySlot "Courteney Cox" .
    }

}

which results in java.lang.ClassNotFoundException: io.github.sparqlanything.json.JSONTriplifier.

The problem seems so have emerged with v1.0-DEV.5 and higher. v1.0-DEV.4 is not affected by this issue. I'm running the server version of Sparql Anything (sparql-anything-server-v1.0-DEV.X.jar) and execute the queries from the UI.

@luigi-asprino
Copy link
Member

Hi,

the problem was introduced in the #484 in which we introduced the libs module to collect all the triplifiers and remove them from the engine model.
The dependencies of the fuseki module need to be updated.

luigi-asprino added a commit that referenced this issue Nov 18, 2024
@luigi-asprino luigi-asprino added the Bug Something isn't working label Nov 18, 2024
@luigi-asprino luigi-asprino added this to the v1.0.0 milestone Nov 18, 2024
luigi-asprino added a commit that referenced this issue Nov 18, 2024
@luigi-asprino
Copy link
Member

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

2 participants