Package com.hp.hpl.jena.reasoner

Examples of com.hp.hpl.jena.reasoner.Reasoner.bind()


    OWLOntology ontology = com.clarkparsia.owlapiv3.OWL.Ontology( ontologyAxioms );     
    
    Graph data = convertOntology( ontology, false );

    Reasoner reasoner = PelletReasonerFactory.theInstance().create();
    pellet = (PelletInfGraph) reasoner.bind( data );
   
    KnowledgeBase kb = pellet.getKB();
   
    if( classify ) {
      kb.setDoExplanation( true );
View Full Code Here


    addClasses( classes );
    addClasses( m_Names.getAllAnons() );
   
    Reasoner reasoner = new GenericRuleReasoner(new ArrayList<Rule>(m_Rules));
   
    InfGraph inf = reasoner.bind( m_Facts );
    inf.prepare();
   
    MultiValueMap<ATermAppl, ATermAppl> subsumers = getSubsumptions(inf);
    for( ATermAppl c : classes ) {
      subsumers.add( ATermUtils.BOTTOM, c );     
View Full Code Here

    OWLOntology ontology = com.clarkparsia.owlapiv3.OWL.Ontology( ontologyAxioms );     
    
    Graph data = convertOntology( ontology, false );

    Reasoner reasoner = PelletReasonerFactory.theInstance().create();
    pellet = (PelletInfGraph) reasoner.bind( data );
   
    KnowledgeBase kb = pellet.getKB();
   
    if( classify ) {
      kb.setDoExplanation( true );
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.