Package com.hp.hpl.jena.ontology

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


    // confirm that the property is there
    assertTrue( i1.hasProperty( prop, "test" ) );

    // confirm that the property is there when querying with a predicate
    assertIteratorContains( i1.listProperties(), model.createStatement( i1, prop, "test" ) );

    // confirm that the property is copied over when querying with a
    // predicate
    assertTrue( i2.hasProperty( prop, "test" ) );
View Full Code Here


    // predicate
    assertTrue( i2.hasProperty( prop, "test" ) );

    // confirm that the property is copied over when querying with a
    // predicate
    assertIteratorContains( i2.listProperties(), model.createStatement( i2, prop, "test" ) );
  }

  @Test
  public void testSameAs3() {
    OntModelSpec ontModelSpec = new OntModelSpec( OntModelSpec.OWL_DL_MEM_RULE_INF );
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

    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
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( 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

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.