protected RDFIntStoreAbstract(string path, IStringIntCoding entityCoding, PredicatesCoding predicatesCoding, NameSpaceStore nameSpaceStore, LiteralStoreAbstract literalStore) : this(entityCoding, predicatesCoding, nameSpaceStore, literalStore, new ScaleCell(path)) { // TODO: Complete member initialization this.path = path; }
protected RDFIntStoreAbstract(IStringIntCoding entityCoding, PredicatesCoding predicatesCoding, NameSpaceStore nameSpaceStore, LiteralStoreAbstract literalStore, ScaleCell scale) { this.literalStore = literalStore; this.entityCoding = entityCoding; this.nameSpaceStore = nameSpaceStore; this.predicatesCoding = predicatesCoding; this.scale = scale; if (!scale.Cell.IsEmpty) { scale.CalculateRange(); } }
//// Идея хорошая, но надо менять схему реализации //private GroupedEntities getable; //private Dictionary<int, object[]> geHash; public ColumnsStore(string path, IStringIntCoding entityCoding, PredicatesCoding predicatesCoding, NameSpaceStore nameSpaceStore, LiteralStoreAbstract literalStore) : base(path, entityCoding, predicatesCoding, nameSpaceStore, literalStore) { InitTypes(); otriplets_op_filePath = path + "otriples_op.pac"; otriples_filePath = path + "otriples.pac"; dtriples_filePath = path + "dtriples.pac"; dataPredicatesColumn_filePath = path + "dataPredicatesColumn.pac"; objPredicatesColumn_filePath = path + "objPredicatesColumn.pac"; invPredicatesColumn_filePath = path + "invPredicatesColumn.pac"; invSubjectsColumn_filePath = path + "invSubjectsColumn.pac"; objectsColumn_filePath = path + "objectsColumn.pac"; dataColumn_filePath = path + "dataColumn.pac"; Open(File.Exists(otriples_filePath)); ewt = new EntitiesWideTable(path, 3); //ewtHash = new EntitiesMemoryHashTable(ewt); // ewtHash.Load(); //getable = new GroupedEntities(path); // Это хорошая идея, но нужно менять схему реализации //getable.CheckGroupedEntities(); //geHash = getable.GroupedEntitiesHash(); }
//// Идея хорошая, но надо менять схему реализации //private GroupedEntities getable; //private Dictionary<int, object[]> geHash; public TripleStoreInt(string path, IStringIntCoding entityCoding, PredicatesCoding predicatesCoding, NameSpaceStore nameSpaceStore, LiteralStoreAbstract literalStore) : base(path, entityCoding, predicatesCoding, nameSpaceStore, literalStore) { this.path = path; InitTypes(); otriplets_op_filePath = path + "otriples_op.pac"; otriples_filePath = path + "otriples.pac"; dtriples_filePath = path + "dtriples_spf.pac"; if (File.Exists(otriples_filePath)) { Open(true); } else { otriples = new PaCell(tp_triple_seq_two, otriples_filePath, false); otriples_op = new PaCell(tp_triple_seq_two, otriplets_op_filePath, false); dtriples_sp = new PaCell(tp_dtriple_spf_two, dtriples_filePath, false); } if (!Scale.Cell.IsEmpty) { Scale.CalculateRange(); } ewt = new EntitiesWideTable(path, 3); //ewtHash = new EntitiesMemoryHashTable(ewt); // ewtHash.Load(); //getable = new GroupedEntities(path); // Это хорошая идея, но нужно менять схему реализации //getable.CheckGroupedEntities(); //geHash = getable.GroupedEntitiesHash(); }
/// <summary> /// Конструктор /// </summary> /// <param name="path">директория базы данных с (обратным) слешем</param> /// <param name="literalStore"></param> /// <param name="entityCoding"></param> /// <param name="nameSpaceStore"></param> /// <param name="predicatesCoding"></param> public RdfTrees(string path, IStringIntCoding entityCoding, PredicatesCoding predicatesCoding, NameSpaceStore nameSpaceStore, LiteralStoreAbstract literalStore) : base(path, entityCoding, predicatesCoding, nameSpaceStore, literalStore) { // Построим типы InitTypes(); // Создадим или откроем ячейки this.entitiesTree = new PxCell(tp_entitiesTree, entitiesTreePath = path + "entitiesTree.pxc", false); //this.literalsTree = new PxCell(tp_literalsTree, path + "literalsTree.pxc", false); // this.dtriples = new PaCell(tp_dtriple_spf, path + "dtriples.pac", false); // Это вместо не работающего дерева литералов } otriples = new PaCell(tp_otriple_seq, path + "otriples.pac", File.Exists(path + "otriples.pac")); otriples.Close(); }