Class RdfPubClientWebFluxDefault
java.lang.Object
org.linkedopenactors.rdfpub.client.RdfPubClientWebFluxDefault
- All Implemented Interfaces:
RdfPubClientWebFlux
Default implementation of
RdfPubClient.- Author:
- SofwareEngineering Hauschel
-
Constructor Summary
ConstructorsConstructorDescriptionRdfPubClientWebFluxDefault(String rdfPubServerUrl, org.springframework.web.reactive.function.client.WebClient webClient, String userId) -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<org.eclipse.rdf4j.model.IRI>reactor.core.publisher.Mono<ActorProfile>reactor.core.publisher.Mono<RdfPubServerProfile>org.eclipse.rdf4j.repository.sparql.SPARQLRepositorygetSparqlRepository(org.eclipse.rdf4j.model.IRI sparqlEndpoint, String token) reactor.core.publisher.Mono<org.eclipse.rdf4j.repository.sparql.SPARQLRepository>getSparqlRepository(reactor.core.publisher.Mono<org.eclipse.rdf4j.model.IRI> sparqlEndpointMono) reactor.core.publisher.Mono<org.eclipse.rdf4j.repository.sparql.SPARQLRepository>getSparqlRepository(reactor.core.publisher.Mono<org.eclipse.rdf4j.model.IRI> sparqlEndpointMono, String token) org.eclipse.rdf4j.repository.sparql.SPARQLRepositorygetSparqlRepository2(org.eclipse.rdf4j.model.IRI sparqlEndpointMono) org.eclipse.rdf4j.repository.sparql.SPARQLRepositorygetSparqlRepository2(org.eclipse.rdf4j.model.IRI sparqlEndpoint, String token) reactor.core.publisher.Mono<org.eclipse.rdf4j.model.IRI>postActivity(org.eclipse.rdf4j.model.Model activity, String token) Posts a new activity to the usres outbox.reactor.core.publisher.Mono<org.eclipse.rdf4j.model.Model>read(org.eclipse.rdf4j.model.IRI idOfTheResourceToRead) reactor.core.publisher.Flux<org.eclipse.rdf4j.query.BindingSet>tupleQueryAsPublic(String query) reactor.core.publisher.Flux<org.eclipse.rdf4j.query.BindingSet>tupleQueryInbox(String query, String authToken) reactor.core.publisher.Flux<org.eclipse.rdf4j.query.BindingSet>tupleQueryOutbox(String query, String authToken)
-
Constructor Details
-
Method Details
-
getCurrentActorProfile
- Specified by:
getCurrentActorProfilein interfaceRdfPubClientWebFlux
-
getActorId
public reactor.core.publisher.Mono<org.eclipse.rdf4j.model.IRI> getActorId()- Specified by:
getActorIdin interfaceRdfPubClientWebFlux
-
getServerProfile
- Specified by:
getServerProfilein interfaceRdfPubClientWebFlux
-
read
public reactor.core.publisher.Mono<org.eclipse.rdf4j.model.Model> read(org.eclipse.rdf4j.model.IRI idOfTheResourceToRead) - Specified by:
readin interfaceRdfPubClientWebFlux
-
tupleQueryOutbox
public reactor.core.publisher.Flux<org.eclipse.rdf4j.query.BindingSet> tupleQueryOutbox(String query, String authToken) - Specified by:
tupleQueryOutboxin interfaceRdfPubClientWebFlux
-
tupleQueryInbox
public reactor.core.publisher.Flux<org.eclipse.rdf4j.query.BindingSet> tupleQueryInbox(String query, String authToken) - Specified by:
tupleQueryInboxin interfaceRdfPubClientWebFlux
-
tupleQueryAsPublic
public reactor.core.publisher.Flux<org.eclipse.rdf4j.query.BindingSet> tupleQueryAsPublic(String query) - Specified by:
tupleQueryAsPublicin interfaceRdfPubClientWebFlux
-
getSparqlRepository
public reactor.core.publisher.Mono<org.eclipse.rdf4j.repository.sparql.SPARQLRepository> getSparqlRepository(reactor.core.publisher.Mono<org.eclipse.rdf4j.model.IRI> sparqlEndpointMono, String token) -
getSparqlRepository
public reactor.core.publisher.Mono<org.eclipse.rdf4j.repository.sparql.SPARQLRepository> getSparqlRepository(reactor.core.publisher.Mono<org.eclipse.rdf4j.model.IRI> sparqlEndpointMono) -
getSparqlRepository2
public org.eclipse.rdf4j.repository.sparql.SPARQLRepository getSparqlRepository2(org.eclipse.rdf4j.model.IRI sparqlEndpointMono) -
getSparqlRepository2
public org.eclipse.rdf4j.repository.sparql.SPARQLRepository getSparqlRepository2(org.eclipse.rdf4j.model.IRI sparqlEndpoint, String token) -
getSparqlRepository
public org.eclipse.rdf4j.repository.sparql.SPARQLRepository getSparqlRepository(org.eclipse.rdf4j.model.IRI sparqlEndpoint, String token) -
postActivity
public reactor.core.publisher.Mono<org.eclipse.rdf4j.model.IRI> postActivity(org.eclipse.rdf4j.model.Model activity, String token) Description copied from interface:RdfPubClientWebFluxPosts a new activity to the usres outbox.- Specified by:
postActivityin interfaceRdfPubClientWebFlux- Parameters:
activity- the model of the new activity to post.token- The Oauth2 accessToken to use.- Returns:
- the id of the newly created activity.
-