* Citations: lookup online and fetch metadata?
@ 2021-10-02 9:04 Ilia Zaihcuk
[not found] ` <86fd3cd3-ada6-406a-9aa6-7929aeb254fen-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
0 siblings, 1 reply; 5+ messages in thread
From: Ilia Zaihcuk @ 2021-10-02 9:04 UTC (permalink / raw)
To: pandoc-discuss
[-- Attachment #1.1: Type: text/plain, Size: 1826 bytes --]
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 <https://www.zotero.org/>). 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
<https://hackage.haskell.org/package/citeproc-hs>, zotxt
<https://github.com/egh/zotxt>, zotero-better-bibtex
<https://retorque.re/zotero-better-bibtex/exporting/pandoc/>, 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 <Name, Year, Title>, 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-discuss+unsubscribe-/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.
[-- Attachment #1.2: Type: text/html, Size: 2725 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Citations: lookup online and fetch metadata?
[not found] ` <86fd3cd3-ada6-406a-9aa6-7929aeb254fen-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2021-10-02 19:31 ` John MacFarlane
[not found] ` <m2ilyfmdf7.fsf-d8241O7hbXoP5tpWdHSM3tPlBySK3R6THiGdP5j34PU@public.gmane.org>
0 siblings, 1 reply; 5+ messages in thread
From: John MacFarlane @ 2021-10-02 19:31 UTC (permalink / raw)
To: Ilia Zaihcuk, pandoc-discuss
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 <zoickx-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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 <https://www.zotero.org/>). 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
> <https://hackage.haskell.org/package/citeproc-hs>, zotxt
> <https://github.com/egh/zotxt>, zotero-better-bibtex
> <https://retorque.re/zotero-better-bibtex/exporting/pandoc/>, 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 <Name, Year, Title>, 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-discuss+unsubscribe-/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.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Citations: lookup online and fetch metadata?
[not found] ` <m2ilyfmdf7.fsf-d8241O7hbXoP5tpWdHSM3tPlBySK3R6THiGdP5j34PU@public.gmane.org>
@ 2021-10-03 12:27 ` Martin Fenner
[not found] ` <145362a0-b797-40f7-8610-9dd3b5e42f20n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2023-01-06 13:01 ` J
1 sibling, 1 reply; 5+ messages in thread
From: Martin Fenner @ 2021-10-03 12:27 UTC (permalink / raw)
To: pandoc-discuss
[-- Attachment #1.1: Type: text/plain, Size: 3060 bytes --]
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 <zoi...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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 <https://www.zotero.org/>).
> 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
> > <https://hackage.haskell.org/package/citeproc-hs>, zotxt
> > <https://github.com/egh/zotxt>, zotero-better-bibtex
> > <https://retorque.re/zotero-better-bibtex/exporting/pandoc/>, 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 <Name, Year, Title>, 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.
[-- Attachment #1.2: Type: text/html, Size: 6344 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Citations: lookup online and fetch metadata?
[not found] ` <145362a0-b797-40f7-8610-9dd3b5e42f20n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2021-10-03 17:46 ` John MacFarlane
0 siblings, 0 replies; 5+ messages in thread
From: John MacFarlane @ 2021-10-03 17:46 UTC (permalink / raw)
To: Martin Fenner, pandoc-discuss
Great idea -- maybe put up an issue on
https://github.com/pandoc/lua-filters so we don't lose track
of the suggestion? Or even better a PR!
Martin Fenner <mf-+Z+QprJ1jbpwFuiNLMe2Ig@public.gmane.org> writes:
> 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 <zoi...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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 <https://www.zotero.org/>).
>> 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
>> > <https://hackage.haskell.org/package/citeproc-hs>, zotxt
>> > <https://github.com/egh/zotxt>, zotero-better-bibtex
>> > <https://retorque.re/zotero-better-bibtex/exporting/pandoc/>, 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 <Name, Year, Title>, 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.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Citations: lookup online and fetch metadata?
[not found] ` <m2ilyfmdf7.fsf-d8241O7hbXoP5tpWdHSM3tPlBySK3R6THiGdP5j34PU@public.gmane.org>
2021-10-03 12:27 ` Martin Fenner
@ 2023-01-06 13:01 ` J
1 sibling, 0 replies; 5+ messages in thread
From: J @ 2023-01-06 13:01 UTC (permalink / raw)
To: pandoc-discuss
[-- Attachment #1.1: Type: text/plain, Size: 2849 bytes --]
Can we control the generation scheme when using
https://github.com/pandoc/lua-filters/tree/master/doi2cite ? For example,
last name of the first author - year - title ?
On Sunday, October 3, 2021 at 3:31:39 AM UTC+8 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 <zoi...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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 <https://www.zotero.org/>).
> 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
> > <https://hackage.haskell.org/package/citeproc-hs>, zotxt
> > <https://github.com/egh/zotxt>, zotero-better-bibtex
> > <https://retorque.re/zotero-better-bibtex/exporting/pandoc/>, 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 <Name, Year, Title>, 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/e0fcc7b2-906e-494b-9335-abb203768725n%40googlegroups.com.
[-- Attachment #1.2: Type: text/html, Size: 6142 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2023-01-06 13:01 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-02 9:04 Citations: lookup online and fetch metadata? Ilia Zaihcuk
[not found] ` <86fd3cd3-ada6-406a-9aa6-7929aeb254fen-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2021-10-02 19:31 ` John MacFarlane
[not found] ` <m2ilyfmdf7.fsf-d8241O7hbXoP5tpWdHSM3tPlBySK3R6THiGdP5j34PU@public.gmane.org>
2021-10-03 12:27 ` Martin Fenner
[not found] ` <145362a0-b797-40f7-8610-9dd3b5e42f20n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2021-10-03 17:46 ` John MacFarlane
2023-01-06 13:01 ` J
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).