Examples of listClasses()


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

    stats.add(new StatTO(OWL.imports.getURI(),
        String.valueOf(ontModel.listImportedOntologyURIs().size())));
    stats.add(new StatTO(OWL.Ontology.getURI(),
        String.valueOf(ontModel.listOntologies().toList().size())));
    stats.add(new StatTO(OWL.Class.getURI(),
        String.valueOf(ontModel.listClasses().toList().size())));
    stats.add(new StatTO(ENUMERATED_CLASSES,
        String.valueOf(ontModel.listEnumeratedClasses().toList().size())));
    stats.add(new StatTO(OWL.unionOf.getURI(),
        String.valueOf(ontModel.listUnionClasses().toList().size())));
    stats.add(new StatTO(OWL.complementOf.getURI(),
View Full Code Here

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

    model.read( base + "all_datatypes.owl" );

    OntModel hierarchy = ModelFactory.createOntologyModel( OntModelSpec.OWL_MEM );
    model.read( base + "datatype_hierarchy.owl" );

    Iterator<?> i = hierarchy.listClasses();
    while( i.hasNext() ) {
      OntClass cls = (OntClass) i.next();

      assertIteratorValues( model.getOntClass( cls.getURI() ).listSubClasses( true ), cls
          .listSubClasses() );
View Full Code Here

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

    model.read( base + "all_datatypes.owl" );

    OntModel hierarchy = ModelFactory.createOntologyModel( OntModelSpec.OWL_MEM );
    model.read( base + "datatype_hierarchy.owl" );

    Iterator<?> i = hierarchy.listClasses();
    while( i.hasNext() ) {
      OntClass cls = (OntClass) i.next();

      assertIteratorValues( model.getOntClass( cls.getURI() ).listSubClasses( true ), cls
          .listSubClasses() );
View Full Code Here

Examples of com.sun.codemodel.JDefinedClass.listClasses()

            }
            if (mapping != null) {
                jType = mapping.getType().getTypeClass()
                if (jType instanceof JDefinedClass) {
                    JDefinedClass jdType = (JDefinedClass)jType;
                    for (JType jt : jdType.listClasses()) {
                        if (jt.name().equalsIgnoreCase(part.getElementQName().getLocalPart())) {
                            jType = jt;
                        }
                    }
                }
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.