Fetcher Infrastructure for URL-based fetching
Follow-up to https://github.com/JabRef/jabref/pull/16435 / issue #15411
- URL should be routed somehow to the new infrastructure
- If URL is an ID, use ID-based fetcher
!! Look at implementation of Web Search Panel on the left
Test cases
- http://dx.doi.org/10.1.1.99.3548
- https://www.semanticscholar.org/paper/Logic-LangChain%3A-Translating-Natural-Language-to-Lalwani-Lunawat/2ad8dbc163ce289e23e9c02b324c82d9c2fe8190
- https://api.semanticscholar.org/CorpusID:269305101
- https://dl.acm.org/doi/epdf/10.1145/3651640.3651646
- https://gi-radar.de/397-coding-unterstuetzung-im-lauf-der-zeit/ -- should be implemented as new fetcher
/assign-me
👋 Hey @hello-ryuzaki, thank you for your interest in this issue! 🎉
We're excited to have you on board. Start by exploring our Contributing guidelines, and set up your local development workspace by following the steps in our workspace setup guidelines to get started smoothly.
For questions on JabRef functionality, you can consult the JabRef Guru. For questions related to the codebase, please start using DeepWiki.
In case you encounter failing tests during development, please check our developer FAQs!
Still facing issues or having more questions? Feel free to ask here on GitHub or on JabRef's Gitter chat. Please don't hesitate to open a (draft) pull request early on to show the direction you are heading towards if unsure.
Happy coding! 🚀
@koppor
Planning the routing as:
- Identifier.from(url) → matching ID-based fetcher (covers the ACM DOI link, and arXiv / SSRN / RFC / IACR URLs for free — those parsers already accept URLs)
- first UrlBasedFetcher whose isRecognizedUrl(url) returns true
- GenericUrlBasedFetcher as fallback
Modelling isRecognizedUrl on the existing Importer.isRecognizedFormat() — same package, consumed the same way by ImportFormatReader. Does that match what you had in mind?
Also: http://dx.doi.org/10.1.1.99.3548 isn't a valid DOI (CiteSeerX ID; the link 404s) and matches none of JabRef's DOI patterns. Should that fall back to Misc, or should a dx.doi.org host be forced to DoiFetcher so the user sees a real "DOI not found" error?
Should that fall back to Misc, or should a dx.doi.org host be forced to DoiFetcher so the user sees a real "DOI not found" error?
Fallback to misc
Modelling isRecognizedUrl on the existing Importer.isRecognizedFormat() — same package, consumed the same way by ImportFormatReader. Does that match what you had in mind?
What do you think? Did you think of other options?
Your text reads like AI-generated. Any own thoughts? - http://dontpastetheai.com/
⏰ Assignment Reminder
Hi @hello-ryuzaki, this is a friendly reminder about your assignment to this issue.
[!WARNING] This issue will be automatically unassigned in 4 days if there's no activity.
Remember that you can ask the JabRef Guru or DeepWiki about anything regarding JabRef. Additionally, our contributing guide has hints on creating a pull request and a link to our Gitter chat.
How to keep your assignment
If you are working on it, you can prevent automatic unassignment by:
- Submitting a draft pull request with your progress within 4 days
- Asking for the 📌 Pinned label if you need more time
We appreciate your contribution and are here to help if needed!
hiii threre is no activity on this issue if possible can i take this?
Hi @thesauravpoddar, I was a bit busy and didn’t get a chance to work on it. I’ll raise the PR by tomorrow EOD. Thank you for checking!
Hi @thesauravpoddar , I am not getting time to take up it this issue. You can pick it up. Sorry for inconvenience caused. Thank you!
Hi @thesauravpoddar , I am not getting time to take up it this issue. You can pick it up. Sorry for inconvenience caused. Thank you!
okay un-assign yourself
@hello-ryuzaki since you are not working on this can you please unassign yourself
@koppor can you assign it to me as @hello-ryuzaki is not going to work on this
⚠️ Issue Already Assigned
Hi @thesauravpoddar, this issue is currently assigned to @hello-ryuzaki.
[!NOTE] If no progress is made within ** days**, the issue will be automatically unassigned.
Options for contributors
- Wait for availability: The issue may become available if auto-unassigned
- Collaborate: You can ask the assignee if they want help
- Maintainer assistance: A maintainer can add you as co-assignee if appropriate
/unassign-me
@hello-ryuzaki has been unassigned from this issue.
/assign-me
Thank you for your continued work in JabRef. At this point, you probably already know the basics and the important links. If not, our contributing guidelines is the place you should go to.
At this point in time, you raised 4 pull request(s) of which 100% (4/4) have been merged.
⏰ Assignment Reminder
Hi @thesauravpoddar, this is a friendly reminder about your assignment to this issue.
[!WARNING] This issue will be automatically unassigned in 4 days if there's no activity.
Remember that you can ask the JabRef Guru or DeepWiki about anything regarding JabRef. Additionally, our contributing guide has hints on creating a pull request and a link to our Gitter chat.
How to keep your assignment
If you are working on it, you can prevent automatic unassignment by:
- Submitting a draft pull request with your progress within 4 days
- Asking for the 📌 Pinned label if you need more time
We appreciate your contribution and are here to help if needed!
So i am starting to work on this so far what i have understood(thinking out loud) is that when a url is given we have to extract DOI or ID and all such stuff and if they are present than route it to existing WebFetchers.getIdBasedFetchersfetchers otherwise to new GenericUrlBasedFetcher
📋 Assignment Update
Hi @thesauravpoddar, due to inactivity, you have been unassigned from this issue.
Next steps
If you still want to work on this:
- Submit a pull request showing your current state. You will be automatically assigned again.
- Ask a maintainer to assign you again.