use of org.apache.jena.sparql.util.Context in project jena by apache.
the class EnvTDB method processGlobalSystemProperties.
public static void processGlobalSystemProperties() {
Context context = processProperties(System.getProperties());
TDB.getContext().putAll(context);
}
use of org.apache.jena.sparql.util.Context in project jena by apache.
the class TextDatasetFactory method create.
/** Create a text-indexed DatasetGraph, optionally allowing the text index to be closed if the DatasetGraph is */
public static DatasetGraph create(DatasetGraph dsg, TextIndex textIndex, boolean closeIndexOnDSGClose, TextDocProducer producer) {
if (producer == null)
producer = new TextDocProducerTriples(textIndex);
DatasetGraph dsgt = new DatasetGraphText(dsg, textIndex, producer, closeIndexOnDSGClose);
// Also set on dsg
Context c = dsgt.getContext();
c.set(TextQuery.textIndex, textIndex);
return dsgt;
}
Aggregations