Package org.openrdf.sail

Examples of org.openrdf.sail.NotifyingSail


  @Override
  protected NotifyingSail createSail()
    throws StoreException
  {
    NotifyingSail sail = new NativeStore(dataDir, "spoc,posc");
    sail.initialize();
    return sail;
  }
View Full Code Here


  @Override
  protected NotifyingSail createSail()
    throws StoreException
  {
    NotifyingSail sail = new NativeStore(dataDir, "spoc,posc,cspo");
    sail.initialize();
    return sail;
  }
View Full Code Here

  public static Test suite()
    throws StoreException, IOException
  {
    dataDir = FileUtil.createTempDir("nativestore");
    NotifyingSail sailStack = new NativeStore(dataDir, "spoc,posc");
    sailStack = new ForwardChainingRDFSInferencer(sailStack);
    return InferencingTest.suite(sailStack, NativeStoreInferencingTest.class.getName());
  }
View Full Code Here

  @Override
  protected NotifyingSail createSail()
    throws StoreException
  {
    NotifyingSail sail = new MemoryStore();
    sail.initialize();
    return sail;
  }
View Full Code Here

  }

  protected NotifyingSail createSail(String entailment)
    throws Exception
  {
    NotifyingSail sail = newSail();

    if ("RDF".equals(entailment)) {
      // do not add inferencers
    }
    else if ("RDFS".equals(entailment)) {
View Full Code Here

  @Override
  public long prepareInputData(final Collection<URILiteral> defaultGraphs,
      final Collection<URILiteral> namedGraphs) throws Exception {
    final Date a = new Date();
    NotifyingSail sailStack = new MemoryStore();

    if (ontology == ONTOLOGY.RDFS)
      sailStack = new ForwardChainingRDFSInferencer(sailStack);

    repo = new SailRepository(sailStack);
View Full Code Here

                    log.info("- transaction plugin: {} (DISABLED)", provider.getName());
                }
            }

            // wrap all stackable notifying sails
            NotifyingSail notifyingSail = transactionalSail;
            for(NotifyingSailProvider provider : notifyingSailProviders) {
                if(provider.isEnabled()) {
                    log.info("- notifying plugin: {}",provider.getName());
                    notifyingSail = provider.createSail(notifyingSail);
                } else {
View Full Code Here

            } else {
                store = storeProviders.get().createStore();
            }


            NotifyingSail notifyingSail;

            log.info("initialising repository plugins ...");

            // TODO: should also wrap a transactional sail in case there are observers on the classpath!
            if(   !transactionalSailProviders.isUnsatisfied() || CDIContext.hasObservers(this, "beforeCommitEvent")
View Full Code Here

        configuration.setClusterAddress(configurationService.getStringConfiguration(KiWiOptions.CLUSTERING_ADDRESS, "228.6.7.8"));

        configuration.setCachingBackend(CachingBackends.valueOf(configurationService.getStringConfiguration(KiWiOptions.CLUSTERING_BACKEND, "GUAVA")));
        configuration.setCacheMode(CacheMode.valueOf(configurationService.getStringConfiguration(KiWiOptions.CLUSTERING_MODE,"LOCAL")));

        NotifyingSail base = new KiWiStore(configuration);


        if("native".equalsIgnoreCase(configurationService.getStringConfiguration(KiWiOptions.SPARQL_STRATEGY))) {
            log.info(" - enabling native SPARQL support");
            base = new KiWiSparqlSail(base);
View Full Code Here

                    // Do nothing.
                }
            };

            Sail baseSail = TweetStore.createSail();
            NotifyingSail b;
            if (baseSail instanceof NotifyingSail) {
                b = (NotifyingSail) baseSail;
            } else {
                b = new NotifyingSailWrapper();
                ((NotifyingSailWrapper) b).setBaseSail(baseSail);
View Full Code Here

TOP

Related Classes of org.openrdf.sail.NotifyingSail

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.