Class ContextUtils
- java.lang.Object
-
- fr.mines_stetienne.ci.sparql_generate.utils.ContextUtils
-
public class ContextUtils extends Object
- Author:
- Maxime Lefrançois
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ContextUtils.Builder
static class
ContextUtils.Forker
Forker class is used to create a new context from an existing one.
-
Constructor Summary
Constructors Constructor Description ContextUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
addTaskOnClose(Context context, Runnable task)
static ContextUtils.Builder
build()
static ContextUtils.Builder
build(Consumer<ResultSet> output)
static ContextUtils.Builder
build(org.apache.jena.atlas.io.IndentedWriter output)
static ContextUtils.Builder
build(StreamRDF output)
static void
close(Context context)
static Context
createSimple()
static ContextUtils.Forker
fork(Context context)
static ContextUtils.Forker
fork(Context context, boolean isRoot)
static String
getBase(Context context)
static Dataset
getDataset(Context context)
static ExecutorService
getExecutor(Context context)
static StreamRDF
getGenerateOutput(Context context)
static Node[]
getInfo(Context context, Node_List list)
static Node
getNode(Context context, Node_List list, int position)
get the node at position i in the LIST( expr ).static PrefixMapping
getPrefixMapping(Context context)
static QueryExecutor
getQueryExecutor(Context context)
static Consumer<ResultSet>
getSelectOutput(Context context)
static org.apache.jena.atlas.io.IndentedWriter
getTemplateOutput(Context context)
static boolean
isDebugStConcat(Context context)
static boolean
isFailOnException(Context context)
static boolean
isRootContext(Context context)
static void
loadGraph(Context context, String sourceURI, String baseURI, StreamRDF dest)
static TypedInputStream
openStream(Context context, String sourceUri, String acceptHeader)
-
-
-
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 ExecutorService getExecutor(Context context)
-
getQueryExecutor
public static QueryExecutor getQueryExecutor(Context context)
-
isRootContext
public static boolean isRootContext(Context context)
-
isFailOnException
public static boolean isFailOnException(Context context)
-
isDebugStConcat
public static boolean isDebugStConcat(Context context)
-
getPrefixMapping
public static PrefixMapping getPrefixMapping(Context context)
-
close
public static void close(Context context)
-
getTemplateOutput
public static org.apache.jena.atlas.io.IndentedWriter getTemplateOutput(Context context)
-
loadGraph
public static void loadGraph(Context context, String sourceURI, String baseURI, StreamRDF dest)
-
openStream
public static TypedInputStream openStream(Context context, String sourceUri, String acceptHeader)
-
fork
public static ContextUtils.Forker fork(Context context)
-
fork
public static ContextUtils.Forker fork(Context context, boolean isRoot)
-
createSimple
public static Context createSimple()
-
build
public static ContextUtils.Builder build()
-
build
public static ContextUtils.Builder build(org.apache.jena.atlas.io.IndentedWriter output)
-
build
public static ContextUtils.Builder build(StreamRDF output)
-
build
public static ContextUtils.Builder build(Consumer<ResultSet> output)
-
-