コード例 #1
0
 /// <summary>
 /// Adds the given concept to the conceptScheme as top concept of the hierarchy
 /// </summary>
 public static RDFSKOSConceptScheme AddTopConceptRelation(this RDFSKOSConceptScheme conceptScheme,
                                                          RDFSKOSConcept concept)
 {
     if (conceptScheme != null && concept != null && !conceptScheme.Equals(concept))
     {
         //Add skos:hasTopConcept relation to the scheme
         conceptScheme.Relations.TopConcept.AddEntry(new RDFOntologyTaxonomyEntry(conceptScheme, RDFVocabulary.SKOS.HAS_TOP_CONCEPT.ToRDFOntologyObjectProperty(), concept));
     }
     return(conceptScheme);
 }