Introduction to Google API… By Pratheepan Raveendranathan NLP Group Meeting 10/10/2003.

Slides:



Advertisements
Similar presentations
Introduction to Google API… By Pratheepan Raveendranathan.
Advertisements

Lecture 12: Web Services MicrosoftIntroducing CS using.NETJ# in Visual Studio.NET Objectives “Web Services are objects callable across a network.
ECS 15 if and random. Topic  Testing user input using if statements  Truth and falsehood in Python  Getting random numbers.
User Interfaces File I/O and Exceptions (c) IDMS/SQL News
WSDL-Web Service Description Language By Shin Chuan, Lin July / 8 /2003.
Implementing Search Spelling Suggestions using the Google Web Services API Dave Costakos Software Developer, Systems Engineering Division May 2nd, 2002.
Blogging, Googling, Syndication: What’s the Web coming to? Ian Graham Enterprise IT Strategy & BMO Connect, T&S T: E: W:
2005 Professional Excellence Symposium blogging, googling, syndication: what’s the web coming to? ian graham Enterprise IT Strategy & BMO Connect T:
Web Services Description Language ?url=/library/en-us/dnwebsrv/html/understandWSDL.asp Notes from article.
11 Web Services Dr. Miguel A. Labrador Department of Computer Science & Engineering
Web Services By Ethan Justin Yuli. Web Services in Action Information through Integration (Google Example)Google Example What do Web.
Generalized Vector Space Model Definition Let k i be a vector associated with the index term k i. Independence of index terms in the vector model implies.
Distributed Web Software  Presentation-based, e.g., dynamic web pages  Service-based – Web Services.
ΗΛΕΚΤΡΟΝΙΚΟ ΕΜΠΟΡΙΟ Web Services Overview Mary Grammatikou 9/06/2009.
And so on CGI programming Web Services Java Programs for the Web.
Google Web API See: Concept: With the Google Web APIs service, software developers can query more than 3 billion web documents.
OOP IIICMU/MSCF1 Web Services Description Language ?url=/library/en-us/dnwebsrv/html/understandWSDL.asp Notes.
Distributed Web Software Presentation-based, e.g., dynamic web pages Service-based – Web Services.
Web Interfaces and Data Portals John Porter Department of Environmental Sciences University of Virginia.
Introduction to AppInventor Dr. José M. Reyes Álamo.
1 Java Server Programming zLecture 1 focuses on: yIntroduction to web services y Web Services using Axis y The bigger Picture: Introduction to J2EE y Java.
CGI Programming Languages Web Based Software Development July 21, 2005 Song, JaeHa.
Building + Consuming WebServices CF Style Kevin Penny MMCP (4.5/5/MX6)
Introduction to Python Dr. Bernard Chen Ph.D. University of Central Arkansas July 9 th 2012
Chapter 9 Using Perl for CGI Programming. Computation is required to support sophisticated web applications Computation can be done by the server or the.
1 HTML and CGI Scripting CSC8304 – Computing Environments for Bioinformatics - Lecture 10.
Dynamic Web Pages (Flash, JavaScript)
WSTK Development toolkit for Java Implementation of Web Services By Keping Jia.
CS 157B: Database Management Systems II February 27 Class Meeting Department of Computer Science San Jose State University Spring 2013 Instructor: Ron.
What are Webservices?. Web Services  What are Web Services?  Examine important Web Services acronyms (UDDI, SOAP, XML and WSDL)  What are the benefits.
NERC DataGrid Vocabulary Server Access Vocabulary Workshop, RAL, February 25, 2009.
Web Services An introduction for eWiSACWIS May 2008.
XML for Interoperability Robin Burke ECT 360. Outline Schemas Survey: last week The Semantic Web Web services SOAP RDF.
11 Web Services. 22 Objectives You will be able to Say what a web service is. Write and deploy a simple web service. Test a simple web service. Write.
Google’s Web Service January 4, 2004 Shuying Wang.
Web Services Kanda Runapongsa Dept. of Computer Engineering Khon Kaen University.
VSO Programmatic Interface Authors: Igor Suárez Solá Joe Hourclé Alisdair Davey VSO Team.
Here you are at your computer, but you don’t have internet connections. Your ISP becomes your link to the internet. In order to get access you need to.
10/13/2015 ©2006 Scott Miller, University of Victoria 1 Content Serving Static vs. Dynamic Content Web Servers Server Flow Control Rev. 2.0.
.Net and Web Services Security CS795. Web Services A web application Does not have a user interface (as a traditional web application); instead, it exposes.
Input & Output In Java. Input & Output It is very complicated for a computer to show how information is processed. Although a computer is very good at.
Session I Chapter 1 - Introduction to Web Development
 2001 Prentice Hall, Inc. All rights reserved. 1 Chapter 23 — Simple Object Access Protocol (SOAP) and Microsoft BizTalk™ Outline 23.1Introduction 23.2Simple.
