cul-it / qa_server

A rails app with questioning authority gem installed to serve as a QA server.
Apache License 2.0
1 stars 6 forks source link

Add ISNI Direct lookup. #390

Open sfolsom opened 8 months ago

sfolsom commented 8 months ago

In order to pull this lookup off, we'd have to use the free SRU API described here: https://isni.oclc.org:2443/isni/docs/isni-sru-search-api-guidelines.pdf (searching the name keyword), and then map the XML to the QA response.

< mainName > values = "label": "Value" < forename > and < surname > values concatenated = "label": "Concatenated string" results with < personalName > = "type": "Person" < organisationType > values = "type": "Value"

chrisrlc commented 7 months ago

For next time:

Search endpoint: https://isni.oclc.org/sru/DB=1.2/

A couple of sample queries using name keyword:

RDF response format nested in SRU SearchRetrieveResponse XML (multiple / per ??): https://isni.oclc.org/sru/DB=1.2/?query=pica.nw+%3D+%22maloy%22&version=1.1&operation=searchRetrieve&recordSchema=isni-rdf&maximumRecords=10&startRecord=1&sortKeys=none&x-info-5-mg-requestGroupings=none

Note maximumRecords keyword and recordSchema parameters. Also can try experimenting with sortKeys.

Default ISNI basic response format in SRU SearchRetrieveResponse XML (only 1 / per ): https://isni.oclc.org/sru/DB=1.2/?query=pica.nw+%3D+%22maloy%22&operation=searchRetrieve&recordSchema=isni-b

Other documentation: https://www.loc.gov/standards/sru/sru-1-1.html https://isni.org/page/linked-data/