Package com.hp.hpl.jena.ontology

Examples of com.hp.hpl.jena.ontology.OntModel.createStatement()


    OntProperty higher = model.getOntProperty( ns + "higher" );

    assertIteratorValues( model.listStatements( null, higher, (RDFNode) null ),
        new Statement[] {
            model.createStatement( a, higher, b ),
            model.createStatement( b, higher, c ),
            model.createStatement( c, higher, a ), } );
  }

  @Test
  public void testEscher2() {
View Full Code Here


    assertIteratorValues( model.listStatements( null, higher, (RDFNode) null ),
        new Statement[] {
            model.createStatement( a, higher, b ),
            model.createStatement( b, higher, c ),
            model.createStatement( c, higher, a ), } );
  }

  @Test
  public void testEscher2() {
    String ns = "foo://bla/names#";
View Full Code Here

    OntProperty higher = model.getOntProperty( ns + "higher" );

    assertIteratorValues( model.listStatements( null, higher, (RDFNode) null ),
        new Statement[] {
            model.createStatement( a, higher, b ),
            model.createStatement( b, higher, c ),
            model.createStatement( b, higher, d ),
            model.createStatement( c, higher, a ),
            model.createStatement( d, higher, a ), } );
View Full Code Here

    OntProperty higher = model.getOntProperty( ns + "higher" );

    assertIteratorValues( model.listStatements( null, higher, (RDFNode) null ),
        new Statement[] {
            model.createStatement( a, higher, b ),
            model.createStatement( b, higher, c ),
            model.createStatement( b, higher, d ),
            model.createStatement( c, higher, a ),
            model.createStatement( d, higher, a ), } );

    assertTrue( c.isSameAs( d ) );
View Full Code Here

    assertIteratorValues( model.listStatements( null, higher, (RDFNode) null ),
        new Statement[] {
            model.createStatement( a, higher, b ),
            model.createStatement( b, higher, c ),
            model.createStatement( b, higher, d ),
            model.createStatement( c, higher, a ),
            model.createStatement( d, higher, a ), } );

    assertTrue( c.isSameAs( d ) );
    assertTrue( d.isSameAs( c ) );
View Full Code Here

    assertIteratorValues( model.listStatements( null, higher, (RDFNode) null ),
        new Statement[] {
            model.createStatement( a, higher, b ),
            model.createStatement( b, higher, c ),
            model.createStatement( b, higher, d ),
            model.createStatement( c, higher, a ),
            model.createStatement( d, higher, a ), } );

    assertTrue( c.isSameAs( d ) );
    assertTrue( d.isSameAs( c ) );
  }
View Full Code Here

        new Statement[] {
            model.createStatement( a, higher, b ),
            model.createStatement( b, higher, c ),
            model.createStatement( b, higher, d ),
            model.createStatement( c, higher, a ),
            model.createStatement( d, higher, a ), } );

    assertTrue( c.isSameAs( d ) );
    assertTrue( d.isSameAs( c ) );
  }
View Full Code Here

    s1.addProperty( p1, o1 );
    s2.addProperty( p2, o2 );
    s3.addProperty( p3, o3 );

    Statement stmt = ont.createStatement( o1, p3, s1 );
    assertIteratorContains( o1.listPropertyValues( p3 ), s1 );
    assertTrue( ont.contains( stmt ) );
    assertIteratorContains( ont.listStatements( null, p3, (RDFNode) null ), stmt );
    assertIteratorContains( ont.listStatements( o1, null, (RDFNode) null ), stmt );
    assertIteratorContains( ont.listStatements(), stmt );
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.