Ejemplo n.º 1
0
 public ControlledVocabulary RegisterControlledVocabulary(ControlledVocabulary controlledVocabulary, params string[] names)
 {
     controlledVocabularies.Add(controlledVocabulary);
     foreach (string name in names)
     {
         controlledVocabulariesByName.Add(name, controlledVocabulary);
     }
     controlledVocabulary.PrimaryNamespace = names.Length > 0
         ? names[0]
         : TearOffPrimaryNamespace();
     return(controlledVocabulary);
 }
Ejemplo n.º 2
0
 public Term(ControlledVocabulary controlledVocabulary, string id, string name)
 {
     ControlledVocabulary = controlledVocabulary;
     Id   = id;
     Name = name;
 }