Class RdfPubClientAbstract
java.lang.Object
org.linkedopenactors.rdfpub.client.RdfPubClientAbstract
- All Implemented Interfaces:
RdfPubClientAnonymous
- Direct Known Subclasses:
RdfPubClientAnonymousDefault
,RdfPubClientDefault
Default implementation of
RdfPubClient
.- Author:
- SofwareEngineering Hauschel
-
Constructor Summary
ConstructorDescriptionRdfPubClientAbstract
(org.eclipse.rdf4j.model.IRI rdfPubServerActorIri, org.springframework.web.reactive.function.client.WebClient webClient) -
Method Summary
Modifier and TypeMethodDescriptionorg.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)
-
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 endpointwebClient
- 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 interfaceRdfPubClientAnonymous
-
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 interfaceRdfPubClientAnonymous
-