CSE S. Tanimoto Java Introduction 1 Java A Programming Language for Web-based Computing with Graphics.
CSU - DEO Introduction to CGI - Fort Collins, CO Copyright © XTR Systems, LLC Introduction to the Common Gateway Interface (CGI) Instructor: Joseph DiVerdi,
Server-side Programming The combination of –HTML –JavaScript –DOM is sometimes referred to as Dynamic HTML (DHTML) Web pages that include scripting are.
Web-based APIs hussein suleman uct cs honours 2006.
Shell Interface Shell Interface Functions Data. Graphical Interface Graphical Interface Command-line Interface Command-line Interface Experiments Private.
Developing Web Services with the Eclipse Web Tools Platform David Gallardo.
Intro to Web Services Dr. John P. Abraham UTPA. What are Web Services? Applications execute across multiple computers on a network.  The machine on which.
.NET Mobile Application Development XML Web Services.
Introduction to Web Services Presented by Sarath Chandra Dorbala.
©2003 Paula Matuszek GOOGLE API l Search requests: submit a query string and a set of parameters to the Google Web APIs service and receive in return a.
WSTK Development toolkit for Java Implementation of Web Services By Keping Jia.
DISCO/UDDI -Ketan Reddy Peddabachi. Agenda Web Service Disco UDDI Disco Vs UDDI.
CompSci 42.1Intro to Java Anatomy of a Class & Terminology Running and Modifying a Program.
Introduction to Web Services Srinath Vasireddy Support Professional Developer Support Microsoft Corporation.
CSE S. Tanimoto Java Introduction 1 Java A Programming Language for Web-based Computing.
A Programming Language for Web-based Computing with Graphics
Dynamic Web Pages (Flash, JavaScript)
Web services, WSDL, SOAP and UDDI
HTML5 Level I Session I Chapter 1 - Introduction to Web Development
Using the Java Library API
Serpil TOK, Zeki BAYRAM. Eastern MediterraneanUniversity Famagusta
WebServices Using JAX-RPC
Introduction to AppInventor
SLAC monitoring Web Services
A Programming Language for
Web Application Development Using PHP
Presentation transcript:

Introduction to Google API… By Pratheepan Raveendranathan NLP Group Meeting 10/10/2003

The Google Web APIs service allows software developers to query more than 3 billion web documents directly from their own computer programs. Google uses the SOAP and WSDL standards to act as an interface between the user’s program and Google API. Programming environments such as Java, Perl, Visual Studio.NET are compatible with Google API. Definitions from What is Google API?

SOAP and WSDL SOAP: Simple Object Access Protocol WSDL: Web Services Description Language

Google API for Perl SOAP:Lite Lite for Perl is a collection of Perl modules which provides a simple and lightweight interface to the SOAP both on client and server side. Sample Program: use SOAP::Lite; my $key=' '; my $query="foo"; my $googleSearch = SOAP::Lite -> service("file:GoogleSearch.wsdl"); my $result = $googleSearch -> doGoogleSearch($key, $query, 0, 10,"false", "", $ print "About $result->{'estimatedTotalResultsCount'} results.\n";

Google API for Java Google APi for Java is similar to Google API for Perl. Uses the SOAP module to interact with Google API

Google API & Java package com.google.soap.search; import com.google.soap.search.GoogleSearch; import com.google.soap.search.GoogleSearchFault; import java.io.*; public class GoogleAPIDemo { public static void main(String[] args) { // Parse the command line if (args.length != 3) { printUsageAndExit(); } String clientKey = args[0]; String directiveArg = args[2]; // Report the arguments received System.out.println("Parameters:"); System.out.println("Client key = " + clientKey); System.out.println("Directive = " + directive); System.out.println("Args = " + directiveArg); // Create a Google Search object, set our authorization key GoogleSearch s = new GoogleSearch(); s.setKey(clientKey);

// Depending on user input, do search or cache query, then print out result try { if (directive.equalsIgnoreCase("search")) { s.setQueryString(directiveArg); GoogleSearchResult r = s.doSearch(); System.out.println("Google Search Results:"); System.out.println("======================"); System.out.println(r.toString()); } else if (directive.equalsIgnoreCase("cached")) { System.out.println("Cached page:"); System.out.println("============"); byte [] cachedBytes = s.doGetCachedPage(directiveArg); // Note - this conversion to String should be done with reference // to the encoding of the cached page, but we don't do that here. String cachedString = new String(cachedBytes); System.out.println(new String(pageText)); System.out.println(cachedString); } else if (directive.equalsIgnoreCase("spell")) { System.out.println("Spelling suggestion:"); String suggestion = s.doSpellingSuggestion(directiveArg); System.out.println(suggestion); }

Results [ URL = " Title = "City of Duluth Official Webpage" Snippet = "Business in Duluth, It's summer in Duluth.... Check our Parks & Recreation pages for summer events. Visit Duluth, Comprehensive Plan.... " Directory Category = {SE="", FVN=""} Directory Title = "" Summary = "" Cached Size = "22k" Related information present = true Host Name = "" ],

Spell Suggestion Query: java -cp googleapi.jar com.google.soap.search.GoogleAPIDemo iROSyfxQFHKjtA1CLcVQ3aGawqQW2j2Q spell Dulut Result: Parameters: Client key = iROSyfxQFHKjtA1CLcVQ3aGawqQW2j2Q Directive = spell Args = Dulut Spelling suggestion: Duluth

Cached Query java -cp googleapi.jar com.google.soap.search.GoogleAPIDemo iROSyfxQFHKjtA1CLcVQ3aGawqQW2j2Q cached Result: Registry of Latin American Researchers in NLP and CL Visit the Registry! My Site of the Month <img src=" alt="Open Mind word game" width="200" height="65" border="1">

Some Ideas… Duluth AND Vacation VS Hawaii and Vacation NEAR Operator in Alta Vista Positive & Negative inference beauty NEAR excellent beauty NEAR bad

Problems Limit of 1000 queries a day. Google Web APIs service is a beta web program: meaning Google does not guarantee the availability of the service One account per user.

Conclusion…