-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft of CLI/API design #1
Comments
What's the reason for a purpose specific CLI for documents? So I can't manage other types of content? That can't be right. |
The new ISO 19135 already provides the underlying model for concept class, concept, register item class and register item. These are the concept classes to implement:
These are the register item classes to implement:
I.e you need to create data definitions for these things above. We need a generic way of handling these, not hard coding their attributes in code. Please refer to how data definitions are expressed and implemented in lutaml-model. |
Bad name I guess. It's a temporary name. Lemme change that. |
Ruby Paneron Register currently only has concepts of register item class and register item, which as I understand, realize "concept classes" and "concepts" from ISO 19135. If we want to keep the generality of the tools, my thoughts go to something like this: > ctl --concept-model-map ./document_with_stages_mapping_to_register_model.lutaml \
init document_register
> cd document_register
> ctl --concept-model-map ../document_with_stages_mapping_to_register_model.lutaml \
init-dataset my-dataset
> ctl --concept-model-map ../document_with_stages_mapping_to_register_model.lutaml \
upload my-dataset/Doc-00001 files... Does this sound like the right direction? EDIT: I am getting some similar vibe from here: lutaml/lutaml-model#165 |
Further ideas & goals
|
This issue is to gather inputs from potential users of this tool.
Assuming the CLI is called
doctl
:Initialize a documents register
Set register metadata
Initialize dataset
A dataset groups together a set of documents.
It is up to the documents register user to decide which documents to be grouped as one.
One document can only belong to one dataset.
List datasets
Set dataset metadata
Upload a new document
Under the hood, UNIQUE_EXTERNAL_DOCUMENT_ID will be modelled as an Item Class (ISO 19135).
Modify document metadata
List document versions
List document files of a particular version
Add a new document version
> doctl upload my-documents/UNIQUE_EXTERNAL_DOCUMENT_ID FILES...
Override a document version
> doctl upload --force my-documents/UNIQUE_EXTERNAL_DOCUMENT_ID#VERSION_STRING FILES...
Remove a document version
> doctl rm my-documents/UNIQUE_EXTERNAL_DOCUMENT_ID#VERSION_STRING
Getting help
The text was updated successfully, but these errors were encountered: