Package org.openrdf.sail.inferencer.fc

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


     *
     * @throws org.openrdf.repository.RepositoryException
     */
    public TripleStoreSesameManager() throws RepositoryException {
        MemoryStore ms = new MemoryStore();
        ForwardChainingRDFSInferencer fci = new ForwardChainingRDFSInferencer(ms);
        myRepository = new SailRepository(fci);
        myRepository.initialize();
        System.out.println(myRepository);
        con = myRepository.getConnection();
    }
View Full Code Here


 
 
  protected RepositoryConnection initFromSail(Sail sailStack, boolean inferencing) {
    if (inferencing) {
      if(sailStack instanceof NotifyingSail) {
        sailStack = new ForwardChainingRDFSInferencer((NotifyingSail) sailStack);
        sailStack = new DirectTypeHierarchyInferencer((NotifyingSail) sailStack);
      } else {
        throw new RuntimeException("Cannot create inferencing: Incompatible Sail type.");
      }
    }
View Full Code Here

      }
      runner.setHTTPUserAgent("google-refine-rdf-extension");
      HTTPClient client = runner.getHTTPClient();
      DocumentSource source = new HTTPDocumentSource(client, url);
      Repository repository = new SailRepository(
          new ForwardChainingRDFSInferencer(new MemoryStore()));
      repository.initialize();
      RepositoryConnection con = repository.getConnection();
      RepositoryWriter w = new RepositoryWriter(con);
      ReportingTripleHandler reporter = new ReportingTripleHandler(w);
      runner.extract(source, reporter);
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.