private static Model readAssemblerFile(String filename) { return AssemblerUtils.readAssemblerFile(filename) ; }
private static Model readAssemblerFile(String filename) { return AssemblerUtils.readAssemblerFile(filename) ; }
private static List<DataAccessPoint> processServerConfigFile(String configFilename) { if ( ! FileOps.exists(configFilename) ) { Fuseki.configLog.warn("Configuration file '" + configFilename+"' does not exist") ; return Collections.emptyList(); } Fuseki.configLog.info("Configuration file: " + configFilename) ; //return FusekiConfig.readServerConfigFile(configFilename); Model model = AssemblerUtils.readAssemblerFile(configFilename) ; if ( model.size() == 0 ) return Collections.emptyList() ; List<DataAccessPoint> x = FusekiConfig.processServerConfiguration(model, Fuseki.getContext()); return x; }
private static List<DataAccessPoint> processServerConfigFile(String configFilename) { if ( ! FileOps.exists(configFilename) ) { Fuseki.configLog.warn("Configuration file '" + configFilename+"' does not exist") ; return Collections.emptyList(); } Fuseki.configLog.info("Configuration file: " + configFilename) ; //return FusekiConfig.readServerConfigFile(configFilename); Model model = AssemblerUtils.readAssemblerFile(configFilename) ; if ( model.size() == 0 ) return Collections.emptyList() ; List<DataAccessPoint> x = FusekiConfig.processServerConfiguration(model, Fuseki.getContext()); return x; }
/** * Configure using a Fuseki services/datasets assembler file. * <p> * The application is responsible for ensuring a correct classpath. For example, * including a dependency on {@code jena-text} if the configuration file includes * a text index. */ public Builder parseConfigFile(String filename) { requireNonNull(filename, "filename"); Model model = AssemblerUtils.readAssemblerFile(filename); Resource server = FusekiConfig.findServer(model); processServerLevel(server); // Process server and services, whether via server ja:services or, if absent, by finding by type. // Side effect - sets global context. List<DataAccessPoint> x = FusekiConfig.processServerConfiguration(model, Fuseki.getContext()); x.forEach(dap->addDataAccessPoint(dap)); return this; }
/** * Configure using a Fuseki services/datasets assembler file. * <p> * The application is responsible for ensuring a correct classpath. For example, * including a dependency on {@code jena-text} if the configuration file includes * a text index. */ public Builder parseConfigFile(String filename) { requireNonNull(filename, "filename"); Model model = AssemblerUtils.readAssemblerFile(filename); Resource server = FusekiConfig.findServer(model); processServerLevel(server); // Process server and services, whether via server ja:services or, if absent, by finding by type. // Side effect - sets global context. List<DataAccessPoint> x = FusekiConfig.processServerConfiguration(model, Fuseki.getContext()); x.forEach(dap->addDataAccessPoint(dap)); return this; }
public static Object build(String assemblerFile, Resource type) { if ( assemblerFile == null ) throw new ARQException("No assembler file") ; Model spec = readAssemblerFile(assemblerFile) ; Resource root = null ; try { root = GraphUtils.findRootByType(spec, type) ; if ( root == null ) throw new ARQException("No such type: <"+type+">"); } catch (TypeNotUniqueException ex) { throw new ARQException("Multiple types for: "+tDataset) ; } return Assembler.general.open(root) ; }