	
	<span class="Z3988" title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Adc&amp;rfr_id=info%3Asid%2Focoins.info%3Agenerator&amp;rft.title=MIC-06-3+OpenContext%2C+iSamples%2C+Solr%2C+OpenAPI+consumering+clients&amp;rft.aulast=Yee&amp;rft.aufirst=Raymond&amp;rft.subject=Uncategorized&amp;rft.source=Hypotyposis+on+a+Good+Day&amp;rft.date=2023-10-25&amp;rft.type=blogPost&amp;rft.format=text&amp;rft.identifier=https://hypotyposis.net/blog/2023/10/25/mic-06-3-opencontext-isamples-solr-openapi-consumering-clients/&amp;rft.language=English"></span>
	
	<span class="Z3988" title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Adc&amp;rfr_id=info%3Asid%2Focoins.info%3Agenerator&amp;rft.title=MIC-06-3+OpenContext%2C+iSamples%2C+Solr%2C+OpenAPI+consumering+clients&amp;rft.aulast=Yee&amp;rft.aufirst=Raymond&amp;rft.subject=Uncategorized&amp;rft.source=Hypotyposis+on+a+Good+Day&amp;rft.date=2023-10-25&amp;rft.type=blogPost&amp;rft.format=text&amp;rft.identifier=https://hypotyposis.net/blog/2023/10/25/mic-06-3-opencontext-isamples-solr-openapi-consumering-clients/&amp;rft.language=English"></span>
{"id":1601,"date":"2023-10-25T22:20:05","date_gmt":"2023-10-26T05:20:05","guid":{"rendered":"https:\/\/hypotyposis.net\/blog\/?p=1601"},"modified":"2023-10-25T22:20:05","modified_gmt":"2023-10-26T05:20:05","slug":"mic-06-3-opencontext-isamples-solr-openapi-consumering-clients","status":"publish","type":"post","link":"https:\/\/hypotyposis.net\/blog\/2023\/10\/25\/mic-06-3-opencontext-isamples-solr-openapi-consumering-clients\/","title":{"rendered":"MIC-06-3 OpenContext, iSamples, Solr, OpenAPI consumering clients"},"content":{"rendered":"<p>I have code in <a href=\"https:\/\/github.com\/rdhyee\/open-context-jupyter\/blob\/ee9bae594bb6a7bcc951425fd58e10804f1ad369\/notebooks\/OC%20Explorations.ipynb\">open-context-jupyter\/notebooks\/OC Explorations.ipynb at ee9bae594bb6a7bcc951425fd58e10804f1ad369 \u00b7 rdhyee\/open-context-jupyter<\/a> for querying <code>https:\/\/iscaws.isample.xyz\/isamples_central\/thing\/select<\/code> using the <code>requests<\/code> library. I\\'m wondering whether it\\'d be useful to use 1)  <a href=\"https:\/\/github.com\/django-haystack\/pysolr\">django-haystack\/pysolr: Pysolr --- Python Solr client<\/a> (whose maintainer is [busy but still on the case](Is there a new release for pysolr? \u00b7 Issue <a rel=\"tag\" class=\"hashtag u-tag u-category\" href=\"https:\/\/hypotyposis.net\/blog\/tag\/373\/\">#373<\/a> \u00b7 django-haystack\/pysolr)) or 2) one of the openapi client generators to ingest\u00a0<a href=\"https:\/\/iscaws.isample.xyz\/isamples_central\/openapi.json\">https:\/\/iscaws.isample.xyz\/isamples_central\/openapi.json<\/a>?  If 2), it seems like there are at least three actively maintained libraries to choose from (<code>openapi-core<\/code>,\u00a0<code>openapi-python-client<\/code>, and\u00a0<code>apispec<\/code>):<\/p>\n<ul>\n<li><a href=\"https:\/\/github.com\/python-openapi\/openapi-core\">python-openapi\/openapi-core: Openapi-core is a Python library that adds client-side and server-side support for the OpenAPI v3.0 and OpenAPI v3.1 specification.<\/a> <\/li>\n<li><a href=\"https:\/\/github.com\/openapi-generators\/openapi-python-client\">openapi-generators\/openapi-python-client: Generate modern Python clients from OpenAPI<\/a> <\/li>\n<li><a href=\"https:\/\/github.com\/marshmallow-code\/apispec\">marshmallow-code\/apispec: A pluggable API specification generator. Currently supports the OpenAPI Specification (f.k.a. the Swagger specification).<\/a> <\/li>\n<\/ul>\n<p>Any guidance about which might be the fruitful option?<\/p>\n<p>What I decided after talking to a colleague about this issue: I think I'll keep going with my simple requests approach as I get my brain warmed up again with solr and stay away from the code-generator options for now (and maybe for a while!)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have code in open-context-jupyter\/notebooks\/OC Explorations.ipynb at ee9bae594bb6a7bcc951425fd58e10804f1ad369 \u00b7 rdhyee\/open-context-jupyter for querying https:\/\/iscaws.isample.xyz\/isamples_central\/thing\/select using the requests library. I\\&#8217;m wondering whether it\\&#8217;d be useful to use 1) django-haystack\/pysolr: Pysolr &#8212; Python Solr client (whose maintainer is [busy but still on the &hellip; <a href=\"https:\/\/hypotyposis.net\/blog\/2023\/10\/25\/mic-06-3-opencontext-isamples-solr-openapi-consumering-clients\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":3,"activitypub_interaction_policy_quote":"","activitypub_status":"","footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[1],"tags":[149],"class_list":["post-1601","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-149"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p7I6qs-pP","jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/hypotyposis.net\/blog\/wp-json\/wp\/v2\/posts\/1601","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hypotyposis.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hypotyposis.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hypotyposis.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hypotyposis.net\/blog\/wp-json\/wp\/v2\/comments?post=1601"}],"version-history":[{"count":1,"href":"https:\/\/hypotyposis.net\/blog\/wp-json\/wp\/v2\/posts\/1601\/revisions"}],"predecessor-version":[{"id":1602,"href":"https:\/\/hypotyposis.net\/blog\/wp-json\/wp\/v2\/posts\/1601\/revisions\/1602"}],"wp:attachment":[{"href":"https:\/\/hypotyposis.net\/blog\/wp-json\/wp\/v2\/media?parent=1601"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hypotyposis.net\/blog\/wp-json\/wp\/v2\/categories?post=1601"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hypotyposis.net\/blog\/wp-json\/wp\/v2\/tags?post=1601"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}