Class FusekiConfig

java.lang.Object
org.apache.jena.fuseki.build.FusekiConfig

public class FusekiConfig extends Object
Functions to setup and act on the configuration of a Fuseki server
  • Constructor Details

    • FusekiConfig

      public FusekiConfig()
  • Method Details

    • populateStdServices

      public static DataService.Builder populateStdServices(DataService.Builder dataServiceBuilder, boolean allowUpdate)
      Convenience operation to populate a DataService 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

      public static void removeDataset(DataAccessPointRegistry dataAccessPoints, String name)
    • allowedUsers

      public static AuthPolicy allowedUsers(org.apache.jena.rdf.model.Resource resource)
      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 the DataAccessPoints; set the context provided for server-wide settings. This bundles together the steps:
    • 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 any ja:loadClass
    • servicesAndDatasets

      public static List<DataAccessPoint> servicesAndDatasets(org.apache.jena.rdf.model.Model model)
      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 looks fuseki:services ( .... ) then, if not found, all rtdf:type fuseki:services.
      See Also:
    • readConfigurationDirectory

      public static List<DataAccessPoint> readConfigurationDirectory(String dir)
      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

      public static List<DataAccessPoint> readSystemDatabase(org.apache.jena.query.Dataset ds)
      Read the system database