Example #1
0
        public string CreateNewPrefixFor(OntologyAttribute ontology)
        {
            string result = generatedNamespaceChar.ToString();

            IncrementNamespace();
            return(result);
        }
Example #2
0
        public void Rename(string fromName, string toName)
        {
            OntologyAttribute ontology = store[fromName];

            store.Remove(fromName);
            store.Add(toName, ontology);
        }
Example #3
0
        public void Add(Type t)
        {
            OntologyAttribute attr = t.GetOntology();

            if (!store.ContainsKey(attr.Name))
            {
                store[attr.Name] = attr;
            }
        }
Example #4
0
 public void AddNewDefaultNamespace(OntologyAttribute ontology, string name)
 {
     Rename("", name);
     Default = ontology;
 }