java.lang.Object
org.apache.jena.fuseki.build.FusekiConfig
Functions to setup and act on the configuration of a Fuseki server
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
addDataService
(DataAccessPointRegistry dataAccessPoints, String name, DataService dataService) static void
addDataset
(DataAccessPointRegistry dataAccessPoints, String name, DatasetGraph dsg, boolean withUpdate) static AuthPolicy
allowedUsers
(Resource resource) Get the allowed users on a resource.static DataAccessPoint
buildDataAccessPoint
(Resource svc, DatasetDescriptionMap dsDescMap) Build a DataAccessPoint, including DataService, from the description at Resource svcstatic DataService
buildDataServiceStd
(DatasetGraph dsg, boolean withUpdate) static Resource
findServer
(Model model) static Dataset
getDataset
(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
(Resource server) Process anyja:loadClass
static List<DataAccessPoint>
processServerConfiguration
(Model configuration, 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>
Read the system databasestatic void
removeDataset
(DataAccessPointRegistry dataAccessPoints, String name) static List<DataAccessPoint>
servicesAndDatasets
(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, DatasetGraph dsg, boolean withUpdate) -
buildDataServiceStd
-
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(Model configuration, 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
-
processLoadClass
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
Build a DataAccessPoint, including DataService, from the description at Resource svc -
getDataset
-
readSystemDatabase
Read the system database
-