From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/29328 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Martin Fenner Newsgroups: gmane.text.pandoc Subject: Re: Citations: lookup online and fetch metadata? Date: Sun, 3 Oct 2021 05:27:20 -0700 (PDT) Message-ID: <145362a0-b797-40f7-8610-9dd3b5e42f20n@googlegroups.com> References: <86fd3cd3-ada6-406a-9aa6-7929aeb254fen@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_3580_1465119516.1633264040247" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9463"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBC6KTIOEQEEBBKOD42FAMGQEP5THOII-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sun Oct 03 14:27:23 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oo1-f61.google.com ([209.85.161.61]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mX0aR-0002Ft-E1 for gtp-pandoc-discuss@m.gmane-mx.org; Sun, 03 Oct 2021 14:27:23 +0200 Original-Received: by mail-oo1-f61.google.com with SMTP id m10-20020a4a240a000000b002adae1d3d06sf11179558oof.9 for ; Sun, 03 Oct 2021 05:27:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:date:from:to:message-id:in-reply-to:references:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=M8WEOy7BYQjj+mAOhN861nasg0a97unUa2nqCzGvWCM=; b=GtxmUSpo9xVv9wE0mz+1Goyu4wr4qnSBg7iMaYX7bP1LvsY4k9yRfzdQXEMkEn59Aw ps1HDWvQr2nGjMpeXXxFoXVHMBYtsjkCLnQ9n+ZwhGGcRwCcXL1RAnXsUi75RThq50fw wIZ4AimLjjISeOh7ToRKDXrnuu0hyiIehRv8ILqIjHydtEdM60Mi5VeuWaF7i1CGmoRd d25/26iQF1nVTLB+29cTiMH649XW5wsHzXgI/LJTFwAcjlJZvLSGhZKOBMR57hPnS/aj eBHXfocbUPIUXYUvVlcX3vUWtqaJDXCxlgAwzEwbP22bd9sL3fK5TrMK5nORyv2t1IXt i7uA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=martinfenner-org.20210112.gappssmtp.com; s=20210112; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=M8WEOy7BYQjj+mAOhN861nasg0a97unUa2nqCzGvWCM=; b=ORe1YmQ7g1DC1159c9gXdeNtcble+w2cgxBlQ4/l4g/DFGj7jPiZaZNEcL9r4G7r3N qzIMIj+iswZdV8OjRrQbMi/HPIHEV25UAjPiRDGBmeQElijas7eUZFMxUWso3kU8qM8n ZNEn2vtWkQHYJmGVjhwVZDcGLp5M5NO28WTD4XTXuj9i6TJje3OLlhJP6UzDyR+ds/4E C5/SRvkgT+YTFajr3aW/FxcOqxkpFfIZDp9+M+5ZEKYawpVcXZl97DmRV/N/Zte8VqDG kGRgm8m+2JbHl6XhhjJcSWTCEVf9AqEyG8z5s9nIDzSGzwyk/PvZhuu+AWhk9kN/Df5y ldrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:date:from:to:message-id:in-reply-to :references:subject:mime-version:x-original-sender:reply-to :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=M8WEOy7BYQjj+mAOhN861nasg0a97unUa2nqCzGvWCM=; b=Ted8a2Io4OtvbcxZL3ZHOsVeoBt05WB98HSaiwpngt4kitj8bWNy7nXKRTlxY8gYKb zHNyT+2yURqs8Y65rSkxfLq/BleO0wIDGQMxv8wa16mK8KLswWNN3MDYknNJHZBJRFbQ ImuKQOCHIO/+GOuYTLY8818AUXEv4MriixRaUuBHZUwJzMMGgZrJcgY2x2YP0bgfgXqo mFxSW6uyQ56MlN2AYs5nLfqnk033Be/tIj200Boc75kHcuiWOWuddhKJydQrQudb1SCx wt7oVR+Qgr+aOwho5E5J0oJ2vmmKT+XV/T0JyTQtb13NUT8LYdAZu2zMoHVd8LOmJ+rv iGVA== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM530YFDo6y7uLca6Dfxak4ZPX4P6aX1ZyZWhKBJ2D0Wfj775VvN2O 4oxzsz+blLo4jtRyAY/UYnE= X-Google-Smtp-Source: ABdhPJyqQenw35x9Po1MKLd/F2f0U1NbdKpeqrh/eIm8Lr0qLSq7FV5nlDyHip9ENGuRgVyneWWGYQ== X-Received: by 2002:a05:6808:f88:: with SMTP id o8mr10520134oiw.49.1633264042398; Sun, 03 Oct 2021 05:27:22 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:aca:1010:: with SMTP id 16ls4223586oiq.0.gmail; Sun, 03 Oct 2021 05:27:21 -0700 (PDT) X-Received: by 2002:aca:110e:: with SMTP id 14mr10231916oir.18.1633264040893; Sun, 03 Oct 2021 05:27:20 -0700 (PDT) In-Reply-To: X-Original-Sender: mf-+Z+QprJ1jbpwFuiNLMe2Ig@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.io gmane.text.pandoc:29328 Archived-At: ------=_Part_3580_1465119516.1633264040247 Content-Type: multipart/alternative; boundary="----=_Part_3581_827287714.1633264040247" ------=_Part_3581_827287714.1633264040247 Content-Type: text/plain; charset="UTF-8" I suggest to not call the Crossref REST API directly, but instead use DOI content negotiation, as there are a total of 11 DOI registration agencies (although Crossref is by far the largest one). For example (using curl): curl -LH "Accept: application/x-bibtex" https://doi.org/10.1126/science.169.3946.635. More info at https://citation.crosscite.org/docs.html Best, Martin On Saturday, October 2, 2021 at 9:31:39 PM UTC+2 John MacFarlane wrote: > > > This might interest you: > https://github.com/pandoc/lua-filters/tree/master/doi2cite > Use DOIs as cite keys and automatically fetch the data. > > Ilia Zaihcuk writes: > > > Hi all, > > > > Is it possible, within the "pandoc'osphere", to fetch more metadata > about a > > given citation from some online resource? > > > > Inspired by zbib.org (based on zotero ). > Given, > > for example, the simple search string "*Probability Neglect 2002*", the > > service returns as much as > > > > @article{sunstein_probability_2002, > > title = {Probability {Neglect}: {Emotions}, {Worst} {Cases}, and > > {Law}}, > > volume = {112}, > > issn = {00440094}, > > shorttitle = {Probability {Neglect}}, > > url = {https://www.jstor.org/stable/1562234?origin=crossref}, > > doi = {10.2307/1562234}, > > number = {1}, > > urldate = {2021-10-02}, > > journal = {The Yale Law Journal}, > > author = {Sunstein, Cass R.}, > > month = oct, > > year = {2002}, > > pages = {61}, > > } > > > > I see a lot of integrations with packages like citeproc-hs > > , zotxt > > , zotero-better-bibtex > > , etc., but > all > > of them are talking primarily about managing and formatting a > preexisting > > bibliography and I've seen *no* mention of anything about fetching *new > > data*. > > > > This can be very useful when citations in the source files are missing > > parts, or need to be converted into a format which requires more data > (e.g. > > input is only , but output requires DOI). > > > > Best, > > > > Ilia > > > > -- > > You received this message because you are subscribed to the Google > Groups "pandoc-discuss" group. > > To unsubscribe from this group and stop receiving emails from it, send > an email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To view this discussion on the web visit > https://groups.google.com/d/msgid/pandoc-discuss/86fd3cd3-ada6-406a-9aa6-7929aeb254fen%40googlegroups.com > . > -- You received this message because you are subscribed to the Google Groups "pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/145362a0-b797-40f7-8610-9dd3b5e42f20n%40googlegroups.com. ------=_Part_3581_827287714.1633264040247 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I suggest to not call the Crossref REST API directly, but instead use DOI c= ontent negotiation, as there are a total of 11 DOI registration agencies (a= lthough Crossref is by far the largest one). For example (using curl): curl= -LH "Accept: application/x-bibtex" https://doi.org/10.1126/science.169.394= 6.635. More info at https://citation.crosscite.org/docs.html

<= /div>
Best, Martin

On Saturday, October 2, 2021 at 9:31:39 PM UTC+2= John MacFarlane wrote:


This might interest you:
https://github.com/pandoc/lua-filters/tree/mast= er/doi2cite
Use DOIs as cite keys and automatically fetch the data.

Ilia Zaihcuk <zoi...@gmai= l.com> writes:

> Hi all,
>
> Is it possible, within the "pandoc'osphere", to fetc= h more metadata about a=20
> given citation from some online resource?
>
> Inspired by zbib.org (based on zotero <https://www.zotero.org/>). Given,=20
> for example, the simple search string "*Probability Neglect 2= 002*", the=20
> service returns as much as
>
> @article{sunstein_probability_2002,=20
> title =3D {Probability {Neglect}: {Emotions}, {Worst} {Cases},= and=20
> {Law}},=20
> volume =3D {112},=20
> issn =3D {00440094},=20
> shorttitle =3D {Probability {Neglect}},=20
> url =3D {https://www.jstor.org/stable/1562234= ?origin=3Dcrossref},=20
> doi =3D {10.2307/1562234},=20
> number =3D {1},=20
> urldate =3D {2021-10-02},=20
> journal =3D {The Yale Law Journal},=20
> author =3D {Sunstein, Cass R.},=20
> month =3D oct,=20
> year =3D {2002},=20
> pages =3D {61},=20
> }
>
> I see a lot of integrations with packages like citeproc-hs=20
> <https://hackage.haskell.org/package/citeproc-hs>, zot= xt=20
> <https://github.com/egh/= zotxt>, zotero-better-bibtex=20
> <https://retorque.re/zotero-better-bi= btex/exporting/pandoc/>, etc., but all=20
> of them are talking primarily about managing and formatting a pree= xisting=20
> bibliography and I've seen *no* mention of anything about fetc= hing *new=20
> data*.
>
> This can be very useful when citations in the source files are mis= sing=20
> parts, or need to be converted into a format which requires more d= ata (e.g.=20
> input is only <Name, Year, Title>, but output requires DOI).
>
> Best,
>
> Ilia
>
> --=20
> You received this message because you are subscribed to the Google= Groups "pandoc-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, = send an email to pandoc-discus..= .@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/86fd= 3cd3-ada6-406a-9aa6-7929aeb254fen%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d= /msgid/pandoc-discuss/145362a0-b797-40f7-8610-9dd3b5e42f20n%40googlegroups.= com.
------=_Part_3581_827287714.1633264040247-- ------=_Part_3580_1465119516.1633264040247--