Class MetaAPIGrpc.MetaAPIStub

java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractAsyncStub<MetaAPIGrpc.MetaAPIStub>
com.iotics.api.MetaAPIGrpc.MetaAPIStub
Enclosing class:
MetaAPIGrpc

public static final class MetaAPIGrpc.MetaAPIStub extends io.grpc.stub.AbstractAsyncStub<MetaAPIGrpc.MetaAPIStub>
 MetaAPI enables querying of metadata associated with Twins and Feeds.
 Services only affect local resources, unless stated otherwise.
 
  • Nested Class Summary

    Nested classes/interfaces inherited from class io.grpc.stub.AbstractStub

    io.grpc.stub.AbstractStub.StubFactory<T extends io.grpc.stub.AbstractStub<T>>
  • Method Summary

    Modifier and Type
    Method
    Description
    build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
     
    void
    explorerQuery(ExplorerRequest request, io.grpc.stub.StreamObserver<SparqlQueryResponse> responseObserver)
    ExplorerQuery - Deprecated - use SparqlQuery instead.
    void
    sparqlQuery(SparqlQueryRequest request, io.grpc.stub.StreamObserver<SparqlQueryResponse> responseObserver)
    SparqlQuery performs a SPARQL 1.1 query and returns one or more results, each as a sequence of chunks.
    void
    sparqlUpdate(SparqlUpdateRequest request, io.grpc.stub.StreamObserver<SparqlUpdateResponse> responseObserver)
    SparqlUpdate performs a SPARQL 1.1 update.

    Methods inherited from class io.grpc.stub.AbstractAsyncStub

    newStub, newStub

    Methods inherited from class io.grpc.stub.AbstractStub

    getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOption, withWaitForReady

    Methods inherited from class java.lang.Object

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

    • build

      protected MetaAPIGrpc.MetaAPIStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
      Specified by:
      build in class io.grpc.stub.AbstractStub<MetaAPIGrpc.MetaAPIStub>
    • sparqlQuery

      public void sparqlQuery(SparqlQueryRequest request, io.grpc.stub.StreamObserver<SparqlQueryResponse> responseObserver)
       SparqlQuery performs a SPARQL 1.1 query and returns one or more results, each as a sequence of chunks. Note that:
       - Chunks for a particular result will arrive in-order though they might be interleaved with chunks from other
         results (when performing a non-local query). See scope parameter in SparqlQueryRequest;
       - The call will only complete once the (specified or host default) request timeout has been reached. The client can
         choose to end the stream early once they have received enough results. (E.g. in the case of Scope.LOCAL this
         would be after the one and only sequence of chunks has been received.). (local and remote)
       
    • sparqlUpdate

      public void sparqlUpdate(SparqlUpdateRequest request, io.grpc.stub.StreamObserver<SparqlUpdateResponse> responseObserver)
       SparqlUpdate performs a SPARQL 1.1 update. When performing an update, the update query must contain a reference to
       one of the following graph IRIs:
       1. http://data.iotics.com/graph#custom-public (aka custom public graph) - All metadata written to this graph will be
          visible during SPARQL queries both with local & global scope (and thus, the Iotics network).
       
    • explorerQuery

      public void explorerQuery(ExplorerRequest request, io.grpc.stub.StreamObserver<SparqlQueryResponse> responseObserver)
       ExplorerQuery - Deprecated - use SparqlQuery instead.