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
-
Field Summary
Fields inherited from class org.linkedopenactors.rdfpub.client.RdfPubClientAbstract
MEDIA_TYPE_JSON_LD, webClient -
Constructor Summary
ConstructorsConstructorDescriptionRdfPubClientDefault(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.IRIOptional<org.eclipse.rdf4j.model.Model>Optional<org.eclipse.rdf4j.model.Model>getProfile(String authToken) org.eclipse.rdf4j.model.ModelgetStatementsOutbox(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.ModelgraphQueryOutbox(String query, String authToken) org.eclipse.rdf4j.model.IRIpostActivity(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
getSparqlRepository, getSparqlRepository, getStatementsPublic, httpGetApString, httpGetApString, readMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:RdfPubClientPosts a new activity to the usres outbox.- Specified by:
postActivityin interfaceRdfPubClient- Parameters:
activity- the model of the new activity to post.- Returns:
- the id of the newly created activity.
-
getProfile
- Specified by:
getProfilein interfaceRdfPubClient
-
getProfile
- Specified by:
getProfilein interfaceRdfPubClient
-
read
public Optional<org.eclipse.rdf4j.model.Model> read(org.eclipse.rdf4j.model.IRI idOfTheResourceToRead, String authToken) - Specified by:
readin interfaceRdfPubClient
-
getActorId
public org.eclipse.rdf4j.model.IRI getActorId()- Specified by:
getActorIdin interfaceRdfPubClient
-
graphQueryOutbox
- Specified by:
graphQueryOutboxin interfaceRdfPubClient
-
tupleQueryOutbox
- Specified by:
tupleQueryOutboxin 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:
getStatementsOutboxin interfaceRdfPubClient
-