@Test void testBuildExtensionMap() { final Map<String, IRI> extensions = TriplestoreResourceService.buildExtensionMap( "foo=http: assertEquals(2, extensions.size()); assertEquals(rdf.createIRI("http: assertEquals(rdf.createIRI("http: }
static Map<String, IRI> buildExtensionMap(final String extensions) { return stream(extensions.split(",")).map(item -> item.split("=")).filter(kv -> kv.length == 2) .filter(kv -> !kv[0].trim().isEmpty() && !kv[1].trim().isEmpty()) .collect(toMap(kv -> kv[0].trim(), kv -> rdf.createIRI(kv[1].trim()))); }
TriplestoreResourceService implements ResourceService { static Map<String, IRI> buildExtensionMap(final String extensions) { return stream(extensions.split(",")).map(item -> item.split("=")).filter(kv -> kv.length == 2) .filter(kv -> !kv[0].trim().isEmpty() && !kv[1].trim().isEmpty()) .collect(toMap(kv -> kv[0].trim(), kv -> rdf.createIRI(kv[1].trim()))); } }
TriplestoreResourceService implements ResourceService { static Map<String, IRI> buildExtensionMap(final String extensions) { return stream(extensions.split(",")).map(item -> item.split("=")).filter(kv -> kv.length == 2) .filter(kv -> !kv[0].trim().isEmpty() && !kv[1].trim().isEmpty()) .collect(toMap(kv -> kv[0].trim(), kv -> rdf.createIRI(kv[1].trim()))); } TriplestoreResourceService();  TriplestoreResourceService(final RDFConnection rdfConnection); @Inject  TriplestoreResourceService(final RDFConnection rdfConnection, final IdentifierService identifierService); }
TriplestoreResourceService implements ResourceService { static Map<String, IRI> buildExtensionMap(final String extensions) { return stream(extensions.split(",")).map(item -> item.split("=")).filter(kv -> kv.length == 2) .filter(kv -> !kv[0].trim().isEmpty() && !kv[1].trim().isEmpty()) .collect(toMap(kv -> kv[0].trim(), kv -> rdf.createIRI(kv[1].trim()))); } 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 { static Map<String, IRI> buildExtensionMap(final String extensions) { return stream(extensions.split(",")).map(item -> item.split("=")).filter(kv -> kv.length == 2) .filter(kv -> !kv[0].trim().isEmpty() && !kv[1].trim().isEmpty()) .collect(toMap(kv -> kv[0].trim(), kv -> rdf.createIRI(kv[1].trim()))); } 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; }