Package com.hp.hpl.jena.ontology

Examples of com.hp.hpl.jena.ontology.DatatypeProperty.listRange()


    model.prepare();

    Iterator<?> i = model.listDatatypeProperties();
    while( i.hasNext() ) {
      DatatypeProperty p = (DatatypeProperty) i.next();
      Iterator<?> j = p.listRange();
      while( j.hasNext() ) {
        Resource range = (Resource) j.next();
        assertTrue( TypeMapper.getInstance().getTypeByName( range.getURI() ) != null );
      }
    }
View Full Code Here


    model.prepare();

    Iterator<?> i = model.listDatatypeProperties();
    while( i.hasNext() ) {
      DatatypeProperty p = (DatatypeProperty) i.next();
      Iterator<?> j = p.listRange();
      while( j.hasNext() ) {
        Resource range = (Resource) j.next();
        assertTrue( TypeMapper.getInstance().getTypeByName( range.getURI() ) != null );
      }
    }
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.