Github user afs commented on the issue:
https://github.com/apache/jena/pull/162
Example of the application sharing the dataset with Fuseki. This also shows
using java.util.logging for application and embedded Fuseki.
```
public static void example6() {
LogCtl.setJavaLogging();
Logger LOG = LoggerFactory.getLogger("example6") ;
DatasetGraph dsg = DatasetGraphFactory.createTxnMem() ;
FusekiEmbeddedServer server = FusekiEmbeddedServer.make(3330,
"/ds", dsg) ;
server.start() ;
LOG.info("Remote 1") ;
try (QueryExecution qExec =
QueryExecutionFactory.sparqlService("http://localhost:3330/ds/query", "SELECT *
{ ?s ?p ?o}") ) {
// Empty table
QueryExecUtils.executeQuery(qExec);
}
// Transaction-protected update.
Txn.execWrite(dsg, ()->{
Quad q = SSE.parseQuad("(_ :s :p _:b)") ;
dsg.add(q);
}) ;
LOG.info("Remote 2") ;
try (QueryExecution qExec =
QueryExecutionFactory.sparqlService("http://localhost:3330/ds/query", "SELECT *
{ ?s ?p ?o}") ) {
// One row.
QueryExecUtils.executeQuery(qExec);
}
server.stop() ;
}
```
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---