Examples of ensureConsistency()


Examples of org.mindswap.pellet.KnowledgeBase.ensureConsistency()

   
    KnowledgeBase kb = reasoner.getKB();
   
    if( classify ) {
      kb.setDoExplanation( true );
      kb.ensureConsistency();
      kb.setDoExplanation( false );
     
      kb.realize();
    }
  }
View Full Code Here

Examples of org.mindswap.pellet.KnowledgeBase.ensureConsistency()

    kb.addDatatypeProperty( q );
   
    kb.addPropertyValue( p, a, b );
    kb.addType( a, some( q, value( lit ) ) );
   
    kb.ensureConsistency();
   
    assertTrue( kb.getABox().getLiteral( lit ).hasType( Datatypes.LITERAL ) );
   
    kb.removePropertyValue( p, a, b );
   
View Full Code Here

Examples of org.mindswap.pellet.KnowledgeBase.ensureConsistency()

   
    assertTrue( kb.getABox().getLiteral( lit ).hasType( Datatypes.LITERAL ) );
   
    kb.removePropertyValue( p, a, b );
   
    kb.ensureConsistency();
   
    assertTrue( kb.getABox().getLiteral( lit ).hasType( Datatypes.LITERAL ) );
  }
 
  @Test
View Full Code Here

Examples of org.mindswap.pellet.KnowledgeBase.ensureConsistency()

    // }

    boolean querySatisfied;

    final KnowledgeBase kb = query.getKB();
    kb.ensureConsistency();

    // unless proven otherwise all (ground) triples are satisfied
    Bool allTriplesSatisfied = Bool.TRUE;

    for( final QueryAtom atom : query.getAtoms() ) {
View Full Code Here

Examples of org.mindswap.pellet.KnowledgeBase.ensureConsistency()

   
    KnowledgeBase kb = reasoner.getKB();
   
    if( classify ) {
      kb.setDoExplanation( true );
      kb.ensureConsistency();
      kb.setDoExplanation( false );
     
      kb.realize();
    }
  }
View Full Code Here

Examples of org.mindswap.pellet.KnowledgeBase.ensureConsistency()

    kb.addDatatypeProperty( q );
   
    kb.addPropertyValue( p, a, b );
    kb.addType( a, some( q, value( lit ) ) );
   
    kb.ensureConsistency();
   
    assertTrue( kb.getABox().getLiteral( lit ).hasType( Datatypes.LITERAL ) );
   
    kb.removePropertyValue( p, a, b );
   
View Full Code Here

Examples of org.mindswap.pellet.KnowledgeBase.ensureConsistency()

   
    assertTrue( kb.getABox().getLiteral( lit ).hasType( Datatypes.LITERAL ) );
   
    kb.removePropertyValue( p, a, b );
   
    kb.ensureConsistency();
   
    assertTrue( kb.getABox().getLiteral( lit ).hasType( Datatypes.LITERAL ) );
  }
 
  @Test
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.