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
– Apache HTTP client library in JAVA http://hc.apache.org
– Advanced REST client application (Chrome app)
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 all available attributes for digital cards 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 returned cards) – 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
• Retrieve all attributes for a digital card
• Append the __guid__ attribute to the url with parameter details=1
• Details for guid=4cbdfa3d77bc37968ec83e386b2611e0 http://
www.airpim.com/it_IT/me/card/4cbdfa3d77bc37968ec83e386b2 611e0?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%3D2b7 e8896b7ef3c44c2d7d59adce611df
Tracks
GOAL: Improve the search experience
• Enrich a card with some text drawn from web
• Deploy thesaurus to expand queries
• Social-network based ranking of search results
• …