Examples of GCICount


Examples of org.semanticweb.owlapi.metrics.GCICount

   * @param ontology
   * @return GCI features
   */
  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.GCICount

   * @param ontology
   * @return GCI features
   */
  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.