Package com.hp.hpl.jena.ontology

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


    Literal lit = model.createLiteral( "l" );

    Statement[] stats = new Statement[] {
      model.createStatement( a, OWL2.topObjectProperty, b ),
      model.createStatement( a, OWL2.topDataProperty, lit ),
      model.createStatement( a, OWL2.bottomObjectProperty, b ),
      model.createStatement( a, OWL2.bottomDataProperty, lit )
    };
   
    for( int i = 0; i < stats.length; i++ ) {     
      model.add( stats[i] );
View Full Code Here


    Statement[] stats = new Statement[] {
      model.createStatement( a, OWL2.topObjectProperty, b ),
      model.createStatement( a, OWL2.topDataProperty, lit ),
      model.createStatement( a, OWL2.bottomObjectProperty, b ),
      model.createStatement( a, OWL2.bottomDataProperty, lit )
    };
   
    for( int i = 0; i < stats.length; i++ ) {     
      model.add( stats[i] );
      model.prepare();
View Full Code Here

    Individual x = model.createIndividual( ns + "x", c );

    model.contains( OWL.Nothing, RDF.type, OWL.Class );
   
    assertIteratorValues( model.listStatements( x, RDF.type, (Resource) null ), new Object[] {
      model.createStatement( x, RDF.type, OWL.Thing ),
      model.createStatement( x, RDF.type, c )
     
    });
   
    assertIteratorValues( model.listStatements( anon, RDF.type, (Resource) null ), new Object[] {
View Full Code Here

    model.contains( OWL.Nothing, RDF.type, OWL.Class );
   
    assertIteratorValues( model.listStatements( x, RDF.type, (Resource) null ), new Object[] {
      model.createStatement( x, RDF.type, OWL.Thing ),
      model.createStatement( x, RDF.type, c )
     
    });
   
    assertIteratorValues( model.listStatements( anon, RDF.type, (Resource) null ), new Object[] {
      model.createStatement( anon, RDF.type, OWL.Thing ),
View Full Code Here

      model.createStatement( x, RDF.type, c )
     
    });
   
    assertIteratorValues( model.listStatements( anon, RDF.type, (Resource) null ), new Object[] {
      model.createStatement( anon, RDF.type, OWL.Thing ),
      model.createStatement( anon, RDF.type, c )
     
    });
   
    assertIteratorValues( model.listStatements( null, RDF.type, OWL.Thing ), new Object[] {
View Full Code Here

     
    });
   
    assertIteratorValues( model.listStatements( anon, RDF.type, (Resource) null ), new Object[] {
      model.createStatement( anon, RDF.type, OWL.Thing ),
      model.createStatement( anon, RDF.type, c )
     
    });
   
    assertIteratorValues( model.listStatements( null, RDF.type, OWL.Thing ), new Object[] {
      model.createStatement( anon, RDF.type, OWL.Thing ),
View Full Code Here

      model.createStatement( anon, RDF.type, c )
     
    });
   
    assertIteratorValues( model.listStatements( null, RDF.type, OWL.Thing ), new Object[] {
      model.createStatement( anon, RDF.type, OWL.Thing ),
      model.createStatement( x, RDF.type, OWL.Thing )
     
    });
   
    assertIteratorValues( model.listStatements( null, RDF.type, c ), new Object[] {
View Full Code Here

     
    });
   
    assertIteratorValues( model.listStatements( null, RDF.type, OWL.Thing ), new Object[] {
      model.createStatement( anon, RDF.type, OWL.Thing ),
      model.createStatement( x, RDF.type, OWL.Thing )
     
    });
   
    assertIteratorValues( model.listStatements( null, RDF.type, c ), new Object[] {
      model.createStatement( anon, RDF.type, c ),
View Full Code Here

      model.createStatement( x, RDF.type, OWL.Thing )
     
    });
   
    assertIteratorValues( model.listStatements( null, RDF.type, c ), new Object[] {
      model.createStatement( anon, RDF.type, c ),
      model.createStatement( x, RDF.type, c )
     
    });

  }
View Full Code Here

     
    });
   
    assertIteratorValues( model.listStatements( null, RDF.type, c ), new Object[] {
      model.createStatement( anon, RDF.type, c ),
      model.createStatement( x, RDF.type, c )
     
    });

  }
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.