Package org.mindswap.pellet

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


    kb.addIndividual( e );
    kb.addIndividual( f );

    kb.addSame( a, b );
    kb.addSame( b, c );
    kb.addSame( c, d );
    kb.addSame( a, d );
    kb.addSame( b, d );
    kb.addSame( e, f );
    kb.addDifferent( e, f );
View Full Code Here


    kb.addIndividual( f );

    kb.addSame( a, b );
    kb.addSame( b, c );
    kb.addSame( c, d );
    kb.addSame( a, d );
    kb.addSame( b, d );
    kb.addSame( e, f );
    kb.addDifferent( e, f );

    assertFalse( kb.isConsistent() );
View Full Code Here

    kb.addSame( a, b );
    kb.addSame( b, c );
    kb.addSame( c, d );
    kb.addSame( a, d );
    kb.addSame( b, d );
    kb.addSame( e, f );
    kb.addDifferent( e, f );

    assertFalse( kb.isConsistent() );
  }
View Full Code Here

    kb.addSame( a, b );
    kb.addSame( b, c );
    kb.addSame( c, d );
    kb.addSame( a, d );
    kb.addSame( b, d );
    kb.addSame( e, f );
    kb.addDifferent( e, f );

    assertFalse( kb.isConsistent() );
  }
View Full Code Here

    kb.addClass( B );
   
    kb.addIndividual( a );
    kb.addIndividual( b );
   
    kb.addSame( a, b );
   
    assertTrue( kb.isConsistent() );
   
    assertTrue( kb.isSameAs( a, b ) );
   
View Full Code Here

    kb.addIndividual( i21 );
    kb.addIndividual( i22 );
    kb.addIndividual( test );
   
    kb.addEquivalentClass( t1, t1eq );
    kb.addSame( i1, i21 );
    kb.addSame( i21, i1 );
   
    kb.addPropertyValue( p, test, i21 );
    kb.addPropertyValue( p, test, i22 );
   
View Full Code Here

    kb.addIndividual( i22 );
    kb.addIndividual( test );
   
    kb.addEquivalentClass( t1, t1eq );
    kb.addSame( i1, i21 );
    kb.addSame( i21, i1 );
   
    kb.addPropertyValue( p, test, i21 );
    kb.addPropertyValue( p, test, i22 );
   
    Set<ATermAppl> t1inds = kb.retrieve( t1eq, kb.getIndividuals() );
View Full Code Here

              case SameAs:
                ind1 = TermFactory.term(arguments.get(0).toString());
                ind2 = TermFactory.term(arguments.get(1).toString());
                kb.addIndividual(ind1);
                kb.addIndividual(ind2);
                kb.addSame(ind1, ind2);
                break;
              case DifferentFrom:
                ind1 = TermFactory.term(arguments.get(0).toString());
                ind2 = TermFactory.term(arguments.get(1).toString());
                kb.addIndividual(ind1);
View Full Code Here

    kb.addClass( B );
   
    kb.addIndividual( a );
    kb.addIndividual( b );
   
    kb.addSame( a, b );
   
    assertTrue( kb.isConsistent() );
   
    assertTrue( kb.isSameAs( a, b ) );
   
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.