Uploaded image for project: 'Apache Jena'
  1. Apache Jena
  2. JENA-1790

Cannot generate Construct json-ld output

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Jena 3.13.1
    • Fix Version/s: None
    • Component/s: Fuseki
    • Labels:
      None
    • Environment:

      Linux

      Java 13 and Java 11

      Jena 3.13.1

      The server is in Kotlin 1.3.60

      (a slightly modified fusekiserver as fuseki server doesn't handle CORS when used from an application)

       

      Description

      Trying to run this query (using curl or any app) with a format=json

      "

      CONSTRUCT

      {     ?s ?p ?o. }


      WHERE {
        GRAPH ?g

      {     ?s ?p ?o.   }

      }
      LIMIT 10

      "

       

      I get a

      2019-11-29 15:47:59 INFO Fuseki:85 - [12] 500 'java.util.List com.github.jsonldjava.core.JsonLdApi.fromRDF(com.github.jsonldjava.core.RDFDataset, boolean)' (47 ms)
      2019-11-29 15:55:49 INFO Fuseki:85 - [13] POST http://127.0.0.1:3330/ds/sparql
      2019-11-29 15:55:49 INFO Fuseki:247 - [13] Query = CONSTRUCT { ?s ?p ?o. } WHERE { GRAPH ?g

      { ?s ?p ?o. }

      } LIMIT 10
      2019-11-29 15:55:49 WARN Fuseki:113 - [13] RC = 500 : 'java.util.List com.github.jsonldjava.core.JsonLdApi.fromRDF(com.github.jsonldjava.core.RDFDataset, boolean)'
      java.lang.NoSuchMethodError: 'java.util.List com.github.jsonldjava.core.JsonLdApi.fromRDF(com.github.jsonldjava.core.RDFDataset, boolean)'
      at org.apache.jena.riot.writer.JsonLDWriter.toJsonLDJavaAPI(JsonLDWriter.java:207)
      at org.apache.jena.riot.writer.JsonLDWriter.serialize(JsonLDWriter.java:179)
      at org.apache.jena.riot.writer.JsonLDWriter.write(JsonLDWriter.java:140)
      at org.apache.jena.riot.writer.JsonLDWriter.write(JsonLDWriter.java:146)
      at org.apache.jena.riot.RDFWriter.write$(RDFWriter.java:207)
      at org.apache.jena.riot.RDFWriter.output(RDFWriter.java:165)
      at org.apache.jena.riot.RDFWriter.output(RDFWriter.java:112)
      at org.apache.jena.riot.RDFWriterBuilder.output(RDFWriterBuilder.java:178)
      at org.apache.jena.riot.RDFDataMgr.write$(RDFDataMgr.java:1277)
      at org.apache.jena.riot.RDFDataMgr.write(RDFDataMgr.java:1162)
      at org.apache.jena.riot.RDFDataMgr.write(RDFDataMgr.java:1153)
      at org.apache.jena.riot.RDFDataMgr.write(RDFDataMgr.java:1104)
      at org.apache.jena.fuseki.servlets.ResponseDataset.doResponseDataset(ResponseDataset.java:123)
      at org.apache.jena.fuseki.servlets.SPARQLQueryProcessor.sendResults(SPARQLQueryProcessor.java:397)
      at org.apache.jena.fuseki.servlets.SPARQLQueryProcessor.execute(SPARQLQueryProcessor.java:277)
      at org.apache.jena.fuseki.servlets.SPARQLQueryProcessor.executeWithParameter(SPARQLQueryProcessor.java:224)
      at org.apache.jena.fuseki.servlets.SPARQLQueryProcessor.execute(SPARQLQueryProcessor.java:209)
      at org.apache.jena.fuseki.servlets.ActionService.executeLifecycle(ActionService.java:58)
      at org.apache.jena.fuseki.servlets.SPARQLQueryProcessor.execPost(SPARQLQueryProcessor.java:83)
      at org.apache.jena.fuseki.servlets.ActionProcessor.process(ActionProcessor.java:34)
      at org.apache.jena.fuseki.servlets.ActionBase.process(ActionBase.java:55)
      at org.apache.jena.fuseki.servlets.ActionExecLib.execAction(ActionExecLib.java:95)
      at org.apache.jena.fuseki.server.Dispatcher.dispatchAction(Dispatcher.java:114)
      at org.apache.jena.fuseki.server.Dispatcher.process(Dispatcher.java:106)
      at org.apache.jena.fuseki.server.Dispatcher.dispatch(Dispatcher.java:99)
      at org.apache.jena.fuseki.servlets.FusekiFilter.doFilter(FusekiFilter.java:51)
      at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)
      at org.apache.jena.fuseki.servlets.CrossOriginFilter.handle(CrossOriginFilter.java:285)
      at org.apache.jena.fuseki.servlets.CrossOriginFilter.doFilter(CrossOriginFilter.java:248)
      at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1642)
      at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:533)
      at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255)
      at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1340)
      at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:203)
      at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:473)
      at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:201)
      at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1242)
      at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:144)
      at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
      at org.eclipse.jetty.server.Server.handle(Server.java:503)
      at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:364)
      at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:260)
      at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:305)
      at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103)
      at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:118)
      at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:765)
      at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:683)
      at java.base/java.lang.Thread.run(Thread.java:830)

       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              bjo Jonathan Bisson
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: