public void TestDetectLanguage()
        {
            MetaTextMashapeClient client = new MetaTextMashapeClient(mashapeAuthentication);

            string text = "The quick brown fox.";
            string response = client.DetectLanguage(text);

            Console.WriteLine("Detected language: " + response);
        }
        public void TestDisambiguation()
        {
            string entity = "Michael Jordan";
            string text = "Michael Jordan was a basketball player for the Chicago Bulls.";
            string entityClass = "Person";

            MetaTextMashapeClient client = new MetaTextMashapeClient(mashapeAuthentication);

            string response = client.Disambiguate(entity, text, entityClass);

            Console.WriteLine("Disambiguated Entity URI: " + response);

            Assert.AreEqual("http://dbpedia.org/resource/Michael_Jordan", response);
        }
        public void TestEnrich()
        {
            string entityUri = "http://dbpedia.org/resource/Michael_Jordan";
            int maxEnrichments = 5;

            MetaTextMashapeClient client = new MetaTextMashapeClient(mashapeAuthentication);

            Dictionary<string, string> enrichments = client.Enrich(entityUri, maxEnrichments);

            Assert.IsTrue(enrichments.Count > 0);
            Assert.IsTrue(enrichments.Count <= 5);

            foreach (KeyValuePair<string, string> entry in enrichments)
            {
                Console.WriteLine(entry.Key + " = " + entry.Value);
            }
        }