Package org.mindswap.pellet

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


    ATermAppl s = ATermUtils.makeTermAppl( "i" );
    ATermAppl p = ATermUtils.makeTermAppl( "p" );
    ATermAppl o = ATermUtils.makeTermAppl( "j" );

    kb.addIndividual( s );
    kb.addAnnotationProperty( p );

    assertTrue( kb.addAnnotation( s, p, o ) );

    Set<ATermAppl> actual = kb.getAnnotations( s, p );
    Set<ATermAppl> expected = new HashSet<ATermAppl>();
View Full Code Here


    ATermAppl p = ATermUtils.makeTermAppl( "p" );
    ATermAppl o1 = ATermUtils.makeTermAppl( "j1" );
    ATermAppl o2 = ATermUtils.makeTermAppl( "j2" );

    kb.addIndividual( s );
    kb.addAnnotationProperty( p );

    assertTrue( kb.addAnnotation( s, p, o1 ) );
    assertTrue( kb.addAnnotation( s, p, o2 ) );

    Set<ATermAppl> actual = kb.getAnnotations( s, p );
View Full Code Here

    ATermAppl o3 = ATermUtils.makeTermAppl( "o3" );

    kb.addIndividual( s1 );
    kb.addIndividual( s2 );
    kb.addAnnotationProperty( p1 );
    kb.addAnnotationProperty( p2 );

    assertTrue( kb.addAnnotation( s1, p1, o1 ) );
    assertTrue( kb.addAnnotation( s1, p2, o2 ) );
    assertTrue( kb.addAnnotation( s2, p2, o3 ) );
View Full Code Here

    ATermAppl o3 = ATermUtils.makeTermAppl( "o3" );

    kb.addIndividual( s1 );
    kb.addIndividual( s2 );
    kb.addAnnotationProperty( p1 );
    kb.addAnnotationProperty( p2 );

    assertTrue( kb.addAnnotation( s1, p1, o1 ) );
    assertTrue( kb.addAnnotation( s1, p2, o2 ) );
    assertTrue( kb.addAnnotation( s2, p2, o3 ) );
View Full Code Here

    ATermAppl s = ATermUtils.makeTermAppl( "s" );
    ATermAppl p = ATermUtils.makeTermAppl( "p" );
    ATermAppl o = ATermUtils.makeTermAppl( "o" );

    kb.addIndividual( s );
    kb.addAnnotationProperty( p );

    assertTrue( kb.addAnnotation( s, p, o ) );

    Set<ATermAppl> actual = kb.getAnnotationProperties();
    Set<ATermAppl> expected = new HashSet<ATermAppl>();
View Full Code Here

    ATermAppl s = ATermUtils.makeTermAppl( "s" );
    ATermAppl p = ATermUtils.makeTermAppl( "p" );
    ATermAppl o = ATermUtils.makeTermAppl( "o" );

    kb.addIndividual( s );
    kb.addAnnotationProperty( p );

    assertTrue( kb.addAnnotation( s, p, o ) );

    Set<ATermAppl> actual = kb.getProperties();
    Set<ATermAppl> expected = new HashSet<ATermAppl>();
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.