Class FMod_GraphQl

java.lang.Object
org.aksw.jenax.fuseki.mod.graphql.FMod_GraphQl
All Implemented Interfaces:
org.apache.jena.base.module.SubsystemLifecycle, org.apache.jena.fuseki.main.sys.FusekiActionCycle, org.apache.jena.fuseki.main.sys.FusekiAutoModule, org.apache.jena.fuseki.main.sys.FusekiBuildCycle, org.apache.jena.fuseki.main.sys.FusekiLifecycle, org.apache.jena.fuseki.main.sys.FusekiModule, org.apache.jena.fuseki.main.sys.FusekiServerArgsCustomiser, org.apache.jena.fuseki.main.sys.FusekiStartStop

public class FMod_GraphQl extends Object implements org.apache.jena.fuseki.main.sys.FusekiAutoModule
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static org.apache.jena.fuseki.server.Operation
     
    static final String
     
    static final String
     
    static final org.apache.jena.sparql.util.Symbol
     
    static final org.apache.jena.sparql.util.Symbol
     
    static final org.apache.jena.sparql.util.Symbol
    A symbol for the graphql endpoint context with an URL for where to find the underlying SPARQL endpoint.
    static final org.apache.jena.sparql.util.Symbol
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    configDataAccessPoint(org.apache.jena.fuseki.main.FusekiServer.Builder builder, org.apache.jena.fuseki.server.DataAccessPoint dap, org.apache.jena.rdf.model.Model configModel)
     
    void
    configDataAccessPoint(org.apache.jena.fuseki.server.DataAccessPoint dap, org.apache.jena.rdf.model.Model configModel)
     
    void
    configured(org.apache.jena.fuseki.main.FusekiServer.Builder builder, org.apache.jena.fuseki.server.DataAccessPointRegistry dapRegistry, org.apache.jena.rdf.model.Model configModel)
    The GraphQL endpoint registration happens here because the Fuseki Service Builder is available which we need to register servlets for the UI javascript bundle.
    static String
    getGraphQlSchemaFile(org.apache.jena.sparql.util.Context cxt)
     
    static org.aksw.jenax.graphql.sparql.v2.schema.SchemaNavigator
    getGraphQlSchemaNavigator(org.apache.jena.sparql.util.Context cxt)
     
    static String
    getGraphQlSparqlQueryEndpointUrl(org.apache.jena.sparql.util.Context cxt)
     
    static String
    getGraphQlSparqlQueryViewerUrl(org.apache.jena.sparql.util.Context cxt)
     
    static byte[]
     
     
    void
    prepare(org.apache.jena.fuseki.main.FusekiServer.Builder builder, Set<String> datasetNames, org.apache.jena.rdf.model.Model configModel)
     
    static void
    processGraphQlSchema(org.apache.jena.fuseki.main.FusekiServer.Builder builder, org.apache.jena.fuseki.server.DataAccessPoint dap, org.apache.jena.fuseki.server.Endpoint endpoint)
     
    protected void
    registerJsServlet(org.apache.jena.fuseki.main.FusekiServer.Builder builder, String name)
     
    void
    serverAfterStarting(org.apache.jena.fuseki.main.FusekiServer server)
     
    static void
    setGraphQlSchemaNavigator(org.apache.jena.sparql.util.Context cxt, org.aksw.jenax.graphql.sparql.v2.schema.SchemaNavigator schemaNavigator)
     
    void
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.apache.jena.fuseki.main.sys.FusekiAutoModule

    level, server, serverBeforeStarting, serverStopped, stop

    Methods inherited from interface org.apache.jena.fuseki.main.sys.FusekiModule

    serverConfirmReload, serverReload

    Methods inherited from interface org.apache.jena.fuseki.main.sys.FusekiServerArgsCustomiser

    serverArgsBuilder, serverArgsModify, serverArgsPrepare
  • Field Details

    • NS

      public static final String NS
      See Also:
    • OP_NAME

      public static final String OP_NAME
      See Also:
    • SYM_GRAPHQL_SCHEMA_NAVIGATOR

      public static final org.apache.jena.sparql.util.Symbol SYM_GRAPHQL_SCHEMA_NAVIGATOR
    • SYM_GRAPHQL_SCHEMA

      public static final org.apache.jena.sparql.util.Symbol SYM_GRAPHQL_SCHEMA
    • SYM_GRAPHQL_SPARQL_QUERY_ENDPOINT_URL

      public static final org.apache.jena.sparql.util.Symbol SYM_GRAPHQL_SPARQL_QUERY_ENDPOINT_URL
      A symbol for the graphql endpoint context with an URL for where to find the underlying SPARQL endpoint.
    • SYM_GRAPHQL_SPARQL_QUERY_VIEWER_URL

      public static final org.apache.jena.sparql.util.Symbol SYM_GRAPHQL_SPARQL_QUERY_VIEWER_URL
    • graphQlQueryOperation

      public static org.apache.jena.fuseki.server.Operation graphQlQueryOperation
  • Constructor Details

    • FMod_GraphQl

      public FMod_GraphQl()
  • Method Details

    • getGraphQlSchemaFile

      public static String getGraphQlSchemaFile(org.apache.jena.sparql.util.Context cxt)
    • getGraphQlSparqlQueryViewerUrl

      public static String getGraphQlSparqlQueryViewerUrl(org.apache.jena.sparql.util.Context cxt)
    • getGraphQlSparqlQueryEndpointUrl

      public static String getGraphQlSparqlQueryEndpointUrl(org.apache.jena.sparql.util.Context cxt)
    • setGraphQlSchemaNavigator

      public static void setGraphQlSchemaNavigator(org.apache.jena.sparql.util.Context cxt, org.aksw.jenax.graphql.sparql.v2.schema.SchemaNavigator schemaNavigator)
    • getGraphQlSchemaNavigator

      public static org.aksw.jenax.graphql.sparql.v2.schema.SchemaNavigator getGraphQlSchemaNavigator(org.apache.jena.sparql.util.Context cxt)
    • loadJsBundle

      public static byte[] loadJsBundle()
    • name

      public String name()
      Specified by:
      name in interface org.apache.jena.fuseki.main.sys.FusekiAutoModule
      Specified by:
      name in interface org.apache.jena.fuseki.main.sys.FusekiBuildCycle
      Specified by:
      name in interface org.apache.jena.fuseki.main.sys.FusekiModule
    • start

      public void start()
      Specified by:
      start in interface org.apache.jena.fuseki.main.sys.FusekiAutoModule
      Specified by:
      start in interface org.apache.jena.base.module.SubsystemLifecycle
    • prepare

      public void prepare(org.apache.jena.fuseki.main.FusekiServer.Builder builder, Set<String> datasetNames, org.apache.jena.rdf.model.Model configModel)
      Specified by:
      prepare in interface org.apache.jena.fuseki.main.sys.FusekiAutoModule
      Specified by:
      prepare in interface org.apache.jena.fuseki.main.sys.FusekiBuildCycle
      Specified by:
      prepare in interface org.apache.jena.fuseki.main.sys.FusekiModule
    • configured

      public void configured(org.apache.jena.fuseki.main.FusekiServer.Builder builder, org.apache.jena.fuseki.server.DataAccessPointRegistry dapRegistry, org.apache.jena.rdf.model.Model configModel)
      The GraphQL endpoint registration happens here because the Fuseki Service Builder is available which we need to register servlets for the UI javascript bundle.
      Specified by:
      configured in interface org.apache.jena.fuseki.main.sys.FusekiAutoModule
      Specified by:
      configured in interface org.apache.jena.fuseki.main.sys.FusekiBuildCycle
      Specified by:
      configured in interface org.apache.jena.fuseki.main.sys.FusekiModule
    • registerJsServlet

      protected void registerJsServlet(org.apache.jena.fuseki.main.FusekiServer.Builder builder, String name)
    • configDataAccessPoint

      public void configDataAccessPoint(org.apache.jena.fuseki.server.DataAccessPoint dap, org.apache.jena.rdf.model.Model configModel)
      Specified by:
      configDataAccessPoint in interface org.apache.jena.fuseki.main.sys.FusekiAutoModule
      Specified by:
      configDataAccessPoint in interface org.apache.jena.fuseki.main.sys.FusekiBuildCycle
      Specified by:
      configDataAccessPoint in interface org.apache.jena.fuseki.main.sys.FusekiModule
    • configDataAccessPoint

      public void configDataAccessPoint(org.apache.jena.fuseki.main.FusekiServer.Builder builder, org.apache.jena.fuseki.server.DataAccessPoint dap, org.apache.jena.rdf.model.Model configModel)
    • processGraphQlSchema

      public static void processGraphQlSchema(org.apache.jena.fuseki.main.FusekiServer.Builder builder, org.apache.jena.fuseki.server.DataAccessPoint dap, org.apache.jena.fuseki.server.Endpoint endpoint)
    • serverAfterStarting

      public void serverAfterStarting(org.apache.jena.fuseki.main.FusekiServer server)
      Specified by:
      serverAfterStarting in interface org.apache.jena.fuseki.main.sys.FusekiAutoModule
      Specified by:
      serverAfterStarting in interface org.apache.jena.fuseki.main.sys.FusekiModule
      Specified by:
      serverAfterStarting in interface org.apache.jena.fuseki.main.sys.FusekiStartStop