Package org.mindswap.pellet

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


    kb.addClass( C );

    kb.addDatatypeProperty( p );
    kb.addDatatypeProperty( q );

    kb.addDomain( p, C );

    kb.addRange( q, XSDInteger.getInstance().getName() );

    kb.addSubClass( C, some( q, TOP_LIT ) );
View Full Code Here


    kb.addDatatypeProperty( p );

    // B is completely defined except this equivalence
    kb.addEquivalentClass( A, B );
    // A is not primitive because of the domain axiom
    kb.addDomain( p, A );
    // C should be inferred to be a subclass of A and B
    kb.addSubClass( C, some(p, TOP_LIT ) );

    kb.classify();
View Full Code Here

    kb.addClass( C );
   
    kb.addDatatypeProperty( p );
    kb.addDatatypeProperty( q );
   
    kb.addDomain( p, C );
   
    kb.addRange( q, XSDInteger.getInstance().getName() );
   
    kb.addSubClass( C, some( q, TOP_LIT ) );
   
View Full Code Here

    kb.addDatatypeProperty( p );
   
    // B is completely defined except this equivalence
    kb.addEquivalentClass( A, B );
    // A is not primitive because of the domain axiom
    kb.addDomain( p, A );
    // C should be inferred to be a subclass of A and B
    kb.addSubClass( C, some(p, TOP_LIT ) );
   
    kb.classify();
   
View Full Code Here

    kb.addIndividual( z );
    kb.addDifferent( x, y );
    kb.addDifferent( x, z );
   
    kb.addSubClass( c, oneOf( x, y ) );
    kb.addDomain( TOP_OBJECT_PROPERTY, c );
   
    assertTrue( kb.isSameAs( y, z ) );
  }
 
  @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.