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

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

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

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