Class RdfPubClientWebFluxDefault

java.lang.Object
org.linkedopenactors.rdfpub.client.RdfPubClientWebFluxDefault
All Implemented Interfaces:
RdfPubClientWebFlux

public class RdfPubClientWebFluxDefault extends Object implements RdfPubClientWebFlux
Default implementation of RdfPubClient.
Author:
SofwareEngineering Hauschel
  • Constructor Summary

    Constructors
    Constructor
    Description
    RdfPubClientWebFluxDefault(String rdfPubServerUrl, org.springframework.web.reactive.function.client.WebClient webClient, String userId)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    reactor.core.publisher.Mono<org.eclipse.rdf4j.model.IRI>
     
    reactor.core.publisher.Mono<ActorProfile>
     
    reactor.core.publisher.Mono<RdfPubServerProfile>
     
    org.eclipse.rdf4j.repository.sparql.SPARQLRepository
    getSparqlRepository(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.SPARQLRepository
    getSparqlRepository2(org.eclipse.rdf4j.model.IRI sparqlEndpointMono)
     
    org.eclipse.rdf4j.repository.sparql.SPARQLRepository
    getSparqlRepository2(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>
     
    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)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RdfPubClientWebFluxDefault

      public RdfPubClientWebFluxDefault(String rdfPubServerUrl, org.springframework.web.reactive.function.client.WebClient webClient, String userId)
      Parameters:
      rdfPubServerUrl - rdfPubServerUrl
      webClient - The webclient to use for http communication.
      userId - userId
  • Method Details

    • getCurrentActorProfile

      public reactor.core.publisher.Mono<ActorProfile> getCurrentActorProfile()
      Specified by:
      getCurrentActorProfile in interface RdfPubClientWebFlux
    • getActorId

      public reactor.core.publisher.Mono<org.eclipse.rdf4j.model.IRI> getActorId()
      Specified by:
      getActorId in interface RdfPubClientWebFlux
    • getServerProfile

      public reactor.core.publisher.Mono<RdfPubServerProfile> getServerProfile()
      Specified by:
      getServerProfile in interface RdfPubClientWebFlux
    • read

      public reactor.core.publisher.Mono<org.eclipse.rdf4j.model.Model> read(org.eclipse.rdf4j.model.IRI idOfTheResourceToRead)
      Specified by:
      read in interface RdfPubClientWebFlux
    • tupleQueryOutbox

      public reactor.core.publisher.Flux<org.eclipse.rdf4j.query.BindingSet> tupleQueryOutbox(String query, String authToken)
      Specified by:
      tupleQueryOutbox in interface RdfPubClientWebFlux
    • tupleQueryInbox

      public reactor.core.publisher.Flux<org.eclipse.rdf4j.query.BindingSet> tupleQueryInbox(String query, String authToken)
      Specified by:
      tupleQueryInbox in interface RdfPubClientWebFlux
    • tupleQueryAsPublic

      public reactor.core.publisher.Flux<org.eclipse.rdf4j.query.BindingSet> tupleQueryAsPublic(String query)
      Specified by:
      tupleQueryAsPublic in interface RdfPubClientWebFlux
    • 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: RdfPubClientWebFlux
      Posts a new activity to the usres outbox.
      Specified by:
      postActivity in interface RdfPubClientWebFlux
      Parameters:
      activity - the model of the new activity to post.
      token - The Oauth2 accessToken to use.
      Returns:
      the id of the newly created activity.