Class RdfPubClientDefault
java.lang.Object
org.linkedopenactors.rdfpub.client.RdfPubClientAbstract
org.linkedopenactors.rdfpub.client.RdfPubClientDefault
- All Implemented Interfaces:
RdfPubClient
,RdfPubClientAnonymous
Default implementation of
RdfPubClient
.- Author:
- SofwareEngineering Hauschel
-
Constructor Summary
ConstructorDescriptionRdfPubClientDefault
(org.eclipse.rdf4j.model.IRI rdfPubServerActorIri, org.springframework.web.reactive.function.client.WebClient webClient, org.eclipse.rdf4j.model.IRI clientApplicationActor) -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.rdf4j.model.IRI
Optional
<org.eclipse.rdf4j.model.Model> Optional
<org.eclipse.rdf4j.model.Model> getProfile
(String authToken) org.eclipse.rdf4j.model.Model
org.eclipse.rdf4j.model.Model
getStatementsOutbox
(String authToken, org.eclipse.rdf4j.model.Resource subj, org.eclipse.rdf4j.model.IRI pred, org.eclipse.rdf4j.model.Value obj, org.eclipse.rdf4j.model.Resource... contexts) org.eclipse.rdf4j.model.Model
graphQueryOutbox
(String query, String authToken) org.eclipse.rdf4j.model.IRI
postActivity
(org.eclipse.rdf4j.model.Model activity, String authToken) Posts a new activity to the usres outbox.Optional
<org.eclipse.rdf4j.model.Model> List
<org.eclipse.rdf4j.query.BindingSet> tupleQueryOutbox
(String query, String authToken) Methods inherited from class org.linkedopenactors.rdfpub.client.RdfPubClientAbstract
getStatementsPublic, read
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.linkedopenactors.rdfpub.client.RdfPubClientAnonymous
getStatementsPublic, read
-
Constructor Details
-
RdfPubClientDefault
public RdfPubClientDefault(org.eclipse.rdf4j.model.IRI rdfPubServerActorIri, org.springframework.web.reactive.function.client.WebClient webClient, org.eclipse.rdf4j.model.IRI clientApplicationActor) - Parameters:
rdfPubServerActorIri
- The iri/url of the server actor. Used to get the public sparql endpointwebClient
- The webclient to use for http communication.clientApplicationActor
- The iri/url of the user. TODO determinate this by webfinger ?!
-
-
Method Details
-
postActivity
public org.eclipse.rdf4j.model.IRI postActivity(org.eclipse.rdf4j.model.Model activity, String authToken) Description copied from interface:RdfPubClient
Posts a new activity to the usres outbox.- Specified by:
postActivity
in interfaceRdfPubClient
- Parameters:
activity
- the model of the new activity to post.- Returns:
- the id of the newly created activity.
-
getRdfPubProfile
public org.eclipse.rdf4j.model.Model getRdfPubProfile()- Specified by:
getRdfPubProfile
in interfaceRdfPubClient
-
getProfile
- Specified by:
getProfile
in interfaceRdfPubClient
-
getProfile
- Specified by:
getProfile
in interfaceRdfPubClient
-
read
public Optional<org.eclipse.rdf4j.model.Model> read(org.eclipse.rdf4j.model.IRI idOfTheResourceToRead, String authToken) - Specified by:
read
in interfaceRdfPubClient
-
getActorId
public org.eclipse.rdf4j.model.IRI getActorId()- Specified by:
getActorId
in interfaceRdfPubClient
-
graphQueryOutbox
- Specified by:
graphQueryOutbox
in interfaceRdfPubClient
-
tupleQueryOutbox
- Specified by:
tupleQueryOutbox
in interfaceRdfPubClient
-
getStatementsOutbox
public org.eclipse.rdf4j.model.Model getStatementsOutbox(String authToken, 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:
getStatementsOutbox
in interfaceRdfPubClient
-