Changeset 2081 for trunk/sources/HeuristicLab.CEDMA.Core/3.3
- Timestamp:
- 06/22/09 17:49:10 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.CEDMA.Core/3.3/Results.cs
r2047 r2081 87 87 entries = new List<ResultsEntry>(); 88 88 do { 89 var allBindings = store.Query("? Dataset <" + Ontology.HasModel + "> ?Model." + Environment.NewLine +89 var allBindings = store.Query("?Model <" + Ontology.InstanceOf + "> <" + Ontology.TypeModel + "> ." + Environment.NewLine + 90 90 "?Model ?Attribute ?Value .", page, PAGE_SIZE); 91 91 var allModelBindings = allBindings.GroupBy(x => (Entity)x.Get("Model")); … … 125 125 private void LoadModelAttributes() { 126 126 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(); 130 134 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(); 134 142 } 135 143
Note: See TracChangeset
for help on using the changeset viewer.