Beispiel #1
0
 /// <summary>
 /// Creates a new set of Term Mappings from the given Vocabulary.
 /// </summary>
 /// <param name="vocab">Vocabulary.</param>
 public TermMappings(IRdfAVocabulary vocab)
 {
     foreach (KeyValuePair <String, String> term in vocab.Mappings)
     {
         AddTerm(term.Key, term.Value);
     }
     _vocabUri = vocab.VocabularyUri;
 }
Beispiel #2
0
 /// <summary>
 /// Merges another Vocabulary into this one.
 /// </summary>
 /// <param name="vocab">Vocabulary.</param>
 public void Merge(IRdfAVocabulary vocab)
 {
     foreach (KeyValuePair <String, String> term in vocab.Mappings)
     {
         AddTerm(term.Key, term.Value);
     }
     foreach (KeyValuePair <String, String> ns in vocab.Namespaces)
     {
         AddNamespace(ns.Key, ns.Value);
     }
     _vocabUri = vocab.VocabularyUri;
 }
Beispiel #3
0
 /// <summary>
 /// Merges another Vocabulary into this one.
 /// </summary>
 /// <param name="vocab">Vocabulary.</param>
 /// <exception cref="NotSupportedException">Thrown since this vocabulary is fixed and cannot be changed.</exception>
 public void Merge(IRdfAVocabulary vocab)
 {
     throw new NotSupportedException("Cannot merge a vocabulary into a fixed vocabulary");
 }
 /// <summary>
 /// Merges another Vocabulary into this one
 /// </summary>
 /// <param name="vocab">Vocabulary</param>
 public void Merge(IRdfAVocabulary vocab)
 {
     foreach (KeyValuePair<String, String> term in vocab.Mappings)
     {
         this.AddTerm(term.Key, term.Value);
     }
     foreach (KeyValuePair<String, String> ns in vocab.Namespaces)
     {
         this.AddNamespace(ns.Key, ns.Value);
     }
     this._vocabUri = vocab.VocabularyUri;
 }
 /// <summary>
 /// Creates a new set of Term Mappings from the given Vocabulary
 /// </summary>
 /// <param name="vocab">Vocabulary</param>
 public TermMappings(IRdfAVocabulary vocab)
 {
     foreach (KeyValuePair<String,String> term in vocab.Mappings)
     {
         this.AddTerm(term.Key, term.Value);
     }
     this._vocabUri = vocab.VocabularyUri;
 }
 /// <summary>
 /// Merges another Vocabulary into this one
 /// </summary>
 /// <param name="vocab">Vocabulary</param>
 /// <exception cref="NotSupportedException">Thrown since this vocabulary is fixed and cannot be changed</exception>
 public void Merge(IRdfAVocabulary vocab)
 {
     throw new NotSupportedException("Cannot merge a vocabulary into a fixed vocabulary");
 }