Examples of addIndividual()


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

    kb.addClass( A );

    kb.addDatatypeProperty( p );

    kb.addIndividual( a );

    kb.addPropertyValue( p, a, oneInteger );
    assertTrue( kb.isConsistent() );

    assertTrue( kb.hasPropertyValue( a, p, oneDecimal ) );
View Full Code Here

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

    ATermAppl zeroByte = literal( "0", Datatypes.BYTE );
    ATermAppl zeroFloat = literal( "0", Datatypes.FLOAT );

    kb.addClass( A );
    kb.addDatatypeProperty( p );
    kb.addIndividual( a );

    kb.addSubClass( A, some( p, Datatypes.NON_POSITIVE_INTEGER ) );
    kb.addSubClass( A, all( p, Datatypes.NON_NEGATIVE_INTEGER ) );

    kb.addType( a, A );
View Full Code Here

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

    kb.addClass( A );

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

    kb.addIndividual( a );

    kb.addType( a, A );

    kb.addSubClass( A, min( p, 1, TOP_LIT ) );
    kb.addRange( p, oneOf( lit1 ) );
View Full Code Here

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

    kb.addObjectProperty( p1 );
    kb.addObjectProperty( p2 );
    kb.addDisjointProperty( p1, p2 );

    kb.addIndividual( a );
    kb.addIndividual( b );
    kb.addIndividual( c );

    kb.addPropertyValue( p1, a, c );
    kb.addPropertyValue( p2, b, a );
View Full Code Here

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

    kb.addObjectProperty( p1 );
    kb.addObjectProperty( p2 );
    kb.addDisjointProperty( p1, p2 );

    kb.addIndividual( a );
    kb.addIndividual( b );
    kb.addIndividual( c );

    kb.addPropertyValue( p1, a, c );
    kb.addPropertyValue( p2, b, a );
View Full Code Here

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

    kb.addObjectProperty( p2 );
    kb.addDisjointProperty( p1, p2 );

    kb.addIndividual( a );
    kb.addIndividual( b );
    kb.addIndividual( c );

    kb.addPropertyValue( p1, a, c );
    kb.addPropertyValue( p2, b, a );

    ATermAppl notp1a = ATermUtils.makeNot( ATermUtils.makeHasValue( p1, a ) );
View Full Code Here

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

    ATermAppl a = term( "a" );
    ATermAppl b = term( "b" );

    kb.addObjectProperty( p );

    kb.addIndividual( a );
    kb.addIndividual( b );

    kb.addPropertyValue( p, a, b );

    kb.isConsistent();
View Full Code Here

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

    ATermAppl b = term( "b" );

    kb.addObjectProperty( p );

    kb.addIndividual( a );
    kb.addIndividual( b );

    kb.addPropertyValue( p, a, b );

    kb.isConsistent();
View Full Code Here

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

    kb.addSubClass( C, card( p, COUNT + 1, ATermUtils.TOP_LIT ) );
    kb.addSubClass( D, card( p, COUNT, ATermUtils.TOP_LIT ) );
    kb.addSubClass( E, card( p, COUNT - 1, ATermUtils.TOP_LIT ) );

    kb.addIndividual( x );
    kb.addType( x, D );

    kb.addIndividual( y );
    kb.addType( y, E );
View Full Code Here

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

    kb.addSubClass( E, card( p, COUNT - 1, ATermUtils.TOP_LIT ) );

    kb.addIndividual( x );
    kb.addType( x, D );

    kb.addIndividual( y );
    kb.addType( y, E );

    assertFalse( kb.isSatisfiable( C ) );
    assertTrue( kb.isSatisfiable( D ) );
    assertTrue( kb.isSatisfiable( E ) );
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.