Examples of listOntologies()


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

    OntModel mBase = ModelFactory.createOntologyModel(
                OntModelSpec.OWL_MEM, ontModel.getBaseModel() );

    Ontology ont = null;
   
    ExtendedIterator<Ontology> iter = mBase.listOntologies();
    try {
      if ( iter.hasNext() ) {
        ont = iter.next();
      }
View Full Code Here

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

    stats.add(new StatTO(OWL.ObjectProperty.getURI(),
        String.valueOf(ontModel.listObjectProperties().toList().size())));
    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(),
View Full Code Here

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

    }
   
    OntModel mBase = ModelFactory.createOntologyModel(
        OntModelSpec.OWL_MEM, ontModel.getBaseModel()
    );
    ontsIter = mBase.listOntologies();
    list = ontsIter.toList();
    if ( log.isDebugEnabled() ) {
      log.debug(" Ontologies in given model: " +list);
    }
    return list.size() > 0 ? list.get(0) : 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.