Beispiel #1
0
        /// <summary>
        /// Füge Ordnungsstuktur der Interventionen der Zielmenge hinzu
        ///
        /// </summary>
        /// <returns>EntryBuilder um gegebenenfalls Strukturelemente dem Ziel hinzuzufügen</returns>
        public SimpleEntryBuilder <SimpleTargetBuilder> InterventionsBundle()
        {
            NksEntry entry = new NksEntry(BasicEntries.InterventionsBundle);

            _query.AddTarget(entry);
            return(new SimpleEntryBuilder <SimpleTargetBuilder>(entry, this));
        }
Beispiel #2
0
        /// <summary>
        /// Füge den Expertenstandard der Zielmenge hinzu
        ///
        /// </summary>
        /// <returns>EntryBuilder um gegebenenfalls Strukturelemente dem Ziel hinzuzufügen</returns>
        public SimpleEntryBuilder <SimpleTargetBuilder> ExpertStandard()
        {
            NksEntry entry = new NksEntry(BasicEntries.ExpertStandard);

            _query.AddTarget(entry);
            return(new SimpleEntryBuilder <SimpleTargetBuilder>(entry, this));
        }
Beispiel #3
0
        /// <summary>
        /// Füge Element mittels seines Konzeptnamens der Zielmenge hinzu
        ///
        /// </summary>
        /// <param name="cName">der cName oder auch Konzeptname</param>
        /// <returns>EntryBuilder um gegebenenfalls Strukturelemente dem Ziel hinzuzufügen</returns>
        public SimpleEntryBuilder <SimpleTargetBuilder> Custom(string cName)
        {
            NksEntry entry = new NksEntry(cName);

            _query.AddTarget(entry);
            return(new SimpleEntryBuilder <SimpleTargetBuilder>(entry, this));
        }
Beispiel #4
0
        /// <summary>
        /// Füge Ordnungsstuktur der Ursachen der Zielmenge hinzu
        ///
        /// </summary>
        /// <returns>EntryBuilder um gegebenenfalls Strukturelemente dem Ziel hinzuzufügen</returns>
        public SimpleEntryBuilder <SimpleTargetBuilder> CausesStructure()
        {
            NksEntry entry = new NksEntry(BasicEntries.CausesStructure);

            _query.AddTarget(entry);
            return(new SimpleEntryBuilder <SimpleTargetBuilder>(entry, this));
        }
Beispiel #5
0
        /// <summary>
        /// Füge Ausprägungen der Zielmenge hinzu
        ///
        /// </summary>
        /// <returns>EntryBuilder um gegebenenfalls Strukturelemente dem Ziel hinzuzufügen</returns>
        public SimpleEntryBuilder <SimpleTargetBuilder> Shapes()
        {
            NksEntry entry = new NksEntry(BasicEntries.Shapes);

            _query.AddTarget(entry);
            return(new SimpleEntryBuilder <SimpleTargetBuilder>(entry, this));
        }
        /// <summary>
        /// Füge ein Element mittels seines cName der Konzeptmenge hinzu
        ///
        /// </summary>
        /// <param name="cName">der cName oder auch Konzeptname</param>
        /// <returns>SimpleEntryBuilder um Strukturelemente etc. diesem Konzept hinzuzufügen</returns>
        public SimpleEntryBuilder <SimpleQueryBuilder> AddConcept(string cName)
        {
            NksEntry entry = new NksEntry(cName);

            Query.AddConcept(entry);
            return(new SimpleEntryBuilder <SimpleQueryBuilder>(entry, this));
        }
Beispiel #7
0
        /// <summary>
        /// Füge Phänomene der Zielmenge hinzu
        ///
        /// </summary>
        /// <returns>EntryBuilder um gegebenenfalls Strukturelemente dem Ziel hinzuzufügen</returns>
        public SimpleEntryBuilder <SimpleTargetBuilder> Phenomenons()
        {
            NksEntry entry = new NksEntry(BasicEntries.Phaenomenoms);

            _query.AddTarget(entry);
            return(new SimpleEntryBuilder <SimpleTargetBuilder>(entry, this));
        }
Beispiel #8
0
        /// <summary>
        /// Füge Körperorte der Zielmenge hinzu
        ///
        /// </summary>
        /// <returns>EntryBuilder um gegebenenfalls Strukturelemente dem Ziel hinzuzufügen</returns>
        public SimpleEntryBuilder <SimpleTargetBuilder> BodyLocations()
        {
            NksEntry entry = new NksEntry(BasicEntries.BodyLocations);

            _query.AddTarget(entry);
            return(new SimpleEntryBuilder <SimpleTargetBuilder>(entry, this));
        }
 internal void AddTarget(NksEntry target)
 {
     if (targetSet == null)
     {
         targetSet = new HashSet <NksEntry>();
     }
     targetSet.Add(target);
 }
 internal void AddConcept(NksEntry combinatedConcept)
 {
     if (this.combinatedConcept == null)
     {
         this.combinatedConcept = new HashSet <NksEntry>();
     }
     this.combinatedConcept.Add(combinatedConcept);
 }
 internal void AddAttribute(NksEntry attribute)
 {
     if (attributes == null)
     {
         attributes = new HashSet <NksEntry>();
     }
     attributes.Add(attribute);
 }
Beispiel #12
0
        public static NksEntry DefaultTemplate()
        {
            var entry = new NksEntry(NKS_TEMPLATE);

            entry.label           = "";
            entry.cat             = "";
            entry.superType       = "";
            entry.dom             = "";
            entry.score           = "";
            entry.listIndex       = 0;
            entry.signature       = "";
            entry.parentSignature = "";
            return(entry);
        }
Beispiel #13
0
        public static NksEntry InterventionTemplate()
        {
            var entry = new NksEntry(NKS_TEMPLATE);

            entry.label           = "";
            entry.cat             = "";
            entry.superType       = "";
            entry.dom             = "";
            entry.score           = "";
            entry.listIndex       = 0;
            entry.signature       = "";
            entry.parentSignature = "";
            entry.dataRelation.Add("caremin", new HashSet <String>());
            entry.dataRelation.Add("icnp", new HashSet <String>());
            entry.dataRelation.Add("ppr", new HashSet <String>());
            entry.dataRelation.Add("lepmin", new HashSet <String>());
            return(entry);
        }
        public async static void Workflow_001()
        {
            Nks nks = Nks.NewConnection(Server);

            SimpleQueryBuilder phenomenonsRequest = nks.PrepareRequest().Search().Catalog()
                                                    .CreateSimpleQuery()
                                                    .AddTargets().Phenomenons().Done().Done()
                                                    .SetSearchText("Zustand")
                                                    .DefineTemplate().PhenomenonsTemplate().Done();

            NksResponse shapes = await phenomenonsRequest.Execute();

            new NksJson().Display(phenomenonsRequest.GetQuery());
            NksEntry shape = shapes.Elements[0];

            new NksJson().Display(shape);

            SimpleQueryBuilder linkRequest = nks.PrepareRequest().Search().Link()
                                             .CreateSimpleQuery()
                                             .AddConcept(shape)
                                             .AddConcept("IA123").AddStructure("Blub").SetDomain("welt").Done()
                                             .AddTargets().Causes().Done().Done();

            NksResponse causes = await linkRequest.Execute();

            NksEntry cause = causes.Elements[1];

            SimpleQueryBuilder interventionRequest = nks.PrepareRequest().Search().Link()
                                                     .CreateSimpleQuery()
                                                     .AddConcept(cause).AddConcept(shape)
                                                     .AddTargets().Interventions().Done().Done();

            NksResponse interventions = await interventionRequest.Execute();

            //new NksJson().Display(interventions);

            SimpleQueryBuilder correlationRequest = nks.PrepareRequest().Search().Correlation()
                                                    .CreateSimpleQuery()
                                                    .AddConcept(cause)
                                                    .AddTargets().Causes().Done().Done();
            //causes
        }
Beispiel #15
0
 internal SimpleTemplateBuilder(NksQuery query, SimpleQueryBuilder builder)
 {
     _entry         = new NksEntry(BasicEntries.Template);
     _builder       = builder;
     query.template = _entry;
 }
 /// <summary>
 /// Die Zielmenge wird direkt über den Konzeptnamen bestimmt
 /// </summary>
 /// <param name="targetConceptName">der cName oder auch Konzeptname der Zielmenge</param>
 public TargetBuilder(string targetConceptName)
 {
     entry = new NksEntry(targetConceptName);
 }
 /// <summary>
 /// Füge ein NksEntry der Konzeptmenge hinzu
 ///
 /// </summary>
 /// <param name="entry">Nks Entry-Objekt</param>
 /// <returns>Sich selbst für chaining</returns>
 public SimpleQueryBuilder AddConcept(NksEntry entry)
 {
     Query.AddConcept(entry);
     return(this);
 }
 internal SimpleEntryBuilder(NksEntry entry, T builder)
 {
     _entry   = entry;
     _builder = builder;
 }