1 / 13

Sometimes, I just want to count things

Sometimes, I just want to count things. Peter Millington SHERPA Technical Development Officer CRC, University of Nottingham peter.millington@nottingham.ac.uk. Actually, that’s a lie. Just give me numbers for Open DOAR No. of items in ~1,800 repositories Growth rates

nadine
Download Presentation

Sometimes, I just want to count things

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Sometimes,I just want to count things Peter Millington SHERPA Technical Development Officer CRC, University of Nottingham peter.millington@nottingham.ac.uk

  2. Actually, that’s a lie • Just give me numbers for OpenDOAR • No. of items in ~1,800 repositories • Growth rates • Number of full texts v metadata-only records • More generally (any database or resource) • No. of records in the database • No. of records by year, month, etc. • No. of records by category

  3. How difficult can it be? • Screen scraping? – Uh-uh-uh • OAI-PMH – counting identifiers • BIG files – e.g. DSpace – Time out! • Iterative chunks – e.g. EPrints – Yawn • ‘completeListSize’ argument – If only… • ORE is no better – Whatever… • select count(*) from TABLE; – Duh! • So back to screen scraping – Sigh

  4. It should be as easy as …one… • Simplicity • Single SQL SELECT statement • Anything more is too complex and so too slow • Single Call/File • No iteration • Single simple schema • XML (+ optional JSON, and other renditions)

  5. …two… Target Performance - Rules of Two <= 0.2 seconds • SQL execution <= 2 seconds • Rendering the output file <= 20 • Data points

  6. …three Maximum limits - Rules of Twenty (?) <= 2 seconds • SQL execution <= 20 seconds • Rendering the output file <= 200 • Data points

  7. Actions speak louder than words • Protocol for Statistical Harvesting (PSH) • Base URL + verb + optional arguments • Specification & Examples • http://opendoar.org/demos/psh_prototype.php • Example Base URL: • http://opendoar.org/demos/psh.php

  8. Simplest case - [base url]?verb=Count <psh> <responseDate>2011-02-11T00:05:26Z</responseDate> <requestverb="Count"> http://www.opendoar.org/demos/psh.php </request> <CountcountType="allItems"> <header> <setType/> <setSpec/> <setName/> <datestamp/> <numItems>1860</numItems> </header> </Count> </psh>

  9. Optional Count Arguments • &countType – ‘units’ for counts • e.g. records, repositories, groups, genera, etc • &setType – some sort of category • e.g. subject, region, social class, etc. • &dateUnit • e.g. decade, year, month • &dateType • e.g. Date added, updated, performed, extinct, etc.

  10. Breakdown by year added <psh> <responseDate>2011-02-11T00:36:24Z</responseDate> <requestverb="Count">http://www.opendoar.org/demos/psh.php</request> <CountcountType="allItems"dateType="dateAdded"> <header> <setType/> <setSpec/> <setName/> <datestamp>2008</datestamp> <numItems>298</numItems> </header> <header> <setType/> <setSpec/> <setName/> <datestamp>2009</datestamp> <numItems>278</numItems> </header>

  11. Other verbs • Verbs for listing available argument values • ListSetTypes • ListDateUnits • ListDateTypes • ListCountTypes • Help – Technical help • Identify – Information about the resource

  12. Some datasets to play with • OpenDOAR – open access repositories • http://opendoar.org/demos/psh.php • SHERPA/RoMEO – Publishers’ policies • http://www.sherpa.ac.uk/romeo/psh.php • Folk Play Scripts database • http://mastermummers.org/scripts/psh.php • Folk Play Groups & Events • http://mastermummers.org/groups/psh.php

  13. How could this be improved?http://opendoar.org/demos/psh_prototype.phppeter.millington@nottingham.ac.uk

More Related