Package org.openrdf.sail.inferencer.fc

Examples of org.openrdf.sail.inferencer.fc.ForwardChainingRDFSInferencer


  @Override
  protected Repository createRepository()
    throws IOException
  {
    dataDir = FileUtil.createTempDir("nativestore");
    return new SailRepository(new ForwardChainingRDFSInferencer(new NativeStore(dataDir, "spoc")));
  }
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

    // Note: adding more members, combined with the round-robin algorithm for
    // distributing new statements, cause test failures due to the fact that
    // the inferencing happens locally.

    Federation sail = new Federation();
    sail.addMember(new SailRepository(new ForwardChainingRDFSInferencer(new MemoryStore())));
    return new SailRepository(sail);
  }
View Full Code Here

public class MemInferencingTest extends TestCase {

  public static Test suite()
    throws StoreException
  {
    Sail sailStack = new ForwardChainingRDFSInferencer(new MemoryStore());
    return InferencingTest.suite(sailStack, MemInferencingTest.class.getName());
  }
View Full Code Here

    super(name);
  }

  @Override
  protected Repository createRepository() {
    return new SailRepository(new ForwardChainingRDFSInferencer(new MemoryStore()));
  }
View Full Code Here

  {
    if (!SAIL_TYPE.equals(config.getType())) {
      throw new StoreConfigException("Invalid Sail type: " + config.getType());
    }

    return new ForwardChainingRDFSInferencer();
  }
View Full Code Here

    if ("RDF".equals(entailment)) {
      // do not add inferencers
    }
    else if ("RDFS".equals(entailment)) {
      sail = new ForwardChainingRDFSInferencer(sail);
    }
    else if ("RDFS-VP".equals(entailment)) {
      sail = new ForwardChainingRDFSInferencer(sail);
      sail = new DirectTypeHierarchyInferencer(sail);
    }
    else {
      fail("Invalid value for entailment level:" + entailment);
    }
View Full Code Here

      "}";

    public DataStoreModel()
  {
 
    _repository = new SailRepository(new ForwardChainingRDFSInferencer(new MemoryStore()));
   
        try {
            _repository.initialize();
            con = _repository.getConnection();
        } catch (RepositoryException e) {
View Full Code Here

      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);
    try {
      repo.initialize();
      con = repo.getConnection();
View Full Code Here

    URI b = new URIImpl("urn:rel:b");
    URI c = new URIImpl("urn:rel:c");
    URI defaultContext = null;
    // create a Sail stack
    Sail sail = new MemoryStore();
    sail = new ForwardChainingRDFSInferencer(sail);
    // create a Repository
    Repository repository = new SailRepository(sail);
    repository.initialize();

    RepositoryConnection con = repository.getConnection();
View Full Code Here

TOP

Related Classes of org.openrdf.sail.inferencer.fc.ForwardChainingRDFSInferencer

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.