Skip to content

Exception when trying to use CSPARQLEngineRSP4J with Jena related objects #13

@rahuldh2006

Description

@rahuldh2006

In RSP4J, when I try to use CSPARQLEngineRSP4J with Jena related objects (for example, JenaRDFParsingStrategy), I get below exception.

Exception in thread "main" java.lang.NoSuchMethodError: 'java.lang.Object org.apache.jena.atlas.lib.Cache.getIfPresent(java.lang.Object)'

Code fragment :

CSPARQLEngineRSP4J csparql = new CSPARQLEngineRSP4J();

JenaRDFParsingStrategy parsingStrategy = new JenaRDFParsingStrategy(RDFBase.TTL);

String filePath = "stream.log";
FileSource fileSource = new FileSource(filePath, 100, parsingStrategy);
csparql.register(fileSource);

DataStream outputStream = new DataStreamImpl<>("http://out/stream");
csparql.setSelectOutput(outputStream);

ContinuousQuery<Graph, Graph, Binding, Binding> cq = csparql.parseCSPARQLSelect(some_query);
ContinuousQueryExecution<Graph, Graph, Binding, Binding> cqe = csparql.parseSelect(cq);

fileSource.stream();

Note that CQELSEngineRSP4J works fine with Jena related objects in RSP4J.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions