logger.info("Configuring triplestore connector from fcfg datastore configuration {}", ds); connector = getConnector(getServer() .getDatastoreConfig(ds)); logger.info("Configuring triplestore from bean {}", TriplestoreConnector.class.getName()); connector = getServer().getBean(TriplestoreConnector.class.getName(),TriplestoreConnector.class); getServer().getBean(TripleGenerator.class.getName(), TripleGenerator.class);
logger.info("Configuring triplestore connector from fcfg datastore configuration {}", ds); connector = getConnector(getServer() .getDatastoreConfig(ds)); logger.info("Configuring triplestore from bean {}", TriplestoreConnector.class.getName()); connector = getServer().getBean(TriplestoreConnector.class.getName(),TriplestoreConnector.class); getServer().getBean(TripleGenerator.class.getName(), TripleGenerator.class);
private TriplestoreConnector getConnector(Parameterized datastore) throws Exception { if (datastore == null) { throw new ModuleInitializationException("Specifed datastore " + "does not exist in fedora.fcfg", getRole()); } Map<String, String> config = datastore.getParameters(); // make sure path, if specified and relative, is translated // to an absolute path based on the value of FEDORA_HOME String path = config.get("path"); if (path != null) { config.put("path", datastore.getParameter("path", true)); } String className = config.get("connectorClassName"); if (className == null) { throw new ResourceIndexException("Required datastore parameter " + "is missing: connectorClassName"); } getServer().getStatusFile().append(ServerState.STARTING, "Initializing Triplestore"); return TriplestoreConnector.init(className, config); }
private TriplestoreConnector getConnector(Parameterized datastore) throws Exception { if (datastore == null) { throw new ModuleInitializationException("Specifed datastore " + "does not exist in fedora.fcfg", getRole()); } Map<String, String> config = datastore.getParameters(); // make sure path, if specified and relative, is translated // to an absolute path based on the value of FEDORA_HOME String path = config.get("path"); if (path != null) { config.put("path", datastore.getParameter("path", true)); } String className = config.get("connectorClassName"); if (className == null) { throw new ResourceIndexException("Required datastore parameter " + "is missing: connectorClassName"); } getServer().getStatusFile().append(ServerState.STARTING, "Initializing Triplestore"); return TriplestoreConnector.init(className, config); }