Package com.hp.hpl.jena.ontology

Examples of com.hp.hpl.jena.ontology.Individual.addRDFType()


    // load everything and check consistency
    assertTrue( model.validate().isValid() );

    // add a type relation for an existing individual
    a.addRDFType( cls );

    // verify instance relation
    assertTrue( model.contains( a, RDF.type, cls ) );
    assertIteratorValues( cls.listInstances( false ), new Resource[] { a } );
    // check for direct types to make sure we don't get results from base
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.