@Test void testBuildRDFConnectionRemoteHTTPS() { final RDFConnection rdfConnection = TriplestoreResourceService.buildRDFConnection("https: assertNotNull(rdfConnection, "Missing RDFConnection, using local HTTP!"); assertFalse(rdfConnection.isClosed(), "RDFConnection has been closed!"); assertTrue(rdfConnection instanceof RDFConnectionRemote, "Incorrect type"); }
public static RDFConnection buildRDFConnection(final String location) { if (location != null) { if (location.startsWith("http: LOGGER.info("Using remote Triplestore for persistence at {}", location); return connect(location); } LOGGER.info("Using local TDB2 database at {}", location); return connect(wrap(connectDatasetGraph(location))); } LOGGER.info("Using an in-memory dataset for resources"); return connect(createTxnMem()); }
TriplestoreResourceService implements ResourceService { public static RDFConnection buildRDFConnection(final String location) { if (location != null) { if (location.startsWith("http: LOGGER.info("Using remote Triplestore for persistence at {}", location); return connect(location); } LOGGER.info("Using local TDB2 database at {}", location); return connect(wrap(connectDatasetGraph(location))); } LOGGER.info("Using an in-memory dataset for resources"); return connect(createTxnMem()); } }
TriplestoreResourceService implements ResourceService { public static RDFConnection buildRDFConnection(final String location) { if (location != null) { if (location.startsWith("http: LOGGER.info("Using remote Triplestore for persistence at {}", location); return connect(location); } LOGGER.info("Using local TDB2 database at {}", location); return connect(wrap(connectDatasetGraph(location))); } LOGGER.info("Using an in-memory dataset for resources"); return connect(createTxnMem()); } TriplestoreResourceService();  TriplestoreResourceService(final RDFConnection rdfConnection); @Inject  TriplestoreResourceService(final RDFConnection rdfConnection, final IdentifierService identifierService); }
TriplestoreResourceService implements ResourceService { public static RDFConnection buildRDFConnection(final String location) { if (location != null) { if (location.startsWith("http: LOGGER.info("Using remote Triplestore for persistence at {}", location); return connect(location); } LOGGER.info("Using local TDB2 database at {}", location); return connect(wrap(connectDatasetGraph(location))); } LOGGER.info("Using an in-memory dataset for resources"); return connect(createTxnMem()); } TriplestoreResourceService();  TriplestoreResourceService(final RDFConnection rdfConnection); @Inject  TriplestoreResourceService(final RDFConnection rdfConnection, final IdentifierService identifierService); @Override CompletionStage<Void> delete(final Metadata metadata); @Override CompletionStage<Void> create(final Metadata metadata, final Dataset dataset); @Override CompletionStage<Void> replace(final Metadata metadata, final Dataset dataset); @PostConstruct void initialize(); @Override CompletionStage<Resource> get(final IRI identifier); @Override String generateIdentifier(); @Override CompletionStage<Void> add(final IRI id, final Dataset dataset); @Override CompletionStage<Void> touch(final IRI identifier); @Override Set<IRI> supportedInteractionModels(); static RDFConnection buildRDFConnection(final String location); }
TriplestoreResourceService implements ResourceService { public static RDFConnection buildRDFConnection(final String location) { if (location != null) { if (location.startsWith("http: LOGGER.info("Using remote Triplestore for persistence at {}", location); return connect(location); } LOGGER.info("Using local TDB2 database at {}", location); return connect(wrap(connectDatasetGraph(location))); } LOGGER.info("Using an in-memory dataset for resources"); return connect(createTxnMem()); } TriplestoreResourceService();  TriplestoreResourceService(final RDFConnection rdfConnection); @Inject  TriplestoreResourceService(final RDFConnection rdfConnection, final IdentifierService identifierService); @Override CompletionStage<Void> delete(final Metadata metadata); @Override CompletionStage<Void> create(final Metadata metadata, final Dataset dataset); @Override CompletionStage<Void> replace(final Metadata metadata, final Dataset dataset); @PostConstruct void initialize(); @Override CompletionStage<Resource> get(final IRI identifier); @Override String generateIdentifier(); @Override CompletionStage<Void> add(final IRI id, final Dataset dataset); @Override CompletionStage<Void> touch(final IRI identifier); @Override Set<IRI> supportedInteractionModels(); static RDFConnection buildRDFConnection(final String location); static final String CONFIG_TRIPLESTORE_RDF_LOCATION; static final String CONFIG_TRIPLESTORE_LDP_TYPE; }