Examples of RepositoryConfig


Examples of org.openrdf.repository.config.RepositoryConfig

      if (model != null) {
        repInfo = new RepositoryInfo(id);

        try {
          RepositoryConfig config = parse(model);
          repInfo.setDescription(config.getTitle());
        }
        catch (StoreConfigException e) {
          logger.warn("Failed to parse configuration for store {}: {})", id, e.getMessage());
        }
      }
View Full Code Here

Examples of org.openrdf.repository.config.RepositoryConfig

        con.begin();
        con.setNamespace("rdf", RDF.NAMESPACE);
        con.setNamespace("sys", RepositoryConfigSchema.NAMESPACE);

        if (persist) {
          RepositoryConfig repConfig = new RepositoryConfig(TITLE, new SystemRepositoryConfig());
          updateRepositoryConfigs(con, ID, repConfig);
        }

        con.commit();
      }
View Full Code Here

Examples of org.openrdf.repository.config.RepositoryConfig

  {
    Model result = delegate.getRepositoryConfig(repositoryID);

    if (result != null) {
      if (!isCorrectType(result)) {
        RepositoryConfig config = parse(result);
        logger.debug(
            "Surpressing retrieval of repository {}: repository type {} did not match expected type {}",
            new Object[] { repositoryID, config.getRepositoryImplConfig().getType(), type });

        result = null;
      }
    }
View Full Code Here

Examples of org.openrdf.repository.config.RepositoryConfig

  }

  private RepositoryConfig parse(Model config)
    throws StoreConfigException
  {
    RepositoryConfig repConfig = RepositoryConfig.create(config);
    repConfig.validate();
    return repConfig;
  }
View Full Code Here

Examples of org.openrdf.sesame.config.RepositoryConfig

   * @param gst
   */
  private void createThesaurusRepository(Thesaurus gst) throws Exception {
    LocalRepository thesaurusRepository;
    try {
      RepositoryConfig repConfig = new RepositoryConfig(gst.getKey());

      SailConfig syncSail = new SailConfig("org.openrdf.sesame.sailimpl.sync.SyncRdfSchemaRepository");
      SailConfig memSail = new org.openrdf.sesame.sailimpl.memory.RdfSchemaRepositoryConfig(
                                                         gst.getFile().getAbsolutePath(), RDFFormat.RDFXML);
      repConfig.addSail(syncSail);
      repConfig.addSail(memSail);
      repConfig.setWorldReadable(true);
      repConfig.setWorldWriteable(true);
     
      thesaurusRepository = service.createRepository(repConfig);

      gst.setRepository(thesaurusRepository);
    } catch (ConfigurationException e) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.