/// <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(); }
/// <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."); } }
/// <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."); } }