Examples of HiddenGCICount


Examples of org.semanticweb.owlapi.metrics.HiddenGCICount

        assertEquals("Average number of named superclasses",
                new AverageAssertedNamedSuperclassCount(createOntology)
                        .getName());
        assertEquals("Axiom", new AxiomCount(createOntology).getName());
        assertEquals("Hidden GCI Count",
                new HiddenGCICount(createOntology).getName());
        assertEquals("Imports closure size", new ImportClosureSize(
                createOntology).getName());
        assertEquals("Maximum number of asserted named superclasses",
                new MaximumNumberOfNamedSuperclasses(createOntology).getName());
        assertEquals("Number of classes with asserted multiple inheritance",
View Full Code Here

Examples of org.semanticweb.owlapi.metrics.HiddenGCICount

   */
  public String[] getFeatures(OWLOntology ontology){
    OWLOntologyManager manager = OWLManager.createOWLOntologyManager();
    GCICount gciCount = new GCICount(manager);
    gciCount.setOntology(ontology);
    HiddenGCICount hiddenGCICount = new HiddenGCICount(manager);
    hiddenGCICount.setOntology(ontology);
   
    String[] features = new String[2];
    features[0] = FeaturePara.combineFeatureAndValue(
        FeaturePara.FEATURE_NAMES[FeaturePara.GCI_COUNT],
        gciCount.getValue().toString());
    features[1] = FeaturePara.combineFeatureAndValue(
        FeaturePara.FEATURE_NAMES[FeaturePara.HIDDEN_GCI_COUNT],
        hiddenGCICount.getValue().toString());
   
    return features;
  }
View Full Code Here

Examples of org.semanticweb.owlapi.metrics.HiddenGCICount

   */
  public String[] getFeatures(OWLOntology ontology){
    OWLOntologyManager manager = OWLManager.createOWLOntologyManager();
    GCICount gciCount = new GCICount(manager);
    gciCount.setOntology(ontology);
    HiddenGCICount hiddenGCICount = new HiddenGCICount(manager);
    hiddenGCICount.setOntology(ontology);
   
    String[] features = new String[2];
    features[0] = FeaturePara.combineFeatureAndValue(
        FeaturePara.FEATURE_NAMES[FeaturePara.GCI_COUNT],
        gciCount.getValue().toString());
    features[1] = FeaturePara.combineFeatureAndValue(
        FeaturePara.FEATURE_NAMES[FeaturePara.HIDDEN_GCI_COUNT],
        hiddenGCICount.getValue().toString());
   
    return features;
  }
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.