Class TDB


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

      Fields 
      Modifier and Type Field Description
      static java.lang.String BUILD_DATE
      The date and time at which this release was built
      static org.slf4j.Logger logInfo
      Logger for general information
      static java.lang.String logInfoName
      Logger for general information
      static org.slf4j.Logger logLoader
      Logger for loading information
      static java.lang.String logLoaderName
      Logger for loading information
      static java.lang.String NAME  
      static java.lang.String namespace  
      static java.lang.String PATH
      The root package name for TDB
      static Symbol symUnionDefaultGraph
      Symbol to use the union of named graphs as the default graph of a query
      static java.lang.String tdbFaqsLink  
      static java.lang.String tdbIRI
      IRI for TDB
      static java.lang.String tdbParamNS
      Root of TDB-defined parameter names
      static java.lang.String tdbSymbolPrefix
      Prefix for TDB-defined parameter names
      static Symbol transactionJournalWriteBlockMode
      A String enum Symbol that specifies the type of temporary storage for transaction journal write blocks.
      static java.lang.String VERSION
      The full name of the current TDB version
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void closedown()
      Release any and all system resources held by TDB.
      static Context getContext()  
      static void init()
      TDB System initialization - normally, this is not explicitly called because Jena system wide initialization occurs automatically.
      static void setOptimizerWarningFlag​(boolean b)
      Set the global flag that control the "No BGP optimizer" warning.
      static void sync​(Graph graph)
      Sync a TDB-backed Graph.
      static void sync​(Dataset dataset)
      Sync a TDB-backed Dataset.
      static void sync​(Model model)
      Sync a TDB-backed Model.
      static void sync​(DatasetGraph dataset)
      Sync a TDB-backed DatasetGraph.
      • Methods inherited from class java.lang.Object

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

      • tdbParamNS

        public static final java.lang.String tdbParamNS
        Root of TDB-defined parameter names
        See Also:
        Constant Field Values
      • tdbSymbolPrefix

        public static final java.lang.String tdbSymbolPrefix
        Prefix for TDB-defined parameter names
        See Also:
        Constant Field Values
      • logLoaderName

        public static final java.lang.String logLoaderName
        Logger for loading information
        See Also:
        Constant Field Values
      • logLoader

        public static final org.slf4j.Logger logLoader
        Logger for loading information
      • logInfoName

        public static final java.lang.String logInfoName
        Logger for general information
        See Also:
        Constant Field Values
      • logInfo

        public static final org.slf4j.Logger logInfo
        Logger for general information
      • symUnionDefaultGraph

        public static final Symbol symUnionDefaultGraph
        Symbol to use the union of named graphs as the default graph of a query
      • transactionJournalWriteBlockMode

        public static final Symbol transactionJournalWriteBlockMode
        A String enum Symbol that specifies the type of temporary storage for transaction journal write blocks.

        "mem" = Java heap memory (default)
        "direct" = Process heap memory
        "mapped" = Memory mapped temporary file

      • PATH

        public static final java.lang.String PATH
        The root package name for TDB
        See Also:
        Constant Field Values
      • VERSION

        public static final java.lang.String VERSION
        The full name of the current TDB version
      • BUILD_DATE

        public static final java.lang.String BUILD_DATE
        The date and time at which this release was built
    • Method Detail

      • getContext

        public static Context getContext()
      • closedown

        public static void closedown()
        Release any and all system resources held by TDB. This does NOT close or release datasets or graphs held by client code.
      • setOptimizerWarningFlag

        public static void setOptimizerWarningFlag​(boolean b)
        Set the global flag that control the "No BGP optimizer" warning. Set to false to silence the warning
      • sync

        public static void sync​(Model model)
        Sync a TDB-backed Model. Do nothing if not TDB-backed.
      • sync

        public static void sync​(Graph graph)
        Sync a TDB-backed Graph. Do nothing if not TDB-backed.
      • sync

        public static void sync​(Dataset dataset)
        Sync a TDB-backed Dataset. Do nothing if not TDB-backed.
      • sync

        public static void sync​(DatasetGraph dataset)
        Sync a TDB-backed DatasetGraph. Do nothing if not TDB-backed.
      • init

        public static void init()
        TDB System initialization - normally, this is not explicitly called because Jena system wide initialization occurs automatically. However, calling it repeatedly is safe and low cost.