Beispiel #1
0
        public ResultList GSsearch(Query query)
        {
            //String queryURL = querybuilder.getURL
            //Result = parser.getResult

            //Dummy Results
            ResultList resultList = new ResultList();
            GSParser parser = new GSParser();

           resultList = parser.GSbuildQuery(query);
           /* Paper paper = new Paper();
            paper.settitle("A hybrid feature set based maximum entropy Hindi named entity recognition");
            paper.setdescription("hsjkasdhkjshjsak");
            paper.seturl(new Uri("http://google.co.in"));
            paper.setauthors("S Dandapat, S Sarkar, A Basu - Proceedings of the International …, 2004 - pdf.aminer.org");
            paper.setcitationsUrl("skhadkjshadksjdhkj");
            result.addPaper(paper);
            result.addPaper(paper);
            result.addPaper(paper);
            result.addPaper(paper);
            * */


           return resultList;
            //
          //  return null;            //TODO
        }
Beispiel #2
0
        public ResultList GSsearch(Query query)
        {
            //String queryURL = querybuilder.getURL
            //Result = parser.getResult

            //Dummy Results
            ResultList resultList = new ResultList();
            GSParser   parser     = new GSParser();

            resultList = parser.GSbuildQuery(query);

            /* Paper paper = new Paper();
             * paper.settitle("A hybrid feature set based maximum entropy Hindi named entity recognition");
             * paper.setdescription("hsjkasdhkjshjsak");
             * paper.seturl(new Uri("http://google.co.in"));
             * paper.setauthors("S Dandapat, S Sarkar, A Basu - Proceedings of the International …, 2004 - pdf.aminer.org");
             * paper.setcitationsUrl("skhadkjshadksjdhkj");
             * result.addPaper(paper);
             * result.addPaper(paper);
             * result.addPaper(paper);
             * result.addPaper(paper);
             * */


            return(resultList);
            //
            //  return null;            //TODO
        }
Beispiel #3
0
        public ResultList GSsearchCitationUrl(String url)
        {
            ResultList resultList = new ResultList();
            GSParser   parser     = new GSParser();

            url = "http://scholar.google.co.in" + url;
            var citationUrl = new Uri(url);
            int i;

            for (i = 0; i < 10; i += 10)
            {
                Result result = new Result();

                String newURL;
                newURL = citationUrl + "&start=" + i.ToString();
                var newUrl = new Uri(newURL);
                Console.WriteLine(newUrl);
                resultList.Add(parser.GSConnect(newUrl));
            }
            return(resultList);
        }
Beispiel #4
0
        public ResultList GSsearchCitationUrl(String url)
        {
            ResultList resultList = new ResultList();
            GSParser parser = new GSParser();

            url = "http://scholar.google.co.in" + url;
            var citationUrl = new Uri(url);
            int i;
            for (i = 0; i < 10; i += 10)
            {
                Result result = new Result();

                String newURL;
                newURL = citationUrl + "&start=" + i.ToString();
                var newUrl = new Uri(newURL);
                Console.WriteLine(newUrl);
                resultList.Add(parser.GSConnect(newUrl));

            }
            return resultList;

        }