Пример #1
0
        public static string GetTags()
        {
            KnowledgeServer ks        = new KnowledgeServer();
            string          sResponse = ks.ListTags();

            return(sResponse);
        }
Пример #2
0
        public static string Query(string sTagList)
        {
            //string sResponse = WebCommunications.SendGetRequest("http://dwlapi.azurewebsites.net/api/reflection/KnowledgeBaseServer/KnowledgeBaseServer/KnowledgeServer/ConstructPage?squery=" + sTagList, true);
            //string sResponse = WebCommunications.SendGetRequest("http://localhost:16651/api/reflection/KnowledgeBaseServer/KnowledgeBaseServer/KnowledgeServer/ConstructPage?squery=" + sTagList, true);
            KnowledgeServer ks        = new KnowledgeServer();
            string          sResponse = ks.ConstructPage(sTagList);

            // sanitize, because my webservice is still doing weird things
            sResponse = sResponse.Trim('\"');
            sResponse = sResponse.Replace("\\\"", "\"");

            return(sResponse);
        }
Пример #3
0
        public static string GetRandom()
        {
            KnowledgeServer ks = new KnowledgeServer();

            return(ks.RandomTag());
        }
Пример #4
0
        public static string GetSnippet(string sSnippetName)
        {
            KnowledgeServer ks = new KnowledgeServer();

            return(ks.GetSnippet(sSnippetName));
        }
Пример #5
0
        public static void DeleteSnippet(string sSnippetName)
        {
            KnowledgeServer ks = new KnowledgeServer();

            ks.DeleteSnippet(sSnippetName);
        }
Пример #6
0
        public static void EditSnippet(string sSnippetName, string sTagList, string sSnippet)
        {
            KnowledgeServer ks = new KnowledgeServer();

            ks.EditSnippet(sSnippetName, sSnippet, sTagList);
        }