Package org.openrdf.repository

Examples of org.openrdf.repository.Repository.initialize()


      sail.shutDown();
      fail("Invalid value for entailment level:" + entailment);
    }

    Repository dataRep = new SailRepository(sail);
    dataRep.initialize();

    RepositoryConnection dataCon = dataRep.getConnection();

    // Add unnamed gaph
    dataCon.add(new URL(dataFile), null, RDFFormat.forFileName(dataFile));
View Full Code Here


    dataCon.close();
    dataRep.shutDown();

    // Create a repository with the expected result data
    Repository expectedResultRep = new SailRepository(new MemoryStore());
    expectedResultRep.initialize();

    RepositoryConnection erCon = expectedResultRep.getConnection();

    erCon.add(new URL(resultFile), null, RDFFormat.forFileName(resultFile));
View Full Code Here

  {
    TestSuite suite = new TestSuite();

    // Read manifest and create declared test cases
    Repository manifestRep = new SailRepository(new MemoryStore());
    manifestRep.initialize();

    RepositoryConnection con = manifestRep.getConnection();

    URL manifestURL = SeRQLQueryTest.class.getResource(MANIFEST_FILE);
    con.add(manifestURL, null, RDFFormat.forFileName(MANIFEST_FILE));
View Full Code Here

    TestSuite negativeTests = new TestSuite();
    negativeTests.setName("Negative Syntax Tests");

    // Read manifest and create declared test cases
    Repository manifestRep = new SailRepository(new MemoryStore());
    manifestRep.initialize();
    RepositoryConnection con = manifestRep.getConnection();

    URL manifestURL = SeRQLParserTest.class.getResource(MANIFEST_FILE);
    con.add(manifestURL, null, RDFFormat.forFileName(MANIFEST_FILE));
View Full Code Here

    throws Exception
  {
    TestSuite suite = new TestSuite();

    Repository manifestRep = new SailRepository(new MemoryStore());
    manifestRep.initialize();
    RepositoryConnection con = manifestRep.getConnection();

    con.add(new URL(MANIFEST_FILE), MANIFEST_FILE, RDFFormat.TURTLE);

    String query = "SELECT DISTINCT manifestFile " + "FROM {x} rdf:first {manifestFile} "
View Full Code Here

  {
    Collection<? extends Statement> entailedStatements = null;
    Collection<? extends Statement> expectedStatements = null;

    Repository repository = new SailRepository(sailStack);
    repository.initialize();

    RepositoryConnection con = repository.getConnection();
    con.setAutoCommit(false);

    // clear the input store
View Full Code Here

      con.close();
    }

    // Upload output data
    Repository outputRepository = new SailRepository(new MemoryStore());
    outputRepository.initialize();
    con = outputRepository.getConnection();
    con.setAutoCommit(false);

    stream = getClass().getResourceAsStream(outputData);
    try {
View Full Code Here

    Repository confRepo = null, ontoRepo = null, dataRepo = null;
    try {
      confRepo = new SailRepository(new MemoryStore());
      ontoRepo = new SailRepository(new MemoryStore());
      dataRepo = new SailRepository(new MemoryStore());
      confRepo.initialize();
      ontoRepo.initialize();
      dataRepo.initialize();
    } catch (Exception e) { ; }
   
    try {
View Full Code Here

      }
    }
   
    Model _model;
    try {
      repository.initialize();

      // Then 'wrap' the sesame thing in an RDF2Go Model:
      _model = new RepositoryModel(repository)
      _model.open();
    } catch (RepositoryException e) {
View Full Code Here

        RepositoryConnection conn = null;
        RepositoryWriter repositoryWriter = null;
       
        any23 = new Any23();
        Repository store = new SailRepository(new MemoryStore());
        store.initialize();
        try
        {
            conn = store.getConnection();
            repositoryWriter = new RepositoryWriter(conn);
            Assert.assertTrue( any23.extract(fileDocumentSource, repositoryWriter, encoding).hasMatchingExtractors() );
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.