Package de.fuberlin.wiwiss.pubby.sources

Examples of de.fuberlin.wiwiss.pubby.sources.ModelDataSource


          }
        } catch (JenaException ex) {
          throw new ConfigurationException("Error reading <" + fileName + ">: " + ex.getMessage());
        }
      }
      result = new ModelDataSource(data);
    }

    // If conf:datasetURIPattern is set, then filter the dataset accordingly.
    if (hasProperty(CONF.datasetURIPattern)) {
      final Pattern pattern = Pattern.compile(getString(CONF.datasetURIPattern));
View Full Code Here


    // Vocabulary data source contains our normal data sources plus
    // the configuration model, so that we can read labels etc from
    // the configuration file
    DataSource vocabularyDataSource = new MergeDataSource(
        new ModelDataSource(getModel()), getDataSource());
    vocabularyStore.setDataSource(vocabularyDataSource);
    vocabularyStore.setDefaultLanguage(getDefaultLanguage());

    // Sanity check to spot typical configuration problem
    if (dataSource.getIndex().isEmpty()) {
View Full Code Here

TOP

Related Classes of de.fuberlin.wiwiss.pubby.sources.ModelDataSource

Copyright © 2018 www.massapicom. 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.