Class RdfPubClientAbstract

java.lang.Object
org.linkedopenactors.rdfpub.client.RdfPubClientAbstract
All Implemented Interfaces:
RdfPubClientAnonymous
Direct Known Subclasses:
RdfPubClientAnonymousDefault, RdfPubClientDefault

public abstract class RdfPubClientAbstract extends Object implements RdfPubClientAnonymous
Default implementation of RdfPubClient.
Author:
SofwareEngineering Hauschel
  • Constructor Summary

    Constructors
    Constructor
    Description
    RdfPubClientAbstract(org.eclipse.rdf4j.model.IRI rdfPubServerActorIri, org.springframework.web.reactive.function.client.WebClient webClient)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.eclipse.rdf4j.model.Model
    getStatementsPublic(org.eclipse.rdf4j.model.Resource subj, org.eclipse.rdf4j.model.IRI pred, org.eclipse.rdf4j.model.Value obj, org.eclipse.rdf4j.model.Resource... contexts)
     
    Optional<org.eclipse.rdf4j.model.Model>
    read(org.eclipse.rdf4j.model.IRI idOfTheResourceToRead)
     

    Methods inherited from class java.lang.Object

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

    • RdfPubClientAbstract

      public RdfPubClientAbstract(org.eclipse.rdf4j.model.IRI rdfPubServerActorIri, org.springframework.web.reactive.function.client.WebClient webClient)
      Parameters:
      rdfPubServerActorIri - The iri/url of the server actor. Used to get the public sparql endpoint
      webClient - The webclient to use for http communication.
  • Method Details

    • read

      public Optional<org.eclipse.rdf4j.model.Model> read(org.eclipse.rdf4j.model.IRI idOfTheResourceToRead)
      Specified by:
      read in interface RdfPubClientAnonymous
    • getStatementsPublic

      public org.eclipse.rdf4j.model.Model getStatementsPublic(org.eclipse.rdf4j.model.Resource subj, org.eclipse.rdf4j.model.IRI pred, org.eclipse.rdf4j.model.Value obj, org.eclipse.rdf4j.model.Resource... contexts)
      Specified by:
      getStatementsPublic in interface RdfPubClientAnonymous