Package org.ontospread.to

Examples of org.ontospread.to.StatTO


  }

  public StatTO[] getStats() {
    OntModel ontModel = getOntModel();
    List<StatTO> stats = new LinkedList<StatTO>();   
    stats.add(new StatTO(OWL.AllDifferent.getURI(),
        String.valueOf(ontModel.listAllDifferent().toList().size())));
    stats.add(new StatTO(OWL.DatatypeProperty.getURI(),
        String.valueOf(ontModel.listDatatypeProperties().toList().size())));
    stats.add(new StatTO(OWL.DataRange.getURI(),
        String.valueOf(ontModel.listDataRanges().toList().size())));
    stats.add(new StatTO(OWL.AnnotationProperty.getURI(),
        String.valueOf(ontModel.listAnnotationProperties().toList().size())));
    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(),
        String.valueOf(ontModel.listUnionClasses().toList().size())));
    stats.add(new StatTO(OWL.complementOf.getURI(),
        String.valueOf(ontModel.listComplementClasses().toList().size())));
    stats.add(new StatTO(OWL.intersectionOf.getURI(),
        String.valueOf(ontModel.listIntersectionClasses().toList().size())));
    stats.add(new StatTO(OWL.Restriction.getURI(),
        String.valueOf(ontModel.listRestrictions().toList().size())));
    stats.add(new StatTO(OWL.OntologyProperty.getURI(),
        String.valueOf(ontModel.listOntProperties().toList().size())));
    stats.add(new StatTO(TypeHierarchy.INSTANCE.name(),
        String.valueOf(ontModel.listIndividuals().toList().size())));
    return stats.toArray(new StatTO[stats.size()]);
  }
View Full Code Here

TOP

Related Classes of org.ontospread.to.StatTO

Copyright © 2018 www.massapicom. 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.