adapt to decentralized resources
See original GitHub issueTo implement https://github.com/OCR-D/spec/pull/181, AFAICS we need:
- code to mix the
Processor.ocrd_tool['resources']
with the preinstalled centralized database inOcrdResourceManager
’s constructor and.load_resource_list
- code to adhere to
Processor.ocrd_tool['resource_locations']
in.resolve_resource
and.list_all_resources
- changes to the
ocrd_validators.resource_list_validator
, specifically itsresource_list.schema.yml
(subtypes oftype
) - changes to the
ocrd_validators.ocrd_tool_validator
, specifically itsocrd_tool.schema.yml
by updatingrepo/spec
Did I forget anything?
EDIT
- aid in migrating user
ocrd/resources.yml
from old syntax to new one - update documentation (spec, guides, wiki)
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
How decentralized systems can help rebuild local communities
Cutting-edge technology makes the local management of data and resources as efficient as central management. Local communities can again ...
Read more >Adapting, Adopting, and Succeeding in a Decentralized ...
Join a discussion on the exponential evolution of clinical trials, uncover trends observed across the industry, and hear how leading ...
Read more >What is Decentralization in Blockchain? - Amazon AWS
Benefits of decentralization · Provides a trustless environment · Improves data reconciliation · Reduces points of weakness · Optimizes resource distribution.
Read more >Stepping up the decentralization of clinical trials - McKinsey
The COVID-19 pandemic has catalyzed the adoption of decentralized clinical trials while highlighting the critical benefits of virtual trials ...
Read more >Decentralized governance of adaptation to climate change in ...
Abstract. This chapter discusses the concept of political ecology in climate change management in the context of decentralized natural resource governance in ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ve tested it and including all the spurious results like
ocrd-make
,ocrd-import
etc.,ocrd resmgr discover
takes at most 90 seconds for a fairly complete ocrd_all installation. Since we can model the code in such a way that it is conservative with what is searched.If we do it completely dynamically then yes, that would be the only case. And we save ourselves future headaches, if we don’t try to serialize the resource descriptions to
resource_list.yml
(deduplication, updated processors etc. it’s likely a nightmare).I took the liberty of checking tasks that have been solved by now above.
seems complete: https://github.com/OCR-D/core/blob/ceb9992ab113f1b3933b2af33819ceeef0f085b7/ocrd/ocrd/resource_manager.py#L105-L115
resolve_resource
/list_resource_candidates
does not adhere toresource_locations
yet: https://github.com/OCR-D/core/blob/ceb9992ab113f1b3933b2af33819ceeef0f085b7/ocrd_utils/ocrd_utils/os.py#L97-L107Also, as discussed in ocrd_tesserocr, we still need to handle resource location
module
correctly.list_all_resources
seems complete though: https://github.com/OCR-D/core/blob/ceb9992ab113f1b3933b2af33819ceeef0f085b7/ocrd_utils/ocrd_utils/os.py#L115-L120seems complete: https://github.com/OCR-D/core/blob/ceb9992ab113f1b3933b2af33819ceeef0f085b7/ocrd_validators/ocrd_validators/constants.py#L22-L28 and https://github.com/OCR-D/core/blob/master/ocrd_validators/ocrd_validators/resource_list_validator.py and https://github.com/OCR-D/core/blob/6196e3bb6cb78f4f55d65228289425b344ab0483/ocrd/ocrd/resource_manager.py#L88
seems complete: https://github.com/OCR-D/core/blob/ceb9992ab113f1b3933b2af33819ceeef0f085b7/ocrd_validators/ocrd_validators/ocrd_tool.schema.yml#L168-L209
seems complete: https://github.com/OCR-D/core/blob/4148a88ea64de56114cb6ce24fcee216d563c61b/ocrd/ocrd/cli/resmgr.py#L161-L195
already tracked by https://github.com/OCR-D/spec/issues/193
Not sure about the guides and Wiki yet. I did find the section about resmgr download syntax to be out of date though.