Class NamedGraphStreamCliUtils
java.lang.Object
org.aksw.jena_sparql_api.rx.io.resultset.NamedGraphStreamCliUtils
Utilities for processing a sequence of command line arguments that denote
RDF sources and SPARQL-based transformations into streams of data
- Author:
- raven
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic io.reactivex.rxjava3.core.Flowable<org.apache.jena.query.Dataset>createNamedGraphStreamFromArgs(List<String> rawArgs, String fmtHint, org.apache.jena.shared.PrefixMapping pm, Collection<org.apache.jena.riot.Lang> quadLangs) Default procedure to obtain a stream of named graphs from a list of non-option arguments If the list is empty or the first argument is '-' data will be read from stdinstatic voidexecMap(org.apache.jena.shared.PrefixMapping pm, List<String> sourceStrs, Collection<org.apache.jena.riot.Lang> quadLangs, List<String> stmtStrs, String timeoutSpec, String outFormat, long deferCount) preprocessArgs(List<String> args) Injects stdin if there are no arguments and checks that stdin is not mixed with other input sourcesstatic Callable<org.apache.jena.atlas.web.TypedInputStream>validate(String filenameOrIri, Iterable<org.apache.jena.riot.Lang> probeLangs, boolean displayProbeResult) validate(List<String> args, Iterable<org.apache.jena.riot.Lang> probeLangs, boolean displayProbeResults) Validate whether all given arguments can be opened.static voidvalidateStdIn(List<String> args) If one of the args is '-' for STDIN there must not be any further arg
-
Constructor Details
-
NamedGraphStreamCliUtils
public NamedGraphStreamCliUtils()
-
-
Method Details
-
validateStdIn
If one of the args is '-' for STDIN there must not be any further arg- Parameters:
args-
-
validate
-
preprocessArgs
Injects stdin if there are no arguments and checks that stdin is not mixed with other input sources- Parameters:
args-- Returns:
-
validate
public static Map<String,Callable<org.apache.jena.atlas.web.TypedInputStream>> validate(List<String> args, Iterable<org.apache.jena.riot.Lang> probeLangs, boolean displayProbeResults) Validate whether all given arguments can be opened. This is similar to probe() except that an exception is raised on error- Parameters:
args-probeLangs-
-