Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/22/09 17:49:10 (15 years ago)
Author:
gkronber
Message:

Added new types to CEDMA ontology to discriminate between attributes of problems (data sets), models and input variables. And changed class Results to read only model attributes. In preparation for the display of variable impacts of each model. #286 (Variable-usage diagrams for the CEDMA frontend)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.CEDMA.Core/3.3/Results.cs

    r2047 r2081  
    8787      entries = new List<ResultsEntry>();
    8888      do {
    89         var allBindings = store.Query("?Dataset <" + Ontology.HasModel + "> ?Model ." + Environment.NewLine +
     89        var allBindings = store.Query("?Model <" + Ontology.InstanceOf + "> <" + Ontology.TypeModel + "> ." + Environment.NewLine +
    9090          "?Model ?Attribute ?Value .", page, PAGE_SIZE);
    9191        var allModelBindings = allBindings.GroupBy(x => (Entity)x.Get("Model"));
     
    125125    private void LoadModelAttributes() {
    126126      this.ordinalVariables =
    127         store.Query("?ModelAttribute <" + Ontology.InstanceOf + "> <" + Ontology.TypeOrdinalAttribute + "> .", 0, 100)
    128         .Select(s => ((Entity)s.Get("ModelAttribute")).Uri.Replace(Ontology.CedmaNameSpace, ""))
    129         .ToArray();
     127        store
     128          .Query(
     129            "?ModelAttribute <" + Ontology.InstanceOf + "> <" + Ontology.TypeModelAttribute + "> ." + Environment.NewLine +
     130            "?ModelAttribute <" + Ontology.InstanceOf + "> <" + Ontology.TypeOrdinalAttribute + "> .", 0, 100)
     131          .Select(s => ((Entity)s.Get("ModelAttribute")).Uri.Replace(Ontology.CedmaNameSpace, ""))
     132          .Distinct()
     133          .ToArray();
    130134      this.categoricalVariables =
    131         store.Query("?ModelAttribute <" + Ontology.InstanceOf + "> <" + Ontology.TypeCategoricalAttribute + "> .", 0, 100)
    132         .Select(s => ((Entity)s.Get("ModelAttribute")).Uri.Replace(Ontology.CedmaNameSpace, ""))
    133         .ToArray();
     135        store
     136          .Query(
     137            "?ModelAttribute <" + Ontology.InstanceOf + "> <" + Ontology.TypeModelAttribute + "> ." + Environment.NewLine +
     138            "?ModelAttribute <" + Ontology.InstanceOf + "> <" + Ontology.TypeCategoricalAttribute + "> .", 0, 100)
     139          .Select(s => ((Entity)s.Get("ModelAttribute")).Uri.Replace(Ontology.CedmaNameSpace, ""))
     140          .Distinct()
     141          .ToArray();
    134142    }
    135143
Note: See TracChangeset for help on using the changeset viewer.