Examples of addAnnotationProperty()


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

    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.getIndividualsWithAnnotation( p, o );
    Set<ATermAppl> expected = new HashSet<ATermAppl>();
View Full Code Here

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

    ATermAppl p = term("p");
    ATermAppl q = term("q");
    ATermAppl r = term("r");
    ATermAppl s = term("s");
   
    kb.addAnnotationProperty(p);
    kb.addAnnotationProperty(q);
    kb.addAnnotationProperty(r);
    kb.addAnnotationProperty(s);
   
    kb.addSubProperty(p, q);
View Full Code Here

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

    ATermAppl q = term("q");
    ATermAppl r = term("r");
    ATermAppl s = term("s");
   
    kb.addAnnotationProperty(p);
    kb.addAnnotationProperty(q);
    kb.addAnnotationProperty(r);
    kb.addAnnotationProperty(s);
   
    kb.addSubProperty(p, q);
    kb.addSubProperty(q, r);
View Full Code Here

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

    ATermAppl r = term("r");
    ATermAppl s = term("s");
   
    kb.addAnnotationProperty(p);
    kb.addAnnotationProperty(q);
    kb.addAnnotationProperty(r);
    kb.addAnnotationProperty(s);
   
    kb.addSubProperty(p, q);
    kb.addSubProperty(q, r);
    kb.addSubProperty(r, s);
View Full Code Here

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

    ATermAppl s = term("s");
   
    kb.addAnnotationProperty(p);
    kb.addAnnotationProperty(q);
    kb.addAnnotationProperty(r);
    kb.addAnnotationProperty(s);
   
    kb.addSubProperty(p, q);
    kb.addSubProperty(q, r);
    kb.addSubProperty(r, s);
   
View Full Code Here

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

    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 ) );

    assertEquals( Collections.singleton( o ), kb.getAnnotations( s, p ) );
   
View Full Code Here

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

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

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

    assertTrue( kb.addAnnotation( s, p, o ) );
    assertTrue( kb.isIndividual( s ) );
    assertTrue( kb.isAnnotationProperty( p ) );
    assertFalse( kb.isIndividual( o ) );
View Full Code Here

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

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

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

    assertTrue( kb.addAnnotation( s, p, o ) );
    assertTrue( kb.isIndividual( s ) );
    assertTrue( kb.isAnnotationProperty( p ) );
    assertTrue( kb.isIndividual( o ) );
View Full Code Here

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

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

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

    assertTrue( kb.addAnnotation( s, p, o ) );
    assertTrue( kb.isIndividual( s ) );
    assertTrue( kb.isAnnotationProperty( p ) );
    assertFalse( kb.isIndividual( o ) );
View Full Code Here

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

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

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

    assertTrue( kb.addAnnotation( s, p, o1 ) );
    assertTrue( kb.addAnnotation( s, p, o2 ) );
    assertTrue( kb.isIndividual( s ) );
    assertTrue( kb.isAnnotationProperty( p ) );
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.