public class FedXUtil extends Object
Constructor and Description |
---|
FedXUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
applyMaxQueryExecutionTime(Operation operation,
FederationContext federationContext)
Set a maximum execution time corresponding to
FedXConfig.getEnforceMaxQueryTime() to this operation. |
static void |
applyQueryBindings(SailQuery query)
Apply query bindings to transfer information from the query into the evaluation routine, e.g.
|
static String |
getIncrementalUUID()
Hexadecimal representation of an incremental integer.
|
static IRI |
iri(String iri) |
static Literal |
literal(String literal) |
static Resource[] |
toContexts(Dataset ds)
Convert the given
Dataset to an array of contexts |
static Resource[] |
toContexts(StatementPattern stmt,
Dataset dataset)
Retrieve the contexts from the
StatementPattern and Dataset . |
static Dataset |
toDataset(Resource[] contexts)
Convert the given contexts to a
Dataset representation. |
static Dataset |
toDataset(StatementPattern stmt,
Dataset dataset)
|
static ValueFactory |
valueFactory() |
public static Literal literal(String literal)
literal
- public static ValueFactory valueFactory()
SimpleValueFactory
instancepublic static void applyQueryBindings(SailQuery query)
query
- public static String getIncrementalUUID()
public static void applyMaxQueryExecutionTime(Operation operation, FederationContext federationContext)
FedXConfig.getEnforceMaxQueryTime()
to this operation.
Note that this is an upper bound only as FedX applies other means for evaluation the maximum query execution
time.operation
- the Operation
federationContext
- the FederationContext
public static Dataset toDataset(Resource[] contexts)
Dataset
representation.contexts
- public static Resource[] toContexts(Dataset ds)
Dataset
to an array of contextsds
- public static Resource[] toContexts(StatementPattern stmt, Dataset dataset)
StatementPattern
and Dataset
.stmt
- dataset
- public static Dataset toDataset(StatementPattern stmt, Dataset dataset)
Dataset
representation of the given StatementPattern
and Dataset
.
If the StatementPattern
does not have a context value, the Dataset
is returned as-is, which may
also be null
.
Otherwise the newly constructed Dataset
contains all information from the original one plus the context
from the statement.
stmt
- dataset
- Copyright © 2015-2022 Eclipse Foundation. All Rights Reserved.