示例#1
0
 /// <summary>
 /// Default-ctor to build an empty reference ontology with the given name
 /// </summary>
 internal RDFOntology(RDFResource ontologyName, Boolean isReferenceOntology)
 {
     this.Value           = ontologyName;
     this.PatternMemberID = ontologyName.PatternMemberID;
     this.Model           = new RDFOntologyModel();
     this.Data            = new RDFOntologyData();
     this.Relations       = new RDFOntologyMetadata();
     this.Annotations     = new RDFOntologyAnnotationsMetadata();
 }
示例#2
0
 /// <summary>
 /// Default-ctor to build an empty ontology with the given name
 /// </summary>
 public RDFOntology(RDFResource ontologyName) {
     if (ontologyName        != null) {
         this.Value           = ontologyName;
         this.PatternMemberID = ontologyName.PatternMemberID;
         this.Model           = new RDFOntologyModel();
         this.Data            = new RDFOntologyData();
         this.Annotations     = new RDFOntologyAnnotationsMetadata();
         RDFSemanticsUtilities.InitializeOntology(this);
     }
     else {
         throw new RDFSemanticsException("Cannot create RDFOntology because given \"ontologyName\" parameter is null.");
     }
 }
示例#3
0
 /// <summary>
 /// Default-ctor to build an empty ontology with the given name
 /// </summary>
 public RDFOntology(RDFResource ontologyName)
 {
     if (ontologyName != null)
     {
         this.Value           = ontologyName;
         this.PatternMemberID = ontologyName.PatternMemberID;
         this.Model           = new RDFOntologyModel();
         this.Data            = new RDFOntologyData();
         this.Relations       = new RDFOntologyMetadata();
         this.Annotations     = new RDFOntologyAnnotationsMetadata();
         this.Init();
     }
     else
     {
         throw new RDFSemanticsException("Cannot create RDFOntology because given \"ontologyName\" parameter is null.");
     }
 }