80 likes | 232 Views
The project. Information Retrieval A.A. 2011-12 P. Ferragina – Dipartimento di Informatica, University of Pisa –. AIRPIM. Social network for digital cards www.airpim.com Simple RESTful API in JSON format JSON library http://json.org
E N D
The project Information Retrieval A.A. 2011-12 P. Ferragina – Dipartimento di Informatica, University of Pisa –
AIRPIM • Social network for digitalcards • www.airpim.com • Simple RESTful API in JSON format • JSON libraryhttp://json.org • Apache HTTP client library in JAVA http://hc.apache.org • Advanced REST client application (Chromeapp) https://chrome.google.com/webstore/detail/ahdjpgllmllekelefacdedbjnjaplfjn
API - Login http://www.airpim.com/login • POST • HTTP authentication • Username = unipi2011 • Password = unipi2011
API - Schema http://www.airpim.com/me/schema?keys=concepts • GET • list allavailableattributes for digitalcards in the network
API - Search http://www.airpim.com/it_IT/me/search • GET • Search for cards. Parameters: • q=<query> (q=* to list all) • s=<number> (start index) • l=<number>(number of returnedcards) • slots=<comma-separated list of attributes> (additional information to include in the resp) • First 12 cards, with identity and company infos: http://www.airpim.com/it_IT/me/search?q=*&s=0&l=12&slots=personidentity,companyidentity
API – Card details http://www.airpim.com/it_IT/me/card/ • GET • Retrieveallattributes for a digital card • Append the __guid__attribute to the url with parameterdetails=1 • Detailsfor guid=4cbdfa3d77bc37968ec83e386b2611e0 http://www.airpim.com/it_IT/me/card/4cbdfa3d77bc37968ec83e386b2611e0?details=1
API – Other cards • Use the search API with the query: q=othercards%3D<guid> • Retrieve all cards owned by that <guid> • Other cards for guid=2b7e8896b7ef3c44c2d7d59adce611df http://www.airpim.com/it_IT/me/search?q=othercards%3D2b7e8896b7ef3c44c2d7d59adce611df
Tracks GOAL: Improve the searchexperience • Enrich a card with some text drawn from web • Deploy thesaurus to expandqueries • Social-network based ranking of searchresults • …