public static Ontology GetOntologyApplication(Guid applicationId)
        {
            //KhartaSource khartaSource = new KhartaSource();
            try
            {
                //TODO: should be getting the application, so either change container to an application or create a application data servcies for ontology
                InternalApi.KhartaOntology ontology = InternalApi.OntologyDataService.getContainerByGuid(applicationId);
                if (ontology == null)
                {
                    return(null);
                }

                return(new Ontology(ontology));
            }
            catch (Exception ex)
            {
                return(new Ontology(new AdditionalInfo(new Error(ex.GetType().FullName, ex.Message))));
            }
        }
        public PublicApi.Ontology AddUpdate(PublicApi.Ontology ontology)
        {
            InternalApi.KhartaOntology _ontology = new InternalApi.KhartaOntology();

            return(ontology);
        }
Exemplo n.º 3
0
 public IContainer Get(Guid containerId)
 {
     InternalApi.KhartaOntology khartaOntology = InteralApi.OntologyDataService.getContainerByGuid(containerId);
     PublicApi.Ontology         kIContainer    = new PublicApi.Ontology(khartaOntology);
     return(kIContainer);
 }
Exemplo n.º 4
0
 internal Ontology(InternalApi.KhartaOntology khartaOntology) : base()
 {
     _khartaOntology = khartaOntology;
 }