Class Fuseki


  • public class Fuseki
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static org.slf4j.Logger actionLog
      Instance of log for operations
      static java.lang.String actionLogName
      Logger name for operations
      static org.slf4j.Logger adminLog
      Instance of log for operations.
      static java.lang.String adminLogName
      Admin log file for operations.
      static java.lang.String attrAuthorizationService  
      static java.lang.String attrNameRegistry  
      static java.lang.String attrOperationRegistry  
      static java.lang.String attrVerbose  
      static org.slf4j.Logger backupLog  
      static java.lang.String backupLogName  
      static java.lang.String BaseParserSPARQL
      Dummy base URi string for parsing SPARQL Query and Update requests
      static java.lang.String BaseUpload
      Dummy base URi string for parsing SPARQL Query and Update requests
      static java.lang.String BUILD_DATE
      Date when Fuseki was built
      static org.slf4j.Logger builderLog
      Instance of log for operations.
      static java.lang.String builderLogName
      Admin log file for operations.
      static org.slf4j.Logger compactLog  
      static java.lang.String compactLogName  
      static org.slf4j.Logger configLog
      Instance of log for config server messages.
      static java.lang.String configLogName
      Actual log file for config server messages.
      static boolean CORS_ENABLED
      Add CORS header
      static boolean developmentMode
      Are we in development mode? That means a SNAPSHOT, or no VERSION because maven has not filtered the fuseki-properties.xml file.
      static java.lang.String FusekiIRI
      a unique IRI for the Fuseki namespace
      static java.lang.String FusekiRequestIdHeader  
      static java.lang.String FusekiSymbolIRI
      a unique IRI including the symbol notation for which properties should be appended
      static boolean GSP_DIRECT_NAMING
      Supporting Graph Store Protocol direct naming.
      static java.lang.String NAME
      The name of the Fuseki server.
      static boolean outputFusekiServerHeader  
      static boolean outputJettyServerHeader  
      static java.lang.String PagesStatic
      Default location of the pages for the Fuseki UI
      static java.lang.String PATH
      Path as package name
      static org.slf4j.Logger requestLog
      Instance of a log for requests: format is NCSA.
      static java.lang.String requestLogName
      Logger name for standard webserver log file request log
      static java.lang.String serverHttpName
      An identifier for the HTTP Fuseki server instance
      static org.slf4j.Logger serverLog
      Instance of log for general server messages.
      static java.lang.String serverLogName
      Actual log file for general server messages.
      static java.lang.String servletRequestLogName
      Logger used for the servletContent.log operations (if settable -- depends on environment)
      static org.slf4j.Logger validationLog
      Instance of log for validation.
      static java.lang.String validationLogName
      Validation log file for operations.
      static boolean verboseLogging
      Instance of log for config server messages.
      static java.lang.String VERSION
      Version of this Fuseki instance
      static StreamManager webStreamManager
      An instance of management for stream opening, including redirecting through a location mapper whereby a name (e.g.
    • Constructor Summary

      Constructors 
      Constructor Description
      Fuseki()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Context getContext()
      Get server global Context.
      static boolean getVerbose​(javax.servlet.ServletContext cxt)  
      static void init()
      Initialize an instance of the Fuseki server stack.
      static boolean isFuseki​(java.lang.String datasetURL)
      Test whether a URL identifies a Fuseki server.
      static boolean isFuseki​(RDFConnectionRemote connection)
      Test whether a RDFConnectionRemote connects to a Fuseki server.
      static java.lang.String serverStartedAt()
      XSD DateTime for when the server started
      static long serverUptimeMillis()
      Return the number of milliseconds since the server started
      static long serverUptimeSeconds()
      Server uptime in seconds
      static void setVerbose​(javax.servlet.ServletContext cxt, boolean verbose)  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • PATH

        public static java.lang.String PATH
        Path as package name
      • FusekiIRI

        public static java.lang.String FusekiIRI
        a unique IRI for the Fuseki namespace
      • FusekiSymbolIRI

        public static java.lang.String FusekiSymbolIRI
        a unique IRI including the symbol notation for which properties should be appended
      • PagesStatic

        public static java.lang.String PagesStatic
        Default location of the pages for the Fuseki UI
      • BaseParserSPARQL

        public static final java.lang.String BaseParserSPARQL
        Dummy base URi string for parsing SPARQL Query and Update requests
        See Also:
        Constant Field Values
      • BaseUpload

        public static final java.lang.String BaseUpload
        Dummy base URi string for parsing SPARQL Query and Update requests
        See Also:
        Constant Field Values
      • NAME

        public static final java.lang.String NAME
        The name of the Fuseki server.
        See Also:
        Constant Field Values
      • VERSION

        public static final java.lang.String VERSION
        Version of this Fuseki instance
      • BUILD_DATE

        public static final java.lang.String BUILD_DATE
        Date when Fuseki was built
      • GSP_DIRECT_NAMING

        public static final boolean GSP_DIRECT_NAMING
        Supporting Graph Store Protocol direct naming.

        A GSP "direct name" is a request, not using ?default or ?graph=, that names the graph by the request URL so it is of the form http://server/dataset/graphname.... There are two cases: looking like a service http://server/dataset/service and a longer URL that can't be a service http://server/dataset/segment/segment/....

        GSP "direct name" is usually off. It is a rare feature and because of hard wiring to the URL quite sensitive to request route.

        The following places use this switch:

        • FusekiFilter for the "clearly not a service" case
        • ServiceRouterServlet, end of dispatch (after checking for http://server/dataset/service)
        • SPARQL_GSP.determineTarget This is all-purpose code - should not get there because of other checks.

        Note
        GSP Direct Naming was implemented to provide two implementations for the SPARQL 1.1 implementation report.

        See Also:
        Constant Field Values
      • developmentMode

        public static boolean developmentMode
        Are we in development mode? That means a SNAPSHOT, or no VERSION because maven has not filtered the fuseki-properties.xml file.
      • outputJettyServerHeader

        public static boolean outputJettyServerHeader
      • outputFusekiServerHeader

        public static boolean outputFusekiServerHeader
      • serverHttpName

        public static final java.lang.String serverHttpName
        An identifier for the HTTP Fuseki server instance
      • actionLogName

        public static final java.lang.String actionLogName
        Logger name for operations
      • actionLog

        public static final org.slf4j.Logger actionLog
        Instance of log for operations
      • requestLogName

        public static final java.lang.String requestLogName
        Logger name for standard webserver log file request log
      • requestLog

        public static final org.slf4j.Logger requestLog
        Instance of a log for requests: format is NCSA.
      • adminLogName

        public static final java.lang.String adminLogName
        Admin log file for operations.
      • adminLog

        public static final org.slf4j.Logger adminLog
        Instance of log for operations.
      • builderLogName

        public static final java.lang.String builderLogName
        Admin log file for operations.
      • builderLog

        public static final org.slf4j.Logger builderLog
        Instance of log for operations.
      • validationLogName

        public static final java.lang.String validationLogName
        Validation log file for operations.
      • validationLog

        public static final org.slf4j.Logger validationLog
        Instance of log for validation.
      • serverLogName

        public static final java.lang.String serverLogName
        Actual log file for general server messages.
      • serverLog

        public static final org.slf4j.Logger serverLog
        Instance of log for general server messages.
      • servletRequestLogName

        public static final java.lang.String servletRequestLogName
        Logger used for the servletContent.log operations (if settable -- depends on environment)
      • configLogName

        public static final java.lang.String configLogName
        Actual log file for config server messages.
      • configLog

        public static final org.slf4j.Logger configLog
        Instance of log for config server messages.
      • backupLogName

        public static final java.lang.String backupLogName
      • backupLog

        public static final org.slf4j.Logger backupLog
      • compactLogName

        public static final java.lang.String compactLogName
      • compactLog

        public static final org.slf4j.Logger compactLog
      • verboseLogging

        public static boolean verboseLogging
        Instance of log for config server messages. This is the global default used to set attribute in each server created.
      • attrNameRegistry

        public static final java.lang.String attrNameRegistry
        See Also:
        Constant Field Values
      • attrOperationRegistry

        public static final java.lang.String attrOperationRegistry
        See Also:
        Constant Field Values
      • attrAuthorizationService

        public static final java.lang.String attrAuthorizationService
        See Also:
        Constant Field Values
      • webStreamManager

        public static final StreamManager webStreamManager
        An instance of management for stream opening, including redirecting through a location mapper whereby a name (e.g. URL) is redirected to another name (e.g. local file).
      • FusekiRequestIdHeader

        public static java.lang.String FusekiRequestIdHeader
    • Constructor Detail

      • Fuseki

        public Fuseki()
    • Method Detail

      • setVerbose

        public static void setVerbose​(javax.servlet.ServletContext cxt,
                                      boolean verbose)
      • getVerbose

        public static boolean getVerbose​(javax.servlet.ServletContext cxt)
      • serverUptimeMillis

        public static long serverUptimeMillis()
        Return the number of milliseconds since the server started
      • serverUptimeSeconds

        public static long serverUptimeSeconds()
        Server uptime in seconds
      • serverStartedAt

        public static java.lang.String serverStartedAt()
        XSD DateTime for when the server started
      • init

        public static void init()
        Initialize an instance of the Fuseki server stack. This is not done via Jena's initialization mechanism but done explicitly to give more control. Touching this class causes this to happen (see static block at the end of this class).
      • isFuseki

        public static boolean isFuseki​(java.lang.String datasetURL)
        Test whether a URL identifies a Fuseki server. This operation can not guarantee to detect a Fuseki server - for example, it may be behind a reverse proxy that masks the signature.
      • isFuseki

        public static boolean isFuseki​(RDFConnectionRemote connection)
        Test whether a RDFConnectionRemote connects to a Fuseki server. This operation can not guaranteed to detech a Fuseki server - for example, it may be behind a reverse proxy that masks the signature.