java.lang.Object
org.apache.jena.fuseki.build.FusekiConfig
Functions to setup and act on the configuration of a Fuseki server
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addDataService
(DataAccessPointRegistry dataAccessPoints, String name, DataService dataService) static void
addDataset
(DataAccessPointRegistry dataAccessPoints, String name, org.apache.jena.sparql.core.DatasetGraph dsg, boolean withUpdate) static AuthPolicy
allowedUsers
(org.apache.jena.rdf.model.Resource resource) Get the allowed users on a resource.static DataAccessPoint
buildDataAccessPoint
(org.apache.jena.rdf.model.Resource svc, DatasetDescriptionMap dsDescMap) Build a DataAccessPoint, including DataService, from the description at Resource svcstatic DataService
buildDataServiceStd
(org.apache.jena.sparql.core.DatasetGraph dsg, boolean withUpdate) static org.apache.jena.rdf.model.Resource
findServer
(org.apache.jena.rdf.model.Model model) static org.apache.jena.query.Dataset
getDataset
(org.apache.jena.rdf.model.Resource datasetDesc, DatasetDescriptionMap dsDescMap) static DataService.Builder
populateStdServices
(DataService.Builder dataServiceBuilder, boolean allowUpdate) Convenience operation to populate aDataService
with the conventional default services.static void
processLoadClass
(org.apache.jena.rdf.model.Resource server) Process anyja:loadClass
static List<DataAccessPoint>
processServerConfiguration
(org.apache.jena.rdf.model.Model configuration, org.apache.jena.sparql.util.Context context) Process a configuration file and return theDataAccessPoints
; set the context provided for server-wide settings.static List<DataAccessPoint>
Read service descriptions in the given directorystatic List<DataAccessPoint>
readSystemDatabase
(org.apache.jena.query.Dataset ds) Read the system databasestatic void
removeDataset
(DataAccessPointRegistry dataAccessPoints, String name) static List<DataAccessPoint>
servicesAndDatasets
(org.apache.jena.rdf.model.Model model) Find and process datasets and services in a configuration file.
-
Constructor Details
-
FusekiConfig
public FusekiConfig()
-
-
Method Details
-
populateStdServices
public static DataService.Builder populateStdServices(DataService.Builder dataServiceBuilder, boolean allowUpdate) Convenience operation to populate aDataService
with the conventional default services. -
addDataService
public static void addDataService(DataAccessPointRegistry dataAccessPoints, String name, DataService dataService) -
addDataset
public static void addDataset(DataAccessPointRegistry dataAccessPoints, String name, org.apache.jena.sparql.core.DatasetGraph dsg, boolean withUpdate) -
buildDataServiceStd
public static DataService buildDataServiceStd(org.apache.jena.sparql.core.DatasetGraph dsg, boolean withUpdate) -
removeDataset
-
allowedUsers
Get the allowed users on a resource. Returns null if the resource is null or if there were no settings.- Parameters:
resource
-- Returns:
- RequestAuthorization
-
processServerConfiguration
public static List<DataAccessPoint> processServerConfiguration(org.apache.jena.rdf.model.Model configuration, org.apache.jena.sparql.util.Context context) Process a configuration file and return theDataAccessPoints
; set the context provided for server-wide settings. This bundles together the steps:findServer(org.apache.jena.rdf.model.Model)
parseContext(org.apache.jena.rdf.model.Resource)
processLoadClass(org.apache.jena.rdf.model.Resource)
(legacy)servicesAndDatasets(org.apache.jena.rdf.model.Model)
-
findServer
public static org.apache.jena.rdf.model.Resource findServer(org.apache.jena.rdf.model.Model model) -
processLoadClass
public static void processLoadClass(org.apache.jena.rdf.model.Resource server) Process anyja:loadClass
-
servicesAndDatasets
Find and process datasets and services in a configuration file. This can be a Fuseki server configuration file or a services-only configuration file. It looksfuseki:services ( .... )
then, if not found, allrtdf:type fuseki:services
. -
readConfigurationDirectory
Read service descriptions in the given directory -
buildDataAccessPoint
public static DataAccessPoint buildDataAccessPoint(org.apache.jena.rdf.model.Resource svc, DatasetDescriptionMap dsDescMap) Build a DataAccessPoint, including DataService, from the description at Resource svc -
getDataset
public static org.apache.jena.query.Dataset getDataset(org.apache.jena.rdf.model.Resource datasetDesc, DatasetDescriptionMap dsDescMap) -
readSystemDatabase
Read the system database
-