Class ContextUtils


  • public class ContextUtils
    extends java.lang.Object
    Author:
    Maxime Lefrançois
    • Constructor Detail

      • ContextUtils

        public ContextUtils()
    • Method Detail

      • getNode

        public static Node getNode​(Context context,
                                   Node_List list,
                                   int position)
        get the node at position i in the LIST( expr ). Or rdf:nil if the position is equal to the number of bindings
        Parameters:
        list -
        context -
        position -
        Returns:
      • getExecutor

        public static java.util.concurrent.ExecutorService getExecutor​(Context context)
      • isRootContext

        public static boolean isRootContext​(Context context)
      • isDebugStConcat

        public static boolean isDebugStConcat​(Context context)
      • getBase

        public static java.lang.String getBase​(Context context)
      • addTaskOnClose

        public static void addTaskOnClose​(Context context,
                                          java.lang.Runnable task)
      • close

        public static void close​(Context context)
      • getTemplateOutput

        public static org.apache.jena.atlas.io.IndentedWriter getTemplateOutput​(Context context)
      • getSelectOutput

        public static java.util.function.Consumer<ResultSet> getSelectOutput​(Context context)
      • getGenerateOutput

        public static StreamRDF getGenerateOutput​(Context context)
      • loadGraph

        public static void loadGraph​(Context context,
                                     java.lang.String sourceURI,
                                     java.lang.String baseURI,
                                     StreamRDF dest)
      • openStream

        public static TypedInputStream openStream​(Context context,
                                                  java.lang.String sourceUri,
                                                  java.lang.String acceptHeader)
      • createSimple

        public static Context createSimple()
      • build

        public static ContextUtils.Builder build​(org.apache.jena.atlas.io.IndentedWriter output)