I'm having trouble using the built-in lucene index via RDF4J over HTTP. I've followed the following steps:
Native Java Store with RDFS+SPIN+Lucene
repo = new HTTPRepository( <server>, <repo> );
repo.initialize();
server/repositories/<repo>/index
which appears to contain a lucene index.How do I reproduce the local results from the server over HTTP?
The problem is not in the HTTP connection, but in the fact that you're using the RDFS+SPIN+Lucene configuration when working on the server. I've just ran a few tests and this combination gives unexpected results even when querying it locally instead of over HTTP.
The short of it is that there appears to be a bug in that specific sail configuration (the culprit, specifically, seems to be the SPIN reasoner). Unless you specifically need that configuration, I suggest that you can work around the issue by just using a "Native store with Lucene Support" for now. I will update this answer as soon as I know more about the specifics of the bug.