Package org.mindswap.pellet

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


    ATermAppl p = term( "p" );
    ATermAppl l = ATermUtils.makeTermAppl( "l" );
    ATermAppl v = ATermUtils.makeValue( ATermUtils.makeLiteral( l ) );
    ATermAppl c = ATermUtils.makeSomeValues( p, v );

    kb.addProperty( p );

    assertTrue( kb.isClass( c ) );
  }

  @Test
View Full Code Here


    ATermAppl p = term( "p" );
    ATermAppl l = ATermUtils.makeTermAppl( "l" );
    ATermAppl v = ATermUtils.makeValue( ATermUtils.makeLiteral( l ) );
    ATermAppl c = ATermUtils.makeSomeValues( p, v );

    kb.addProperty( p );

    assertTrue( kb.isClass( c ) );
  }

  @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.