Search in sources :

Example 1 with DatasetRegistry

use of org.apache.jena.fuseki.server.DatasetRegistry in project jena by apache.

the class MgtFunctions method getFromRegistry.

private static DatasetRef getFromRegistry(String dataset) {
    DatasetRegistry registry = DatasetRegistry.get();
    if (registry == null) {
        Fuseki.serverLog.warn("No dataset registry");
        return null;
    }
    DatasetRef ref = registry.get(dataset);
    if (ref == null)
        Fuseki.serverLog.warn("Dataset not found: " + dataset);
    return ref;
}
Also used : DatasetRegistry(org.apache.jena.fuseki.server.DatasetRegistry) DatasetRef(org.apache.jena.fuseki.server.DatasetRef)

Aggregations

DatasetRef (org.apache.jena.fuseki.server.DatasetRef)1 DatasetRegistry (org.apache.jena.fuseki.server.DatasetRegistry)1