Package org.semanticweb.HermiT

Examples of org.semanticweb.HermiT.Reasoner$ReasonerFactory


public class TrowlServer extends Server {

  @Override
  public void initialServer(int index) {
    OWLReasonerFactory factory = new ReasonerFactory();
    OWLReasonerConfiguration reasonerConfiguration = new SimpleConfiguration();
    AbstractOWLlinkReasonerConfiguration serverConfiguration =
      new AbstractOWLlinkReasonerConfiguration(reasonerConfiguration);
    int port = ServerParams.getPort(getServerName());
    server = new OWLlinkHTTPXMLServer(factory, serverConfiguration, port);
View Full Code Here


                    OWLOntologyManager ontologyManager=OWLManager.createOWLOntologyManager();
                    OWLOntology ontology=ontologyManager.loadOntology(ont);
                    long parseTime=System.currentTimeMillis()-startTime;
                    status.log(2,"Ontology parsed in "+String.valueOf(parseTime)+" msec.");
                    startTime=System.currentTimeMillis();
                    Reasoner hermit=new Reasoner(config,ontology);
                    long loadTime=System.currentTimeMillis()-startTime;
                    status.log(2,"Reasoner created in "+String.valueOf(loadTime)+" msec.");
                    if (!ignoreOntologyPrefixes)
                        prefixes.addPrefixes(hermit.getPrefixes());
                    for (Action action : actions) {
                        status.log(2,"Doing action...");
                        startTime=System.currentTimeMillis();
                        action.run(hermit,prefixes,status,output);
                        long actionTime=System.currentTimeMillis()-startTime;
View Full Code Here

    assertTrue(extractor.getOWLEntity() instanceof OWLEntity);
    assertTrue(extractor.getOWLProperty() instanceof OWLProperty);
   
    OWLDataFactory factory = OWLManager.getOWLDataFactory();
    OWLDataProperty dataProperty = factory.getOWLDataProperty(IRI.create("http://example.owl#test"));
    Reasoner reasoner = new Reasoner(ontology);
    NodeSet<OWLClass> nodeSet = reasoner.getDataPropertyDomains(dataProperty, true);
    System.out.println(nodeSet);
   
    assertTrue(extractor.getOWLDataProperty() instanceof OWLDataProperty);
    assertTrue(extractor.getOWLObjectProperty() instanceof OWLObjectProperty);
    assertTrue(extractor.getOWLIndividual() instanceof OWLIndividual);
View Full Code Here

import org.semanticweb.owlapi.reasoner.OWLReasoner;

public class Hermit {
 
  public OWLReasoner getReasoner(OWLOntology ontology){
    Reasoner reasoner = new Reasoner(ontology);
    return reasoner;
  }
View Full Code Here

TOP

Related Classes of org.semanticweb.HermiT.Reasoner$ReasonerFactory

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.