Interface RdfGraphQlDataProvider

All Known Implementing Classes:
RdfGraphQlDataProviderBase

public interface RdfGraphQlDataProvider
  • Method Summary

    Modifier and Type
    Method
    Description
    com.google.gson.JsonObject
    Metadata for this stream.
    The name of the provider.
    org.apache.jena.query.Query
    Return the underlying SPARQL query.
    boolean
    Whether this provider is expected to yield at most 1 result.
    Stream<org.aksw.jenax.ron.RdfElement>
    A stream over the resulting items.
    void
    write(org.aksw.jenax.io.json.writer.RdfObjectNotationWriter writer)
    Write the data of this provider to the given json writer
  • Method Details

    • getName

      String getName()
      The name of the provider. Usable as a key in the JSON result.
    • getMetadata

      com.google.gson.JsonObject getMetadata()
      Metadata for this stream.
    • openStream

      Stream<org.aksw.jenax.ron.RdfElement> openStream()
      A stream over the resulting items.
    • getQuery

      org.apache.jena.query.Query getQuery()
      Return the underlying SPARQL query. Experimental.
    • isSingle

      boolean isSingle()
      Whether this provider is expected to yield at most 1 result. The client can use this information to e.g. omit starting an array in the output. However, the data provider may not know whether this information is truthful. If a violation is encountered during runtime then an exception will be raised.
    • write

      void write(org.aksw.jenax.io.json.writer.RdfObjectNotationWriter writer) throws IOException
      Write the data of this provider to the given json writer
      Throws:
      IOException