Example #1
0
 public LiteralStore(string path, NameSpaceStore nameSpaceStore) : base(path, nameSpaceStore)
 {
     dataCellPath = path + "data.pac";
     dataCell     = new PaCell(tp_data_seq, dataCellPath, false);
     if (dataCell.IsEmpty)
     {
         dataCell.Fill(new object[0]);
     }
 }
 public void InitConstants(NameSpaceStore nameSpaceStore)
 {
     integer  = nameSpaceStore.GetShortFromFullOrPrefixed("<http://www.w3.org/2001/XMLSchema#integer>");
     @double  = nameSpaceStore.GetShortFromFullOrPrefixed("<http://www.w3.org/2001/XMLSchema#double>");
     @float   = nameSpaceStore.GetShortFromFullOrPrefixed("<http://www.w3.org/2001/XMLSchema#float>");
     boolean  = nameSpaceStore.GetShortFromFullOrPrefixed("<http://www.w3.org/2001/XMLSchema#boolean>");
     date     = nameSpaceStore.GetShortFromFullOrPrefixed("<http://www.w3.org/2001/XMLSchema#date>");
     @string  = nameSpaceStore.GetShortFromFullOrPrefixed("<http://www.w3.org/2001/XMLSchema#string>");
     dateTime = nameSpaceStore.GetShortFromFullOrPrefixed("<http://www.w3.org/2001/XMLSchema#dateTime>");
 }
        public LiteralStoreAbstract(string dataCellPath, NameSpaceStore nameSpaceStore)
        {
            this.dataCellPath = dataCellPath + "/literals";
            if (!Directory.Exists(dataCellPath))
            {
                Directory.CreateDirectory(dataCellPath);
            }

            InitConstants(nameSpaceStore);
        }
 public LiteralStoreSplitedZipped(string path, NameSpaceStore nameSpaceStore) : base(path, nameSpaceStore)
 {
 }
 public LiteralStoreSplited(string path, NameSpaceStore nameSpaceStore) : base(path, nameSpaceStore)
 {
     stringsCell      = new PaCell(new PTypeSequence(new PTypeRecord(new NamedType("string value", new PType(PTypeEnumeration.sstring)), new NamedType("lang", new PType(PTypeEnumeration.sstring)))), path + "strings.pac", false);
     typedObjectsCell = new PaCell(new PTypeSequence(new PTypeRecord(new NamedType("string value", new PType(PTypeEnumeration.sstring)), new NamedType("type", new PType(PTypeEnumeration.sstring)))), path + "typedObject.pac", false);
 }