From 8d1d63d52327553b6e0ba7cca7c87af7f3f49721 Mon Sep 17 00:00:00 2001 From: ml bonhomme <bonhomme@teklia.com> Date: Wed, 23 Oct 2024 15:58:12 +0000 Subject: [PATCH] Add endpoint to retrieve a worker version providing an Arkindex feature --- arkindex/documents/fixtures/data.json | 1154 ++++++++--------- .../management/commands/build_fixtures.py | 2 + arkindex/process/api.py | 41 +- arkindex/process/managers.py | 11 +- arkindex/process/tests/test_worker_types.py | 12 +- .../worker_versions/test_retrieve_feature.py | 85 ++ arkindex/process/tests/workers/test_list.py | 27 +- arkindex/project/api_v1.py | 2 + 8 files changed, 744 insertions(+), 590 deletions(-) create mode 100644 arkindex/process/tests/worker_versions/test_retrieve_feature.py diff --git a/arkindex/documents/fixtures/data.json b/arkindex/documents/fixtures/data.json index a9b0ac63be..b945f7526f 100644 --- a/arkindex/documents/fixtures/data.json +++ b/arkindex/documents/fixtures/data.json @@ -1,11 +1,11 @@ [ { "model": "process.worker", - "pk": "1c464396-2dd3-4c23-9e30-56dd413937b9", + "pk": "008fd560-4b34-45bd-8a4c-2b4be6ff94f0", "fields": { - "name": "File import", - "slug": "file_import", - "type": "a89c2fe1-ab5c-4175-91ec-a87a73f86033", + "name": "Recognizer", + "slug": "reco", + "type": "8bb21ad8-8e5c-4c4c-8539-78d27bb9a658", "description": "", "public": false, "archived": null, @@ -14,11 +14,11 @@ }, { "model": "process.worker", - "pk": "3971d458-2f31-4c99-b72f-733b0cd988f6", + "pk": "4a32f3f4-31bf-4abc-a7de-d8dbc322cc1b", "fields": { "name": "Worker requiring a GPU", "slug": "worker-gpu", - "type": "9f93d340-6864-46cc-8978-97479365a1a1", + "type": "e7d696c4-fd99-4737-a6c7-f36c8fd91052", "description": "", "public": false, "archived": null, @@ -27,11 +27,11 @@ }, { "model": "process.worker", - "pk": "65b1eb17-da90-4211-8879-3bb4e4f23536", + "pk": "4daaeda1-1aed-4147-b5b5-724d7e96047a", "fields": { "name": "Custom worker", "slug": "custom", - "type": "556e414d-6cdb-4c2a-a29f-a38f598fac96", + "type": "bb54b04a-41fb-470a-a82e-b9f8ad10f1f2", "description": "", "public": false, "archived": null, @@ -40,11 +40,11 @@ }, { "model": "process.worker", - "pk": "8be67c9c-3011-44b2-a9ee-06e1eb0ca66e", + "pk": "56f4410a-3ac1-4940-8b8b-2d46430a06e0", "fields": { - "name": "Elements Initialisation Worker", - "slug": "initialisation", - "type": "5324b2a7-c798-4b66-969c-33db945b4900", + "name": "Generic worker with a Model", + "slug": "generic", + "type": "8bb21ad8-8e5c-4c4c-8539-78d27bb9a658", "description": "", "public": false, "archived": null, @@ -53,24 +53,24 @@ }, { "model": "process.worker", - "pk": "a1c68983-2cbe-46f0-9e20-a9a5b1ba8942", + "pk": "bf56381e-a669-4e61-8d19-fc0e23171463", "fields": { - "name": "Generic worker with a Model", - "slug": "generic", - "type": "b85021ec-3474-4db3-b548-0851058fda41", + "name": "Elements Initialisation Worker", + "slug": "initialisation", + "type": "2bc36b5e-3ce8-4a4c-a4b0-49198356b251", "description": "", - "public": false, + "public": true, "archived": null, "repository_url": null } }, { "model": "process.worker", - "pk": "a38b99a7-43c6-4c9d-9626-bc678cea6e45", + "pk": "dd99bb98-ca21-4f62-90a0-e15ed088de3b", "fields": { "name": "Document layout analyser", "slug": "dla", - "type": "a3e4c651-a596-4e1f-912d-a6b2b79bd6da", + "type": "397f85ef-37fe-4f9e-9dbd-b02f4879db68", "description": "", "public": false, "archived": null, @@ -79,20 +79,20 @@ }, { "model": "process.worker", - "pk": "e7a84674-854f-4648-9426-47d4a349aeef", + "pk": "f0f5787d-3e41-4d16-aa56-b84f64103c12", "fields": { - "name": "Recognizer", - "slug": "reco", - "type": "b85021ec-3474-4db3-b548-0851058fda41", + "name": "File import", + "slug": "file_import", + "type": "736e9c86-b137-4933-b4f4-18d9e2f3bb8c", "description": "", - "public": false, + "public": true, "archived": null, "repository_url": null } }, { "model": "process.workertype", - "pk": "5324b2a7-c798-4b66-969c-33db945b4900", + "pk": "2bc36b5e-3ce8-4a4c-a4b0-49198356b251", "fields": { "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z", @@ -102,86 +102,90 @@ }, { "model": "process.workertype", - "pk": "556e414d-6cdb-4c2a-a29f-a38f598fac96", + "pk": "397f85ef-37fe-4f9e-9dbd-b02f4879db68", "fields": { "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z", - "slug": "custom", - "display_name": "Custom" + "slug": "dla", + "display_name": "Document Layout Analysis" } }, { "model": "process.workertype", - "pk": "9f93d340-6864-46cc-8978-97479365a1a1", + "pk": "736e9c86-b137-4933-b4f4-18d9e2f3bb8c", "fields": { "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z", - "slug": "worker", - "display_name": "Worker requiring a GPU" + "slug": "import", + "display_name": "Import" } }, { "model": "process.workertype", - "pk": "a3e4c651-a596-4e1f-912d-a6b2b79bd6da", + "pk": "8bb21ad8-8e5c-4c4c-8539-78d27bb9a658", "fields": { "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z", - "slug": "dla", - "display_name": "Document Layout Analysis" + "slug": "recognizer", + "display_name": "Recognizer" } }, { "model": "process.workertype", - "pk": "a89c2fe1-ab5c-4175-91ec-a87a73f86033", + "pk": "bb54b04a-41fb-470a-a82e-b9f8ad10f1f2", "fields": { "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z", - "slug": "import", - "display_name": "Import" + "slug": "custom", + "display_name": "Custom" } }, { "model": "process.workertype", - "pk": "b85021ec-3474-4db3-b548-0851058fda41", + "pk": "e7d696c4-fd99-4737-a6c7-f36c8fd91052", "fields": { "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z", - "slug": "recognizer", - "display_name": "Recognizer" + "slug": "worker", + "display_name": "Worker requiring a GPU" } }, { "model": "process.workerversion", - "pk": "3fa5b2f2-bf2d-4c1b-a8f1-b235d0dfb5ba", + "pk": "3a1d6aec-4b4f-4618-baa4-a0943e515729", "fields": { - "worker": "1c464396-2dd3-4c23-9e30-56dd413937b9", + "worker": "bf56381e-a669-4e61-8d19-fc0e23171463", "version": 1, - "configuration": {}, + "configuration": { + "docker": { + "command": "worker-init-elements" + } + }, "state": "available", "gpu_usage": "disabled", "model_usage": "disabled", - "docker_image_iid": "registry.somewhere.com/something:latest", + "docker_image_iid": "registry.gitlab.teklia.com/arkindex/workers/init-elements:latest", "revision_url": null, "branch": null, "tag": null, - "feature": "file_import", + "feature": "init_elements", "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z" } }, { "model": "process.workerversion", - "pk": "404f0310-ec6b-416c-958f-5d8bee4dc4b6", + "pk": "52ea454c-52ea-4dfd-bc5d-b3e46ab6540d", "fields": { - "worker": "65b1eb17-da90-4211-8879-3bb4e4f23536", + "worker": "008fd560-4b34-45bd-8a4c-2b4be6ff94f0", "version": 1, "configuration": { - "custom": "value" + "test": 42 }, - "state": "created", + "state": "available", "gpu_usage": "disabled", "model_usage": "disabled", - "docker_image_iid": null, + "docker_image_iid": "registry.somewhere.com/something:latest", "revision_url": null, "branch": null, "tag": null, @@ -192,13 +196,11 @@ }, { "model": "process.workerversion", - "pk": "515addf4-19b5-4e5d-a2d3-65e2d7739d93", + "pk": "5c2651c8-6179-4f7e-a0f4-be2c66293f0a", "fields": { - "worker": "e7a84674-854f-4648-9426-47d4a349aeef", + "worker": "f0f5787d-3e41-4d16-aa56-b84f64103c12", "version": 1, - "configuration": { - "test": 42 - }, + "configuration": {}, "state": "available", "gpu_usage": "disabled", "model_usage": "disabled", @@ -206,23 +208,23 @@ "revision_url": null, "branch": null, "tag": null, - "feature": null, + "feature": "file_import", "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z" } }, { "model": "process.workerversion", - "pk": "709a6ab3-bbf2-4fac-b101-3270f057702a", + "pk": "a86c20e8-9a55-45c1-bfa8-ce53fc01ad00", "fields": { - "worker": "a1c68983-2cbe-46f0-9e20-a9a5b1ba8942", + "worker": "dd99bb98-ca21-4f62-90a0-e15ed088de3b", "version": 1, "configuration": { "test": 42 }, "state": "available", "gpu_usage": "disabled", - "model_usage": "required", + "model_usage": "disabled", "docker_image_iid": "registry.somewhere.com/something:latest", "revision_url": null, "branch": null, @@ -234,32 +236,30 @@ }, { "model": "process.workerversion", - "pk": "8e1d616e-2219-42b1-9076-cba28bf608fa", + "pk": "c5614a43-4131-4630-a69e-24d6a0b31e35", "fields": { - "worker": "8be67c9c-3011-44b2-a9ee-06e1eb0ca66e", + "worker": "56f4410a-3ac1-4940-8b8b-2d46430a06e0", "version": 1, "configuration": { - "docker": { - "command": "worker-init-elements" - } + "test": 42 }, "state": "available", "gpu_usage": "disabled", - "model_usage": "disabled", - "docker_image_iid": "registry.gitlab.teklia.com/arkindex/workers/init-elements:latest", + "model_usage": "required", + "docker_image_iid": "registry.somewhere.com/something:latest", "revision_url": null, "branch": null, "tag": null, - "feature": "init_elements", + "feature": null, "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z" } }, { "model": "process.workerversion", - "pk": "f936cc60-a6ba-4d2f-a205-561edf6630bb", + "pk": "e0f56d55-5492-49c0-8988-7aa8f9049d54", "fields": { - "worker": "3971d458-2f31-4c99-b72f-733b0cd988f6", + "worker": "4a32f3f4-31bf-4abc-a7de-d8dbc322cc1b", "version": 1, "configuration": { "test": 42 @@ -278,17 +278,17 @@ }, { "model": "process.workerversion", - "pk": "ff33cdc7-801a-4172-a5a2-96c6f2976cf1", + "pk": "e75d4a04-b0ee-4627-bee6-f6e648a85d4b", "fields": { - "worker": "a38b99a7-43c6-4c9d-9626-bc678cea6e45", + "worker": "4daaeda1-1aed-4147-b5b5-724d7e96047a", "version": 1, "configuration": { - "test": 42 + "custom": "value" }, - "state": "available", + "state": "created", "gpu_usage": "disabled", "model_usage": "disabled", - "docker_image_iid": "registry.somewhere.com/something:latest", + "docker_image_iid": null, "revision_url": null, "branch": null, "tag": null, @@ -299,14 +299,14 @@ }, { "model": "process.workerrun", - "pk": "3f0d7e08-97df-4a0f-9069-1ce92fb9c84e", + "pk": "a89bf3d0-f4e2-4cdc-a0f8-beff2775cd1f", "fields": { - "process": "c6a56ae0-7ee7-41e3-b997-d31d89d0de91", - "version": "404f0310-ec6b-416c-958f-5d8bee4dc4b6", + "process": "6ceedc11-f36b-418f-a19a-7c6b3dd96a82", + "version": "3a1d6aec-4b4f-4618-baa4-a0943e515729", "model_version": null, "parents": "[]", "configuration": null, - "summary": "Worker Custom worker @ version 1", + "summary": "Worker Elements Initialisation Worker @ version 1", "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z", "has_results": false, @@ -315,14 +315,14 @@ }, { "model": "process.workerrun", - "pk": "88a3eedd-4f41-4e52-a052-de468ff1c957", + "pk": "1f4f2186-93c9-4fc9-9e20-f4a790c30fa8", "fields": { - "process": "97bb709a-05b7-4316-8081-3365b6f8693b", - "version": "8e1d616e-2219-42b1-9076-cba28bf608fa", + "process": "6ceedc11-f36b-418f-a19a-7c6b3dd96a82", + "version": "a86c20e8-9a55-45c1-bfa8-ce53fc01ad00", "model_version": null, - "parents": "[]", + "parents": "[\"a89bf3d0-f4e2-4cdc-a0f8-beff2775cd1f\"]", "configuration": null, - "summary": "Worker Elements Initialisation Worker @ version 1", + "summary": "Worker Document layout analyser @ version 1", "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z", "has_results": false, @@ -331,14 +331,14 @@ }, { "model": "process.workerrun", - "pk": "a1ffad23-2568-42af-a703-dd9c362d74d2", + "pk": "cc5dbf61-20f3-4286-8a82-e303a58783a0", "fields": { - "process": "97bb709a-05b7-4316-8081-3365b6f8693b", - "version": "ff33cdc7-801a-4172-a5a2-96c6f2976cf1", + "process": "6ceedc11-f36b-418f-a19a-7c6b3dd96a82", + "version": "52ea454c-52ea-4dfd-bc5d-b3e46ab6540d", "model_version": null, - "parents": "[\"88a3eedd-4f41-4e52-a052-de468ff1c957\"]", + "parents": "[\"1f4f2186-93c9-4fc9-9e20-f4a790c30fa8\"]", "configuration": null, - "summary": "Worker Document layout analyser @ version 1", + "summary": "Worker Recognizer @ version 1", "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z", "has_results": false, @@ -347,14 +347,14 @@ }, { "model": "process.workerrun", - "pk": "91aa0161-b394-46fa-9046-6bb09819c677", + "pk": "e1322c97-67ad-4763-ae1a-88b7cdf447b3", "fields": { - "process": "97bb709a-05b7-4316-8081-3365b6f8693b", - "version": "515addf4-19b5-4e5d-a2d3-65e2d7739d93", + "process": "9767c1c7-cc6a-4a69-96b1-d8c0e7ee4c33", + "version": "e75d4a04-b0ee-4627-bee6-f6e648a85d4b", "model_version": null, - "parents": "[\"a1ffad23-2568-42af-a703-dd9c362d74d2\"]", + "parents": "[]", "configuration": null, - "summary": "Worker Recognizer @ version 1", + "summary": "Worker Custom worker @ version 1", "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z", "has_results": false, @@ -363,10 +363,10 @@ }, { "model": "process.workerrun", - "pk": "a0fc1d62-27b7-4b22-8b32-a56eb576f7d5", + "pk": "f3a31547-c102-454d-96f2-3eb5296662f5", "fields": { - "process": "2e0244bc-52c8-4984-997c-0f5141724803", - "version": "404f0310-ec6b-416c-958f-5d8bee4dc4b6", + "process": "49bef54f-c7cf-4c97-bd06-633ecf77efcf", + "version": "e75d4a04-b0ee-4627-bee6-f6e648a85d4b", "model_version": null, "parents": "[]", "configuration": null, @@ -379,7 +379,7 @@ }, { "model": "documents.corpus", - "pk": "cc7ef77e-e57f-4079-ad1b-59234560d351", + "pk": "9b13ef45-5eb4-48a7-92c4-4e2766f8ec3c", "fields": { "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z", @@ -392,11 +392,11 @@ }, { "model": "documents.elementtype", - "pk": "0397255e-79f7-4e55-b1d5-504967141ef4", + "pk": "2b310b2a-33bd-42fe-bfb1-2915928b00cc", "fields": { - "corpus": "cc7ef77e-e57f-4079-ad1b-59234560d351", - "slug": "word", - "display_name": "Word", + "corpus": "9b13ef45-5eb4-48a7-92c4-4e2766f8ec3c", + "slug": "surface", + "display_name": "Surface", "folder": false, "indexable": false, "color": "28b62c" @@ -404,9 +404,9 @@ }, { "model": "documents.elementtype", - "pk": "4af36a9d-178a-4288-86a2-c9720e651cc9", + "pk": "324f4646-138e-425b-bb6c-76cbdd8c038c", "fields": { - "corpus": "cc7ef77e-e57f-4079-ad1b-59234560d351", + "corpus": "9b13ef45-5eb4-48a7-92c4-4e2766f8ec3c", "slug": "page", "display_name": "Page", "folder": false, @@ -416,35 +416,35 @@ }, { "model": "documents.elementtype", - "pk": "5e21fc0c-859d-4961-870a-f164ae5d0f40", + "pk": "9d74a557-1c41-4fcb-9ac4-706fc8438a01", "fields": { - "corpus": "cc7ef77e-e57f-4079-ad1b-59234560d351", - "slug": "volume", - "display_name": "Volume", - "folder": true, + "corpus": "9b13ef45-5eb4-48a7-92c4-4e2766f8ec3c", + "slug": "text_line", + "display_name": "Line", + "folder": false, "indexable": false, "color": "28b62c" } }, { "model": "documents.elementtype", - "pk": "8c84d58d-7e3f-41b1-ad18-230657b0793d", + "pk": "b445d965-667a-4690-8732-98659d8645dd", "fields": { - "corpus": "cc7ef77e-e57f-4079-ad1b-59234560d351", - "slug": "surface", - "display_name": "Surface", - "folder": false, + "corpus": "9b13ef45-5eb4-48a7-92c4-4e2766f8ec3c", + "slug": "volume", + "display_name": "Volume", + "folder": true, "indexable": false, "color": "28b62c" } }, { "model": "documents.elementtype", - "pk": "a5c36248-99e5-4896-8775-623fbdf87dc4", + "pk": "b61111fd-61e7-45f1-aa99-20c5f105357a", "fields": { - "corpus": "cc7ef77e-e57f-4079-ad1b-59234560d351", - "slug": "text_line", - "display_name": "Line", + "corpus": "9b13ef45-5eb4-48a7-92c4-4e2766f8ec3c", + "slug": "word", + "display_name": "Word", "folder": false, "indexable": false, "color": "28b62c" @@ -452,9 +452,9 @@ }, { "model": "documents.elementtype", - "pk": "a824b040-9c3c-453f-9c01-eca24f95c73a", + "pk": "b71d6bbe-b2b0-46a8-a983-e34cab59aa1e", "fields": { - "corpus": "cc7ef77e-e57f-4079-ad1b-59234560d351", + "corpus": "9b13ef45-5eb4-48a7-92c4-4e2766f8ec3c", "slug": "act", "display_name": "Act", "folder": false, @@ -464,377 +464,377 @@ }, { "model": "documents.elementpath", - "pk": "06155d04-2c52-4eaa-bbed-d2e832e045b0", + "pk": "05184aee-6dd7-4cfc-b4bc-87624c301c3b", "fields": { - "element": "f9fcf342-2dae-4b0a-932b-84c75ecd67a6", - "path": "[\"1d371c29-fc5e-4685-a7d8-61fab52b7fc6\", \"66f3547d-6d0c-4caa-84e0-0679ad68ef8e\"]", - "ordering": 2 + "element": "d462dd86-bd44-4e74-95a3-44fefd397df8", + "path": "[\"1b829e8b-8ebe-4e86-a257-b7aaa2f7a22d\", \"bcd1fb0f-f910-4509-ba41-bf9fe67e67eb\"]", + "ordering": 1 } }, { "model": "documents.elementpath", - "pk": "31808eaf-0077-4fcc-875f-7dddc9594a1d", + "pk": "063a30c0-e3ed-4044-a914-17500916509b", "fields": { - "element": "5f3d7f9a-1248-4bd3-8363-87f7068c9651", - "path": "[\"1d371c29-fc5e-4685-a7d8-61fab52b7fc6\"]", - "ordering": 4 + "element": "bc662943-dfa5-4696-8480-fc236ff3651e", + "path": "[\"1b829e8b-8ebe-4e86-a257-b7aaa2f7a22d\", \"b3433c27-0c42-4013-a645-67a4388cdd94\"]", + "ordering": 0 } }, { "model": "documents.elementpath", - "pk": "35568db2-475a-4039-985c-e8dc4673b0b1", + "pk": "0ac80cc9-e9e2-4cec-bebf-7c5ada86eeab", "fields": { - "element": "c607a90c-cbbd-4425-85ab-2891947a9b5f", - "path": "[\"a2fcf757-b182-4e9d-99ac-b20f1298ef41\"]", + "element": "aa918643-b18a-4970-a5c4-f18ff3594462", + "path": "[\"1b829e8b-8ebe-4e86-a257-b7aaa2f7a22d\", \"98a67dc8-76d6-4a2c-931b-60a11ef601d9\"]", "ordering": 2 } }, { "model": "documents.elementpath", - "pk": "3599073e-e9c1-4f30-bd49-7c811225b0ac", + "pk": "17cd8a3f-a530-4fbc-8630-a39228d2bf15", "fields": { - "element": "1d371c29-fc5e-4685-a7d8-61fab52b7fc6", - "path": "[]", - "ordering": 0 + "element": "37ae14da-4051-43f7-ba68-2ed3014f508f", + "path": "[\"6db35fcd-3c50-4a16-b204-568850b6dbb0\"]", + "ordering": 1 } }, { "model": "documents.elementpath", - "pk": "42626161-aef1-4e00-b8a8-5d489447b529", + "pk": "1eb521f5-5c2b-4579-b3cf-29a52c579d26", "fields": { - "element": "a7bb5354-851a-45b1-aff0-ae9ffd03cfc6", - "path": "[\"1d371c29-fc5e-4685-a7d8-61fab52b7fc6\", \"76882b5a-eff5-449e-b04b-b9a2a4ddd02f\"]", - "ordering": 0 + "element": "35886170-a511-424b-a1d5-984731ab4aed", + "path": "[\"1b829e8b-8ebe-4e86-a257-b7aaa2f7a22d\"]", + "ordering": 6 } }, { "model": "documents.elementpath", - "pk": "46ee90ee-da9a-4da8-8932-4d0e2f1bd71f", + "pk": "1f182eb0-2c92-4ff2-a6d1-052b47ee9fe4", "fields": { - "element": "a8937eb6-6507-477e-9e7e-2cd670ab2f62", - "path": "[\"1d371c29-fc5e-4685-a7d8-61fab52b7fc6\", \"66f3547d-6d0c-4caa-84e0-0679ad68ef8e\"]", - "ordering": 1 + "element": "4e0e24e6-52a3-4623-b8da-c6fb7471c861", + "path": "[\"6db35fcd-3c50-4a16-b204-568850b6dbb0\"]", + "ordering": 2 } }, { "model": "documents.elementpath", - "pk": "473152d2-dcb3-4609-b49d-96f1347ff2ad", + "pk": "2116ba43-b157-4357-bbc0-292813e67b0a", "fields": { - "element": "dcfd760e-ec31-42b3-a043-b355c8e0cf2b", - "path": "[\"1d371c29-fc5e-4685-a7d8-61fab52b7fc6\"]", + "element": "e792fe53-f1ed-459d-8b49-c7dae948c0db", + "path": "[\"1b829e8b-8ebe-4e86-a257-b7aaa2f7a22d\", \"bcd1fb0f-f910-4509-ba41-bf9fe67e67eb\"]", "ordering": 0 } }, { "model": "documents.elementpath", - "pk": "56de84b9-7889-46b2-96c0-b226657d753a", + "pk": "5886e82a-089c-4e25-8e41-168d7bd5c33b", "fields": { - "element": "9b7fea12-e589-42c4-b055-3421a4b24031", - "path": "[\"1d371c29-fc5e-4685-a7d8-61fab52b7fc6\", \"dcfd760e-ec31-42b3-a043-b355c8e0cf2b\"]", - "ordering": 2 + "element": "99b4ca3d-834f-4010-b94f-ea02e307ceb4", + "path": "[\"1b829e8b-8ebe-4e86-a257-b7aaa2f7a22d\", \"98a67dc8-76d6-4a2c-931b-60a11ef601d9\"]", + "ordering": 3 } }, { "model": "documents.elementpath", - "pk": "60cd9e8c-b967-4727-b984-134818ce7985", + "pk": "5ca9c492-2bf3-4a88-b845-658cec2965d7", "fields": { - "element": "24c3a34f-f56d-438e-abd9-ecafafad0942", - "path": "[\"1d371c29-fc5e-4685-a7d8-61fab52b7fc6\", \"76882b5a-eff5-449e-b04b-b9a2a4ddd02f\"]", - "ordering": 1 + "element": "99b51971-fbff-45c6-9e89-8bd0a598e1a4", + "path": "[\"1b829e8b-8ebe-4e86-a257-b7aaa2f7a22d\", \"bcd1fb0f-f910-4509-ba41-bf9fe67e67eb\"]", + "ordering": 2 } }, { "model": "documents.elementpath", - "pk": "62ac8edd-333f-4a50-8200-723757c30b51", + "pk": "605fe08f-7145-43ad-8882-1a9773d953c9", "fields": { - "element": "81b69040-cd6e-45ae-9c8c-d705eca344dd", - "path": "[\"1d371c29-fc5e-4685-a7d8-61fab52b7fc6\"]", - "ordering": 7 + "element": "aa9cdf0c-7583-400e-8432-f3e388f5cf0d", + "path": "[\"1b829e8b-8ebe-4e86-a257-b7aaa2f7a22d\"]", + "ordering": 1 } }, { "model": "documents.elementpath", - "pk": "6ff6f925-f306-4e47-8a53-7994746f36e6", + "pk": "69c85528-1bcf-424a-af26-6ab3ca1bfaf0", "fields": { - "element": "ba7d550b-119b-41cd-ad44-9218d170e146", - "path": "[\"1d371c29-fc5e-4685-a7d8-61fab52b7fc6\", \"2dc89721-85ce-469a-84de-822b2168fe27\"]", + "element": "98a67dc8-76d6-4a2c-931b-60a11ef601d9", + "path": "[\"1b829e8b-8ebe-4e86-a257-b7aaa2f7a22d\"]", "ordering": 0 } }, { "model": "documents.elementpath", - "pk": "70200eba-a0a0-4e8a-a1a7-48e5beefc1f4", + "pk": "737c7f51-ed49-48bb-9b8d-197125b56724", "fields": { - "element": "a9e868a3-bc05-4092-907e-a60fbd916292", - "path": "[\"1d371c29-fc5e-4685-a7d8-61fab52b7fc6\", \"dcfd760e-ec31-42b3-a043-b355c8e0cf2b\"]", - "ordering": 1 + "element": "75db941d-00a5-4c9a-aa11-3594181b1cb2", + "path": "[\"1b829e8b-8ebe-4e86-a257-b7aaa2f7a22d\", \"98a67dc8-76d6-4a2c-931b-60a11ef601d9\"]", + "ordering": 0 } }, { "model": "documents.elementpath", - "pk": "738c11f7-7c14-46b5-ae39-8465f3d455f1", + "pk": "76136a2d-5996-41ca-9687-8713e849a261", "fields": { - "element": "107914cd-c72e-41f7-8107-f1f4cf81ce0a", - "path": "[\"1d371c29-fc5e-4685-a7d8-61fab52b7fc6\", \"76882b5a-eff5-449e-b04b-b9a2a4ddd02f\"]", - "ordering": 2 + "element": "95181a58-4d6f-45fc-881a-fc42e8b7c721", + "path": "[\"6db35fcd-3c50-4a16-b204-568850b6dbb0\"]", + "ordering": 0 } }, { "model": "documents.elementpath", - "pk": "768a9373-13b8-4588-b321-431a0508f99d", + "pk": "7c87b38d-2b17-481d-bed7-f4f347845444", "fields": { - "element": "8df38d7d-eb55-43b0-853a-0f4ff1a03c1c", - "path": "[\"1d371c29-fc5e-4685-a7d8-61fab52b7fc6\", \"66f3547d-6d0c-4caa-84e0-0679ad68ef8e\"]", - "ordering": 0 + "element": "b64fbadd-68b6-488c-89be-715ddb28590c", + "path": "[\"1b829e8b-8ebe-4e86-a257-b7aaa2f7a22d\"]", + "ordering": 4 } }, { "model": "documents.elementpath", - "pk": "8947b0cb-d31c-4d4f-af2f-05accefe4720", + "pk": "8095ebf7-780f-40bc-8bfa-fade20d53e85", "fields": { - "element": "66f3547d-6d0c-4caa-84e0-0679ad68ef8e", - "path": "[\"1d371c29-fc5e-4685-a7d8-61fab52b7fc6\"]", - "ordering": 1 + "element": "6db35fcd-3c50-4a16-b204-568850b6dbb0", + "path": "[]", + "ordering": 0 } }, { "model": "documents.elementpath", - "pk": "8d9895b0-e948-4843-8c15-3bbeb402f666", + "pk": "90875c20-4ac6-42f2-b02e-7b89bfef12f5", "fields": { - "element": "96ab9501-2a7a-4f39-bdae-83e790d3aff5", - "path": "[\"1d371c29-fc5e-4685-a7d8-61fab52b7fc6\", \"97c52b91-3505-4aa9-af03-ed16922c2934\"]", + "element": "cf7188f3-98f6-49ae-ab3f-d3ab8b53608e", + "path": "[\"1b829e8b-8ebe-4e86-a257-b7aaa2f7a22d\", \"b64fbadd-68b6-488c-89be-715ddb28590c\"]", "ordering": 0 } }, { "model": "documents.elementpath", - "pk": "8f3c8062-4e0f-4a50-b0b1-0b5bd01c759f", + "pk": "97bb4ec1-2531-4546-b5d6-fc66ee23fbee", "fields": { - "element": "55ccfc5d-6051-4aee-85c0-181026cb750d", - "path": "[\"1d371c29-fc5e-4685-a7d8-61fab52b7fc6\", \"5f3d7f9a-1248-4bd3-8363-87f7068c9651\"]", - "ordering": 1 + "element": "1b829e8b-8ebe-4e86-a257-b7aaa2f7a22d", + "path": "[]", + "ordering": 0 } }, { "model": "documents.elementpath", - "pk": "a4ab34c5-11d3-4a52-b5e3-38b41613004e", + "pk": "9e145e20-f2ee-49b6-bb64-1c456cc1045b", "fields": { - "element": "2dc89721-85ce-469a-84de-822b2168fe27", - "path": "[\"1d371c29-fc5e-4685-a7d8-61fab52b7fc6\"]", - "ordering": 5 + "element": "2331d5fb-fac5-431f-b313-9f0aa817c95b", + "path": "[\"1b829e8b-8ebe-4e86-a257-b7aaa2f7a22d\"]", + "ordering": 7 } }, { "model": "documents.elementpath", - "pk": "a6b5e8cb-7bec-4c34-9ba4-c770661543eb", + "pk": "a15ff9e8-a500-4cd1-a000-c47797f3ed59", "fields": { - "element": "76882b5a-eff5-449e-b04b-b9a2a4ddd02f", - "path": "[\"1d371c29-fc5e-4685-a7d8-61fab52b7fc6\"]", - "ordering": 2 + "element": "2d08b6c7-2d0e-4d51-b989-a724ce6f40c7", + "path": "[\"1b829e8b-8ebe-4e86-a257-b7aaa2f7a22d\", \"bfa8252b-2859-4180-8358-fdcfedf82d7c\"]", + "ordering": 0 } }, { "model": "documents.elementpath", - "pk": "abf0ef36-949c-4cab-bf4f-ea333cad8ab0", + "pk": "b6a2884c-c6c5-4ec1-b393-8d7d42b7371b", "fields": { - "element": "a2fcf757-b182-4e9d-99ac-b20f1298ef41", - "path": "[]", + "element": "f1fbbe29-65c8-4a47-b912-6d4e04b39c01", + "path": "[\"1b829e8b-8ebe-4e86-a257-b7aaa2f7a22d\", \"2331d5fb-fac5-431f-b313-9f0aa817c95b\"]", "ordering": 0 } }, { "model": "documents.elementpath", - "pk": "b13d9949-2488-40a3-9117-e08f9bb64643", + "pk": "bcb1cb9d-9157-4fed-8009-800546932474", "fields": { - "element": "97c52b91-3505-4aa9-af03-ed16922c2934", - "path": "[\"1d371c29-fc5e-4685-a7d8-61fab52b7fc6\"]", - "ordering": 3 + "element": "bfa8252b-2859-4180-8358-fdcfedf82d7c", + "path": "[\"1b829e8b-8ebe-4e86-a257-b7aaa2f7a22d\"]", + "ordering": 5 } }, { "model": "documents.elementpath", - "pk": "b5527cea-69df-4f97-8ba6-b551c64beaee", + "pk": "bddb93de-1872-4fe0-b675-874da068ded1", "fields": { - "element": "098ce1f4-14b7-42ad-8af3-9355eaa5d10d", - "path": "[\"a2fcf757-b182-4e9d-99ac-b20f1298ef41\"]", - "ordering": 0 + "element": "aeed5364-c2b1-45d9-81e8-f1591a1dc59d", + "path": "[\"1b829e8b-8ebe-4e86-a257-b7aaa2f7a22d\", \"b64fbadd-68b6-488c-89be-715ddb28590c\"]", + "ordering": 1 } }, { "model": "documents.elementpath", - "pk": "c98f9126-0d2d-461c-8ef1-8de1477e2bdb", + "pk": "bfa4dd50-deba-4b73-b238-edcc6b7a5250", "fields": { - "element": "d8916efa-23f8-46e2-b585-c06df764198c", - "path": "[\"1d371c29-fc5e-4685-a7d8-61fab52b7fc6\"]", - "ordering": 6 + "element": "f4427695-7181-43d7-b5f8-803846bd4493", + "path": "[\"1b829e8b-8ebe-4e86-a257-b7aaa2f7a22d\", \"98a67dc8-76d6-4a2c-931b-60a11ef601d9\"]", + "ordering": 1 } }, { "model": "documents.elementpath", - "pk": "dc00dec2-9d5b-4045-82aa-b88d37ad23e4", + "pk": "c9955f41-6d4b-41a3-8120-c63d3b160666", "fields": { - "element": "5a2e53e0-389f-45f5-83d5-3017891474e4", - "path": "[\"1d371c29-fc5e-4685-a7d8-61fab52b7fc6\", \"dcfd760e-ec31-42b3-a043-b355c8e0cf2b\"]", - "ordering": 3 + "element": "04a1537a-35c2-4426-9533-63817890b5f5", + "path": "[\"1b829e8b-8ebe-4e86-a257-b7aaa2f7a22d\", \"aa9cdf0c-7583-400e-8432-f3e388f5cf0d\"]", + "ordering": 0 } }, { "model": "documents.elementpath", - "pk": "e388f985-f4ab-4920-bee9-41974bc51732", + "pk": "d1acaf03-1549-4c19-9942-911242fb3ff3", "fields": { - "element": "7940c735-165b-42f5-a50b-7b7469293b1e", - "path": "[\"1d371c29-fc5e-4685-a7d8-61fab52b7fc6\", \"dcfd760e-ec31-42b3-a043-b355c8e0cf2b\"]", - "ordering": 0 + "element": "bcd1fb0f-f910-4509-ba41-bf9fe67e67eb", + "path": "[\"1b829e8b-8ebe-4e86-a257-b7aaa2f7a22d\"]", + "ordering": 2 } }, { "model": "documents.elementpath", - "pk": "e7784f84-51b2-4fd8-90e3-11ff794527c3", + "pk": "d46f91b2-6251-4a52-807e-9baea5792f05", "fields": { - "element": "f8c8f16c-49c9-4751-867b-7be95af779f5", - "path": "[\"a2fcf757-b182-4e9d-99ac-b20f1298ef41\"]", + "element": "dca5cf68-56fb-48df-b54a-3c09f3030a37", + "path": "[\"1b829e8b-8ebe-4e86-a257-b7aaa2f7a22d\", \"aa9cdf0c-7583-400e-8432-f3e388f5cf0d\"]", "ordering": 1 } }, { "model": "documents.elementpath", - "pk": "ec7be54b-f450-49e0-be87-70f88fe44799", + "pk": "dc4903c5-7e9a-4c6b-9035-3634c86b6e8c", "fields": { - "element": "e2220d45-4bae-470a-8049-104303453dfb", - "path": "[\"1d371c29-fc5e-4685-a7d8-61fab52b7fc6\", \"5f3d7f9a-1248-4bd3-8363-87f7068c9651\"]", - "ordering": 0 + "element": "b3433c27-0c42-4013-a645-67a4388cdd94", + "path": "[\"1b829e8b-8ebe-4e86-a257-b7aaa2f7a22d\"]", + "ordering": 3 } }, { "model": "documents.elementpath", - "pk": "fdc776b6-f43b-45f2-9c1e-64efe5064a64", + "pk": "f3473681-ccc0-4d68-9094-3470b59af917", "fields": { - "element": "ab185f1b-2840-4050-b166-42030fdd8dee", - "path": "[\"1d371c29-fc5e-4685-a7d8-61fab52b7fc6\", \"81b69040-cd6e-45ae-9c8c-d705eca344dd\"]", - "ordering": 0 + "element": "8bff15a3-9f39-4111-947b-3e97b5605140", + "path": "[\"1b829e8b-8ebe-4e86-a257-b7aaa2f7a22d\", \"aa9cdf0c-7583-400e-8432-f3e388f5cf0d\"]", + "ordering": 2 } }, { "model": "documents.elementpath", - "pk": "fe964532-e547-4e03-b7e3-b6a0738adaf0", + "pk": "ff35ba64-2da7-443a-acea-0e3bfba0c575", "fields": { - "element": "1e017729-6c04-42ed-b9ae-e55619832a5b", - "path": "[\"1d371c29-fc5e-4685-a7d8-61fab52b7fc6\", \"d8916efa-23f8-46e2-b585-c06df764198c\"]", + "element": "3597272d-3226-4f06-9a2f-6b479d247060", + "path": "[\"1b829e8b-8ebe-4e86-a257-b7aaa2f7a22d\", \"35886170-a511-424b-a1d5-984731ab4aed\"]", "ordering": 0 } }, { "model": "documents.entitytype", - "pk": "0a4e7919-fec9-4a6a-be49-6e8b4c3216e0", + "pk": "2af0ca14-15d5-466a-848a-43203617bb7c", "fields": { - "name": "number", + "name": "person", "color": "ff0000", - "corpus": "cc7ef77e-e57f-4079-ad1b-59234560d351" + "corpus": "9b13ef45-5eb4-48a7-92c4-4e2766f8ec3c" } }, { "model": "documents.entitytype", - "pk": "41bfc982-84d1-4caa-9f9f-63c090edab4c", + "pk": "4792dc93-c1cf-4667-9bbb-b3fcbcad4cc1", "fields": { - "name": "person", + "name": "organization", "color": "ff0000", - "corpus": "cc7ef77e-e57f-4079-ad1b-59234560d351" + "corpus": "9b13ef45-5eb4-48a7-92c4-4e2766f8ec3c" } }, { "model": "documents.entitytype", - "pk": "71edcbd2-066c-4705-86b8-714d8b0c46d9", + "pk": "9ae7659b-4dfc-4ea0-8056-af415f0638e4", "fields": { "name": "date", "color": "ff0000", - "corpus": "cc7ef77e-e57f-4079-ad1b-59234560d351" + "corpus": "9b13ef45-5eb4-48a7-92c4-4e2766f8ec3c" } }, { "model": "documents.entitytype", - "pk": "8b901d69-86d0-43a9-abb5-107d1158a24d", + "pk": "b50c5cd1-d945-4f23-904f-ad3267bb8ca1", "fields": { "name": "location", "color": "ff0000", - "corpus": "cc7ef77e-e57f-4079-ad1b-59234560d351" + "corpus": "9b13ef45-5eb4-48a7-92c4-4e2766f8ec3c" } }, { "model": "documents.entitytype", - "pk": "ae41b835-b48d-459f-b4fd-3ab90aaa1356", + "pk": "ca93998c-c334-444f-bde6-16824b3dcc25", "fields": { - "name": "organization", + "name": "number", "color": "ff0000", - "corpus": "cc7ef77e-e57f-4079-ad1b-59234560d351" + "corpus": "9b13ef45-5eb4-48a7-92c4-4e2766f8ec3c" } }, { "model": "documents.transcription", - "pk": "012aeb07-2272-4a26-b383-fdd2954d2a7e", + "pk": "11d60d63-d5e7-4620-a7e8-5da8c5319617", "fields": { - "element": "24c3a34f-f56d-438e-abd9-ecafafad0942", - "worker_version": "515addf4-19b5-4e5d-a2d3-65e2d7739d93", - "worker_run": "91aa0161-b394-46fa-9046-6bb09819c677", - "text": "ROY", + "element": "aa918643-b18a-4970-a5c4-f18ff3594462", + "worker_version": "52ea454c-52ea-4dfd-bc5d-b3e46ab6540d", + "worker_run": "cc5dbf61-20f3-4286-8a82-e303a58783a0", + "text": "DATUM", "orientation": "horizontal-lr", "confidence": 1.0 } }, { "model": "documents.transcription", - "pk": "3bfd420d-fa41-45ce-80f8-1e3cec71b257", + "pk": "1954413e-298a-4495-b681-b9c70bf653c4", "fields": { - "element": "9b7fea12-e589-42c4-b055-3421a4b24031", - "worker_version": "515addf4-19b5-4e5d-a2d3-65e2d7739d93", - "worker_run": "91aa0161-b394-46fa-9046-6bb09819c677", - "text": "DATUM", + "element": "dca5cf68-56fb-48df-b54a-3c09f3030a37", + "worker_version": "52ea454c-52ea-4dfd-bc5d-b3e46ab6540d", + "worker_run": "cc5dbf61-20f3-4286-8a82-e303a58783a0", + "text": "ROY", "orientation": "horizontal-lr", "confidence": 1.0 } }, { "model": "documents.transcription", - "pk": "62d4ea6a-c5d7-459f-8c1a-2a9eaeda0759", + "pk": "5541ecd7-eb79-4673-97ea-d47200b2f92f", "fields": { - "element": "8df38d7d-eb55-43b0-853a-0f4ff1a03c1c", - "worker_version": "515addf4-19b5-4e5d-a2d3-65e2d7739d93", - "worker_run": "91aa0161-b394-46fa-9046-6bb09819c677", - "text": "PARIS", + "element": "f4427695-7181-43d7-b5f8-803846bd4493", + "worker_version": "52ea454c-52ea-4dfd-bc5d-b3e46ab6540d", + "worker_run": "cc5dbf61-20f3-4286-8a82-e303a58783a0", + "text": "ROY", "orientation": "horizontal-lr", "confidence": 1.0 } }, { "model": "documents.transcription", - "pk": "7ae06fda-4fc0-4701-b2d5-429891ec6ed9", + "pk": "55d5a414-29b7-4c41-92cd-558a0d1a4f24", "fields": { - "element": "a9e868a3-bc05-4092-907e-a60fbd916292", - "worker_version": "515addf4-19b5-4e5d-a2d3-65e2d7739d93", - "worker_run": "91aa0161-b394-46fa-9046-6bb09819c677", - "text": "ROY", + "element": "98a67dc8-76d6-4a2c-931b-60a11ef601d9", + "worker_version": "52ea454c-52ea-4dfd-bc5d-b3e46ab6540d", + "worker_run": "cc5dbf61-20f3-4286-8a82-e303a58783a0", + "text": "Lorem ipsum dolor sit amet", "orientation": "horizontal-lr", "confidence": 1.0 } }, { "model": "documents.transcription", - "pk": "bd5ff7f6-c7b7-4d41-a0de-56aa7d0dc7e5", + "pk": "7b4ea9fc-c18c-4f17-9c9c-ec8327722182", "fields": { - "element": "107914cd-c72e-41f7-8107-f1f4cf81ce0a", - "worker_version": "515addf4-19b5-4e5d-a2d3-65e2d7739d93", - "worker_run": "91aa0161-b394-46fa-9046-6bb09819c677", - "text": "DATUM", + "element": "d462dd86-bd44-4e74-95a3-44fefd397df8", + "worker_version": "52ea454c-52ea-4dfd-bc5d-b3e46ab6540d", + "worker_run": "cc5dbf61-20f3-4286-8a82-e303a58783a0", + "text": "ROY", "orientation": "horizontal-lr", "confidence": 1.0 } }, { "model": "documents.transcription", - "pk": "c27296c6-9000-4bf6-959b-ded43743c57d", + "pk": "7c87229d-63f8-4bae-8c8c-cad1827a0cfa", "fields": { - "element": "a7bb5354-851a-45b1-aff0-ae9ffd03cfc6", - "worker_version": "515addf4-19b5-4e5d-a2d3-65e2d7739d93", - "worker_run": "91aa0161-b394-46fa-9046-6bb09819c677", + "element": "75db941d-00a5-4c9a-aa11-3594181b1cb2", + "worker_version": "52ea454c-52ea-4dfd-bc5d-b3e46ab6540d", + "worker_run": "cc5dbf61-20f3-4286-8a82-e303a58783a0", "text": "PARIS", "orientation": "horizontal-lr", "confidence": 1.0 @@ -842,35 +842,35 @@ }, { "model": "documents.transcription", - "pk": "c4e4adb5-630c-4e05-9251-bbce6d9fb113", + "pk": "861c51ac-cec3-428c-9395-2a08ab02cbb8", "fields": { - "element": "dcfd760e-ec31-42b3-a043-b355c8e0cf2b", - "worker_version": "515addf4-19b5-4e5d-a2d3-65e2d7739d93", - "worker_run": "91aa0161-b394-46fa-9046-6bb09819c677", - "text": "Lorem ipsum dolor sit amet", + "element": "e792fe53-f1ed-459d-8b49-c7dae948c0db", + "worker_version": "52ea454c-52ea-4dfd-bc5d-b3e46ab6540d", + "worker_run": "cc5dbf61-20f3-4286-8a82-e303a58783a0", + "text": "PARIS", "orientation": "horizontal-lr", "confidence": 1.0 } }, { "model": "documents.transcription", - "pk": "c93b06cf-30c6-4912-9441-07739a75c8c2", + "pk": "8847e7ba-719e-4241-9008-3558640e7d21", "fields": { - "element": "a8937eb6-6507-477e-9e7e-2cd670ab2f62", - "worker_version": "515addf4-19b5-4e5d-a2d3-65e2d7739d93", - "worker_run": "91aa0161-b394-46fa-9046-6bb09819c677", - "text": "ROY", + "element": "04a1537a-35c2-4426-9533-63817890b5f5", + "worker_version": "52ea454c-52ea-4dfd-bc5d-b3e46ab6540d", + "worker_run": "cc5dbf61-20f3-4286-8a82-e303a58783a0", + "text": "PARIS", "orientation": "horizontal-lr", "confidence": 1.0 } }, { "model": "documents.transcription", - "pk": "d73f683f-686a-4c61-873a-a61e7a131928", + "pk": "88aaf736-a27c-4d27-b179-547e3951d2d3", "fields": { - "element": "f9fcf342-2dae-4b0a-932b-84c75ecd67a6", - "worker_version": "515addf4-19b5-4e5d-a2d3-65e2d7739d93", - "worker_run": "91aa0161-b394-46fa-9046-6bb09819c677", + "element": "8bff15a3-9f39-4111-947b-3e97b5605140", + "worker_version": "52ea454c-52ea-4dfd-bc5d-b3e46ab6540d", + "worker_run": "cc5dbf61-20f3-4286-8a82-e303a58783a0", "text": "DATUM", "orientation": "horizontal-lr", "confidence": 1.0 @@ -878,51 +878,51 @@ }, { "model": "documents.transcription", - "pk": "f122715f-5891-42e6-96c6-4e62541a1288", + "pk": "f213292c-3072-4a40-b1c3-738d69d9eb7b", "fields": { - "element": "7940c735-165b-42f5-a50b-7b7469293b1e", - "worker_version": "515addf4-19b5-4e5d-a2d3-65e2d7739d93", - "worker_run": "91aa0161-b394-46fa-9046-6bb09819c677", - "text": "PARIS", + "element": "99b51971-fbff-45c6-9e89-8bd0a598e1a4", + "worker_version": "52ea454c-52ea-4dfd-bc5d-b3e46ab6540d", + "worker_run": "cc5dbf61-20f3-4286-8a82-e303a58783a0", + "text": "DATUM", "orientation": "horizontal-lr", "confidence": 1.0 } }, { "model": "documents.allowedmetadata", - "pk": "d3f05abf-4642-4052-a9f9-9a916d61d53a", + "pk": "3d117229-fa3d-4065-916d-9fae54cd65bf", "fields": { - "corpus": "cc7ef77e-e57f-4079-ad1b-59234560d351", - "type": "location", - "name": "location" + "corpus": "9b13ef45-5eb4-48a7-92c4-4e2766f8ec3c", + "type": "date", + "name": "date" } }, { "model": "documents.allowedmetadata", - "pk": "f1efdda1-904f-4d09-94fa-4f5259e8cba8", + "pk": "d57bb037-f571-4cef-9638-13cf1b7f991c", "fields": { - "corpus": "cc7ef77e-e57f-4079-ad1b-59234560d351", - "type": "text", - "name": "folio" + "corpus": "9b13ef45-5eb4-48a7-92c4-4e2766f8ec3c", + "type": "location", + "name": "location" } }, { "model": "documents.allowedmetadata", - "pk": "fc5f3a6d-2b6d-40a5-88b3-9326ae00c064", + "pk": "feaacc29-a0e1-4aa3-8db6-7f4368706dc2", "fields": { - "corpus": "cc7ef77e-e57f-4079-ad1b-59234560d351", - "type": "date", - "name": "date" + "corpus": "9b13ef45-5eb4-48a7-92c4-4e2766f8ec3c", + "type": "text", + "name": "folio" } }, { "model": "documents.metadata", - "pk": "1af7a7f9-a3e1-40b0-85a1-5bd81978fe5d", + "pk": "125b87e7-7cad-4ca9-8470-eaf7e77749f1", "fields": { - "element": "81b69040-cd6e-45ae-9c8c-d705eca344dd", - "name": "number", + "element": "aa9cdf0c-7583-400e-8432-f3e388f5cf0d", + "name": "folio", "type": "text", - "value": "5", + "value": "1v", "entity": null, "worker_version": null, "worker_run": null @@ -930,12 +930,12 @@ }, { "model": "documents.metadata", - "pk": "22a4beba-2a73-41cc-b22b-72784bcbbcce", + "pk": "14f0de67-d225-49d0-81d9-b46d729c8e64", "fields": { - "element": "66f3547d-6d0c-4caa-84e0-0679ad68ef8e", - "name": "folio", + "element": "2331d5fb-fac5-431f-b313-9f0aa817c95b", + "name": "number", "type": "text", - "value": "1v", + "value": "5", "entity": null, "worker_version": null, "worker_run": null @@ -943,12 +943,12 @@ }, { "model": "documents.metadata", - "pk": "2a2a9396-7ab7-463b-9d27-eaaba1d46c1a", + "pk": "1ee373d0-163b-4955-8656-8746c9f68390", "fields": { - "element": "f8c8f16c-49c9-4751-867b-7be95af779f5", + "element": "4e0e24e6-52a3-4623-b8da-c6fb7471c861", "name": "folio", "type": "text", - "value": "1v", + "value": "2r", "entity": null, "worker_version": null, "worker_run": null @@ -956,12 +956,12 @@ }, { "model": "documents.metadata", - "pk": "3ab65070-3843-4f09-ab7e-42838362b24d", + "pk": "26ade477-4d41-4c93-9104-2baca79bc85a", "fields": { - "element": "098ce1f4-14b7-42ad-8af3-9355eaa5d10d", - "name": "folio", + "element": "bfa8252b-2859-4180-8358-fdcfedf82d7c", + "name": "number", "type": "text", - "value": "1r", + "value": "3", "entity": null, "worker_version": null, "worker_run": null @@ -969,9 +969,9 @@ }, { "model": "documents.metadata", - "pk": "48258e2f-65ca-49ed-9bd6-a658f43378ca", + "pk": "2eb35126-4dc5-468d-9e43-5d77fe7c16d7", "fields": { - "element": "c607a90c-cbbd-4425-85ab-2891947a9b5f", + "element": "bcd1fb0f-f910-4509-ba41-bf9fe67e67eb", "name": "folio", "type": "text", "value": "2r", @@ -982,12 +982,12 @@ }, { "model": "documents.metadata", - "pk": "640a4b91-a221-4a8e-a1af-f3833d632e22", + "pk": "4e266775-04d5-48ff-95ce-f5c685e418e7", "fields": { - "element": "d8916efa-23f8-46e2-b585-c06df764198c", - "name": "number", + "element": "98a67dc8-76d6-4a2c-931b-60a11ef601d9", + "name": "folio", "type": "text", - "value": "4", + "value": "1r", "entity": null, "worker_version": null, "worker_run": null @@ -995,9 +995,9 @@ }, { "model": "documents.metadata", - "pk": "647219ea-595f-4922-95ee-cfbdb3d1995f", + "pk": "8f57cc96-498f-4a69-a2b4-0bc31ca1345c", "fields": { - "element": "5f3d7f9a-1248-4bd3-8363-87f7068c9651", + "element": "b64fbadd-68b6-488c-89be-715ddb28590c", "name": "number", "type": "text", "value": "2", @@ -1008,12 +1008,12 @@ }, { "model": "documents.metadata", - "pk": "b98e333b-e81e-41fd-bd7e-bbd861adb018", + "pk": "960ecad0-1398-4800-984d-9b088568b8bd", "fields": { - "element": "dcfd760e-ec31-42b3-a043-b355c8e0cf2b", - "name": "folio", + "element": "b3433c27-0c42-4013-a645-67a4388cdd94", + "name": "number", "type": "text", - "value": "1r", + "value": "1", "entity": null, "worker_version": null, "worker_run": null @@ -1021,12 +1021,12 @@ }, { "model": "documents.metadata", - "pk": "c1a22596-96e2-4962-bafa-6ead2ab4b04a", + "pk": "c39cfe86-2cb8-4ada-81f3-5530597d5c62", "fields": { - "element": "2dc89721-85ce-469a-84de-822b2168fe27", - "name": "number", + "element": "95181a58-4d6f-45fc-881a-fc42e8b7c721", + "name": "folio", "type": "text", - "value": "3", + "value": "1r", "entity": null, "worker_version": null, "worker_run": null @@ -1034,12 +1034,12 @@ }, { "model": "documents.metadata", - "pk": "d4a76b9f-fb95-403c-8acc-f7cdc143b434", + "pk": "f1497e1a-f9c7-4da9-aa53-72529d9b1ffe", "fields": { - "element": "76882b5a-eff5-449e-b04b-b9a2a4ddd02f", - "name": "folio", + "element": "35886170-a511-424b-a1d5-984731ab4aed", + "name": "number", "type": "text", - "value": "2r", + "value": "4", "entity": null, "worker_version": null, "worker_run": null @@ -1047,12 +1047,12 @@ }, { "model": "documents.metadata", - "pk": "f6c18ec8-55ea-4819-b95f-4f8c5460ec1a", + "pk": "fe2703f5-5acd-4631-a12e-15c88b078898", "fields": { - "element": "97c52b91-3505-4aa9-af03-ed16922c2934", - "name": "number", + "element": "37ae14da-4051-43f7-ba68-2ed3014f508f", + "name": "folio", "type": "text", - "value": "1", + "value": "1v", "entity": null, "worker_version": null, "worker_run": null @@ -1075,7 +1075,7 @@ }, { "model": "images.image", - "pk": "03f88d9f-a29a-41fc-9d0c-986aa8bced29", + "pk": "2da54dd3-7b52-4398-9c8c-a693d831799a", "fields": { "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z", @@ -1089,12 +1089,12 @@ }, { "model": "images.image", - "pk": "124aa605-20de-4534-8436-461436dd84c8", + "pk": "6a72cd19-bfb5-41e4-984d-cd4430a9ae82", "fields": { "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z", "server": 1, - "path": "img5", + "path": "img6", "width": 1000, "height": 1000, "hash": null, @@ -1103,12 +1103,12 @@ }, { "model": "images.image", - "pk": "3123008c-f8df-41ef-986b-c14c91d42ef0", + "pk": "705621ae-c0f0-421d-bf76-b36e96334f2e", "fields": { "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z", "server": 1, - "path": "img6", + "path": "img4", "width": 1000, "height": 1000, "hash": null, @@ -1117,12 +1117,12 @@ }, { "model": "images.image", - "pk": "89f4c024-611e-4638-8033-2d174562f4d6", + "pk": "76cbee11-d210-4113-a491-65160eb43e18", "fields": { "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z", "server": 1, - "path": "img3", + "path": "img5", "width": 1000, "height": 1000, "hash": null, @@ -1131,12 +1131,12 @@ }, { "model": "images.image", - "pk": "b8be81ce-b9c3-45bf-b6b5-220fe08b7e94", + "pk": "9afed6a2-17ef-4d8a-8047-f7d8807c6fa2", "fields": { "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z", "server": 1, - "path": "img2", + "path": "img3", "width": 1000, "height": 1000, "hash": null, @@ -1145,12 +1145,12 @@ }, { "model": "images.image", - "pk": "fccaf2c2-41f6-4194-a7fb-23afcc205f66", + "pk": "b33648fa-233d-4599-825a-2f8f87ac16d7", "fields": { "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z", "server": 1, - "path": "img4", + "path": "img2", "width": 1000, "height": 1000, "hash": null, @@ -1160,7 +1160,7 @@ { "model": "users.user", "fields": { - "password": "pbkdf2_sha256$720000$faDSsYJhk6LCPqcHeZPn9E$+iMFVEmRU2p/PJTLsQh3VgzzHew6irI56cV5NGWAwQ4=", + "password": "pbkdf2_sha256$720000$70GuFXETxOwQQSz9Aib3x0$HOlbbzXT4WIAExYuxRM181VO89uzRtNBInwT5Obm7d0=", "last_login": null, "email": "root@root.fr", "display_name": "Admin", @@ -1179,7 +1179,7 @@ { "model": "users.user", "fields": { - "password": "pbkdf2_sha256$720000$Oz54b8mgtMQSdZB9oPmXKO$UGvQQpOCAtZ1xE/NYv1BpkngiLmT2s5s01NS6YFHTak=", + "password": "pbkdf2_sha256$720000$1kDQjHwH1uaBm6iQiD3l4T$DsGoCMTWCnmz6Mukwifc7ysuW9ro8Mwxc1MMARCujiQ=", "last_login": null, "email": "user@user.fr", "display_name": "Test user", @@ -1235,7 +1235,7 @@ }, { "model": "users.group", - "pk": "112f7287-749a-4bf6-9465-5e10a73e947e", + "pk": "f26f4984-c439-474c-a28a-35ab207c4eea", "fields": { "name": "User group", "public": false, @@ -1244,97 +1244,113 @@ }, { "model": "ponos.farm", - "pk": "50b00d54-ff7f-476e-8d70-917853c68a3b", + "pk": "79314671-52bc-42c7-aaa1-ace2aefc73a1", "fields": { "name": "Wheat farm", - "seed": "06f21787ba1bd3f91f9f8dffd7a90ad80e0dec54090c3a7572a555192b670eb0" + "seed": "4b0eb4d32ede0a4e9cf0a3190485fe461a7d4a14fb823d27bc513491ac5472b4" } }, { "model": "training.dataset", - "pk": "251acff0-1288-405d-9fc8-abc518f74ca6", + "pk": "99363540-0f19-4319-b3a2-f88583dc3add", "fields": { "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z", - "corpus": "cc7ef77e-e57f-4079-ad1b-59234560d351", + "corpus": "9b13ef45-5eb4-48a7-92c4-4e2766f8ec3c", "creator": [ "user@user.fr" ], "task": null, - "name": "Second Dataset", - "description": "dataset number two", + "name": "First Dataset", + "description": "dataset number one", "state": "open", "unique_elements": true } }, { "model": "training.dataset", - "pk": "b0b232f6-b685-41bd-ab4a-6989aac51bb5", + "pk": "a672f8a6-85d6-407f-a58a-809da093931e", "fields": { "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z", - "corpus": "cc7ef77e-e57f-4079-ad1b-59234560d351", + "corpus": "9b13ef45-5eb4-48a7-92c4-4e2766f8ec3c", "creator": [ "user@user.fr" ], "task": null, - "name": "First Dataset", - "description": "dataset number one", + "name": "Second Dataset", + "description": "dataset number two", "state": "open", "unique_elements": true } }, { "model": "training.datasetset", - "pk": "0c0d09d2-eed2-422b-b108-3ad8efa95b55", + "pk": "1eee70f7-2a92-4e8d-b14f-c9bbc89c2aa2", "fields": { - "name": "train", - "dataset": "251acff0-1288-405d-9fc8-abc518f74ca6" + "name": "dev", + "dataset": "a672f8a6-85d6-407f-a58a-809da093931e" } }, { "model": "training.datasetset", - "pk": "167cd933-03fa-4538-874e-073cb99329bc", + "pk": "1f7310d0-6618-4f1a-a43e-f7e7ddfed296", "fields": { "name": "test", - "dataset": "b0b232f6-b685-41bd-ab4a-6989aac51bb5" + "dataset": "99363540-0f19-4319-b3a2-f88583dc3add" } }, { "model": "training.datasetset", - "pk": "1985c4af-10b5-4174-82ae-788a26439ddb", + "pk": "32ce4cbc-a76f-4b96-8ee8-a817257ea4c1", "fields": { "name": "test", - "dataset": "251acff0-1288-405d-9fc8-abc518f74ca6" + "dataset": "a672f8a6-85d6-407f-a58a-809da093931e" + } +}, +{ + "model": "training.datasetset", + "pk": "678e7414-489d-4418-a3b2-824c632b2aea", + "fields": { + "name": "train", + "dataset": "99363540-0f19-4319-b3a2-f88583dc3add" } }, { "model": "training.datasetset", - "pk": "705d145d-173a-4b65-a88a-d762a4217c2c", + "pk": "b4dcf070-bde8-4a44-8ea9-7556f3f163eb", "fields": { "name": "dev", - "dataset": "251acff0-1288-405d-9fc8-abc518f74ca6" + "dataset": "99363540-0f19-4319-b3a2-f88583dc3add" } }, { "model": "training.datasetset", - "pk": "8389254e-2ccc-4c6c-b9b0-579089e34f01", + "pk": "d3da05ed-e913-4616-9301-52c86729f5de", "fields": { "name": "train", - "dataset": "b0b232f6-b685-41bd-ab4a-6989aac51bb5" + "dataset": "a672f8a6-85d6-407f-a58a-809da093931e" } }, { - "model": "training.datasetset", - "pk": "94625a65-66d1-4b04-85eb-5a2f1a878ff6", + "model": "users.right", + "pk": "0b83b838-8bfb-4e6b-8f04-cc86340a622d", "fields": { - "name": "dev", - "dataset": "b0b232f6-b685-41bd-ab4a-6989aac51bb5" + "user": [ + "user@user.fr" + ], + "group": null, + "content_type": [ + "users", + "group" + ], + "content_id": "f26f4984-c439-474c-a28a-35ab207c4eea", + "level": 100 } }, { "model": "users.right", - "pk": "76e933d8-77b5-4bbc-94d3-5f28eec96a9c", + "pk": "3f5c89f0-1d8b-4d00-b3a7-e48895299586", "fields": { "user": [ "user@user.fr" @@ -1344,13 +1360,13 @@ "ponos", "farm" ], - "content_id": "50b00d54-ff7f-476e-8d70-917853c68a3b", + "content_id": "79314671-52bc-42c7-aaa1-ace2aefc73a1", "level": 10 } }, { "model": "users.right", - "pk": "7bf667e4-693a-4afa-9abb-aa27376e5ee7", + "pk": "504868f8-4faa-47a5-9bb3-2744b88b1615", "fields": { "user": [ "user3@user.fr" @@ -1360,13 +1376,13 @@ "users", "group" ], - "content_id": "112f7287-749a-4bf6-9465-5e10a73e947e", + "content_id": "f26f4984-c439-474c-a28a-35ab207c4eea", "level": 10 } }, { "model": "users.right", - "pk": "7fdf5b25-e5c2-45c5-a210-5b7299bdf9f0", + "pk": "50c7f9d3-e6ac-4a88-8bff-d21600924f55", "fields": { "user": [ "user@user.fr" @@ -1376,13 +1392,13 @@ "documents", "corpus" ], - "content_id": "cc7ef77e-e57f-4079-ad1b-59234560d351", + "content_id": "9b13ef45-5eb4-48a7-92c4-4e2766f8ec3c", "level": 100 } }, { "model": "users.right", - "pk": "cdd8edec-9807-4e05-9afa-dfadb961e7e0", + "pk": "d8e17a82-ad52-42c1-9713-eb94832a8095", "fields": { "user": [ "user2@user.fr" @@ -1392,40 +1408,24 @@ "users", "group" ], - "content_id": "112f7287-749a-4bf6-9465-5e10a73e947e", + "content_id": "f26f4984-c439-474c-a28a-35ab207c4eea", "level": 50 } }, -{ - "model": "users.right", - "pk": "fc12824a-e0b8-46dd-83aa-da34ef4b33e6", - "fields": { - "user": [ - "user@user.fr" - ], - "group": null, - "content_type": [ - "users", - "group" - ], - "content_id": "112f7287-749a-4bf6-9465-5e10a73e947e", - "level": 100 - } -}, { "model": "documents.element", - "pk": "098ce1f4-14b7-42ad-8af3-9355eaa5d10d", + "pk": "04a1537a-35c2-4426-9533-63817890b5f5", "fields": { "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z", - "corpus": "cc7ef77e-e57f-4079-ad1b-59234560d351", - "type": "4af36a9d-178a-4288-86a2-c9720e651cc9", - "name": "Volume 2, page 1r", + "corpus": "9b13ef45-5eb4-48a7-92c4-4e2766f8ec3c", + "type": "b61111fd-61e7-45f1-aa99-20c5f105357a", + "name": "PARIS", "creator": null, "worker_version": null, "worker_run": null, - "image": "fccaf2c2-41f6-4194-a7fb-23afcc205f66", - "polygon": "LINEARRING (0 0, 0 1000, 1000 1000, 1000 0, 0 0)", + "image": "b33648fa-233d-4599-825a-2f8f87ac16d7", + "polygon": "LINEARRING (100 100, 100 200, 200 200, 200 100, 100 100)", "rotation_angle": 0, "mirrored": false, "confidence": null @@ -1433,18 +1433,18 @@ }, { "model": "documents.element", - "pk": "107914cd-c72e-41f7-8107-f1f4cf81ce0a", + "pk": "1b829e8b-8ebe-4e86-a257-b7aaa2f7a22d", "fields": { "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z", - "corpus": "cc7ef77e-e57f-4079-ad1b-59234560d351", - "type": "0397255e-79f7-4e55-b1d5-504967141ef4", - "name": "DATUM", + "corpus": "9b13ef45-5eb4-48a7-92c4-4e2766f8ec3c", + "type": "b445d965-667a-4690-8732-98659d8645dd", + "name": "Volume 1", "creator": null, "worker_version": null, "worker_run": null, - "image": "89f4c024-611e-4638-8033-2d174562f4d6", - "polygon": "LINEARRING (700 700, 700 800, 800 800, 800 700, 700 700)", + "image": null, + "polygon": null, "rotation_angle": 0, "mirrored": false, "confidence": null @@ -1452,13 +1452,13 @@ }, { "model": "documents.element", - "pk": "1d371c29-fc5e-4685-a7d8-61fab52b7fc6", + "pk": "2331d5fb-fac5-431f-b313-9f0aa817c95b", "fields": { "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z", - "corpus": "cc7ef77e-e57f-4079-ad1b-59234560d351", - "type": "5e21fc0c-859d-4961-870a-f164ae5d0f40", - "name": "Volume 1", + "corpus": "9b13ef45-5eb4-48a7-92c4-4e2766f8ec3c", + "type": "b71d6bbe-b2b0-46a8-a983-e34cab59aa1e", + "name": "Act 5", "creator": null, "worker_version": null, "worker_run": null, @@ -1471,18 +1471,18 @@ }, { "model": "documents.element", - "pk": "1e017729-6c04-42ed-b9ae-e55619832a5b", + "pk": "2d08b6c7-2d0e-4d51-b989-a724ce6f40c7", "fields": { "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z", - "corpus": "cc7ef77e-e57f-4079-ad1b-59234560d351", - "type": "8c84d58d-7e3f-41b1-ad18-230657b0793d", - "name": "Surface E", + "corpus": "9b13ef45-5eb4-48a7-92c4-4e2766f8ec3c", + "type": "2b310b2a-33bd-42fe-bfb1-2915928b00cc", + "name": "Surface D", "creator": null, "worker_version": null, "worker_run": null, - "image": "89f4c024-611e-4638-8033-2d174562f4d6", - "polygon": "LINEARRING (300 300, 300 600, 600 600, 600 300, 300 300)", + "image": "9afed6a2-17ef-4d8a-8047-f7d8807c6fa2", + "polygon": "LINEARRING (0 0, 0 300, 300 300, 300 0, 0 0)", "rotation_angle": 0, "mirrored": false, "confidence": null @@ -1490,18 +1490,18 @@ }, { "model": "documents.element", - "pk": "24c3a34f-f56d-438e-abd9-ecafafad0942", + "pk": "35886170-a511-424b-a1d5-984731ab4aed", "fields": { "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z", - "corpus": "cc7ef77e-e57f-4079-ad1b-59234560d351", - "type": "0397255e-79f7-4e55-b1d5-504967141ef4", - "name": "ROY", + "corpus": "9b13ef45-5eb4-48a7-92c4-4e2766f8ec3c", + "type": "b71d6bbe-b2b0-46a8-a983-e34cab59aa1e", + "name": "Act 4", "creator": null, "worker_version": null, "worker_run": null, - "image": "89f4c024-611e-4638-8033-2d174562f4d6", - "polygon": "LINEARRING (400 400, 400 500, 500 500, 500 400, 400 400)", + "image": null, + "polygon": null, "rotation_angle": 0, "mirrored": false, "confidence": null @@ -1509,18 +1509,18 @@ }, { "model": "documents.element", - "pk": "2dc89721-85ce-469a-84de-822b2168fe27", + "pk": "3597272d-3226-4f06-9a2f-6b479d247060", "fields": { "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z", - "corpus": "cc7ef77e-e57f-4079-ad1b-59234560d351", - "type": "a824b040-9c3c-453f-9c01-eca24f95c73a", - "name": "Act 3", + "corpus": "9b13ef45-5eb4-48a7-92c4-4e2766f8ec3c", + "type": "2b310b2a-33bd-42fe-bfb1-2915928b00cc", + "name": "Surface E", "creator": null, "worker_version": null, "worker_run": null, - "image": null, - "polygon": null, + "image": "9afed6a2-17ef-4d8a-8047-f7d8807c6fa2", + "polygon": "LINEARRING (300 300, 300 600, 600 600, 600 300, 300 300)", "rotation_angle": 0, "mirrored": false, "confidence": null @@ -1528,17 +1528,17 @@ }, { "model": "documents.element", - "pk": "55ccfc5d-6051-4aee-85c0-181026cb750d", + "pk": "37ae14da-4051-43f7-ba68-2ed3014f508f", "fields": { "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z", - "corpus": "cc7ef77e-e57f-4079-ad1b-59234560d351", - "type": "8c84d58d-7e3f-41b1-ad18-230657b0793d", - "name": "Surface C", + "corpus": "9b13ef45-5eb4-48a7-92c4-4e2766f8ec3c", + "type": "324f4646-138e-425b-bb6c-76cbdd8c038c", + "name": "Volume 2, page 1v", "creator": null, "worker_version": null, "worker_run": null, - "image": "b8be81ce-b9c3-45bf-b6b5-220fe08b7e94", + "image": "76cbee11-d210-4113-a491-65160eb43e18", "polygon": "LINEARRING (0 0, 0 1000, 1000 1000, 1000 0, 0 0)", "rotation_angle": 0, "mirrored": false, @@ -1547,18 +1547,18 @@ }, { "model": "documents.element", - "pk": "5a2e53e0-389f-45f5-83d5-3017891474e4", + "pk": "4e0e24e6-52a3-4623-b8da-c6fb7471c861", "fields": { "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z", - "corpus": "cc7ef77e-e57f-4079-ad1b-59234560d351", - "type": "a5c36248-99e5-4896-8775-623fbdf87dc4", - "name": "Text line", + "corpus": "9b13ef45-5eb4-48a7-92c4-4e2766f8ec3c", + "type": "324f4646-138e-425b-bb6c-76cbdd8c038c", + "name": "Volume 2, page 2r", "creator": null, "worker_version": null, "worker_run": null, - "image": "03f88d9f-a29a-41fc-9d0c-986aa8bced29", - "polygon": "LINEARRING (400 400, 400 500, 500 500, 500 400, 400 400)", + "image": "6a72cd19-bfb5-41e4-984d-cd4430a9ae82", + "polygon": "LINEARRING (0 0, 0 1000, 1000 1000, 1000 0, 0 0)", "rotation_angle": 0, "mirrored": false, "confidence": null @@ -1566,13 +1566,13 @@ }, { "model": "documents.element", - "pk": "5f3d7f9a-1248-4bd3-8363-87f7068c9651", + "pk": "6db35fcd-3c50-4a16-b204-568850b6dbb0", "fields": { "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z", - "corpus": "cc7ef77e-e57f-4079-ad1b-59234560d351", - "type": "a824b040-9c3c-453f-9c01-eca24f95c73a", - "name": "Act 2", + "corpus": "9b13ef45-5eb4-48a7-92c4-4e2766f8ec3c", + "type": "b445d965-667a-4690-8732-98659d8645dd", + "name": "Volume 2", "creator": null, "worker_version": null, "worker_run": null, @@ -1585,18 +1585,18 @@ }, { "model": "documents.element", - "pk": "66f3547d-6d0c-4caa-84e0-0679ad68ef8e", + "pk": "75db941d-00a5-4c9a-aa11-3594181b1cb2", "fields": { "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z", - "corpus": "cc7ef77e-e57f-4079-ad1b-59234560d351", - "type": "4af36a9d-178a-4288-86a2-c9720e651cc9", - "name": "Volume 1, page 1v", + "corpus": "9b13ef45-5eb4-48a7-92c4-4e2766f8ec3c", + "type": "b61111fd-61e7-45f1-aa99-20c5f105357a", + "name": "PARIS", "creator": null, "worker_version": null, "worker_run": null, - "image": "b8be81ce-b9c3-45bf-b6b5-220fe08b7e94", - "polygon": "LINEARRING (0 0, 0 1000, 1000 1000, 1000 0, 0 0)", + "image": "2da54dd3-7b52-4398-9c8c-a693d831799a", + "polygon": "LINEARRING (100 100, 100 200, 200 200, 200 100, 100 100)", "rotation_angle": 0, "mirrored": false, "confidence": null @@ -1604,18 +1604,18 @@ }, { "model": "documents.element", - "pk": "76882b5a-eff5-449e-b04b-b9a2a4ddd02f", + "pk": "8bff15a3-9f39-4111-947b-3e97b5605140", "fields": { "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z", - "corpus": "cc7ef77e-e57f-4079-ad1b-59234560d351", - "type": "4af36a9d-178a-4288-86a2-c9720e651cc9", - "name": "Volume 1, page 2r", + "corpus": "9b13ef45-5eb4-48a7-92c4-4e2766f8ec3c", + "type": "b61111fd-61e7-45f1-aa99-20c5f105357a", + "name": "DATUM", "creator": null, "worker_version": null, "worker_run": null, - "image": "89f4c024-611e-4638-8033-2d174562f4d6", - "polygon": "LINEARRING (0 0, 0 1000, 1000 1000, 1000 0, 0 0)", + "image": "b33648fa-233d-4599-825a-2f8f87ac16d7", + "polygon": "LINEARRING (700 700, 700 800, 800 800, 800 700, 700 700)", "rotation_angle": 0, "mirrored": false, "confidence": null @@ -1623,18 +1623,18 @@ }, { "model": "documents.element", - "pk": "7940c735-165b-42f5-a50b-7b7469293b1e", + "pk": "95181a58-4d6f-45fc-881a-fc42e8b7c721", "fields": { "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z", - "corpus": "cc7ef77e-e57f-4079-ad1b-59234560d351", - "type": "0397255e-79f7-4e55-b1d5-504967141ef4", - "name": "PARIS", + "corpus": "9b13ef45-5eb4-48a7-92c4-4e2766f8ec3c", + "type": "324f4646-138e-425b-bb6c-76cbdd8c038c", + "name": "Volume 2, page 1r", "creator": null, "worker_version": null, "worker_run": null, - "image": "03f88d9f-a29a-41fc-9d0c-986aa8bced29", - "polygon": "LINEARRING (100 100, 100 200, 200 200, 200 100, 100 100)", + "image": "705621ae-c0f0-421d-bf76-b36e96334f2e", + "polygon": "LINEARRING (0 0, 0 1000, 1000 1000, 1000 0, 0 0)", "rotation_angle": 0, "mirrored": false, "confidence": null @@ -1642,18 +1642,18 @@ }, { "model": "documents.element", - "pk": "81b69040-cd6e-45ae-9c8c-d705eca344dd", + "pk": "98a67dc8-76d6-4a2c-931b-60a11ef601d9", "fields": { "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z", - "corpus": "cc7ef77e-e57f-4079-ad1b-59234560d351", - "type": "a824b040-9c3c-453f-9c01-eca24f95c73a", - "name": "Act 5", + "corpus": "9b13ef45-5eb4-48a7-92c4-4e2766f8ec3c", + "type": "324f4646-138e-425b-bb6c-76cbdd8c038c", + "name": "Volume 1, page 1r", "creator": null, "worker_version": null, "worker_run": null, - "image": null, - "polygon": null, + "image": "2da54dd3-7b52-4398-9c8c-a693d831799a", + "polygon": "LINEARRING (0 0, 0 1000, 1000 1000, 1000 0, 0 0)", "rotation_angle": 0, "mirrored": false, "confidence": null @@ -1661,18 +1661,18 @@ }, { "model": "documents.element", - "pk": "8df38d7d-eb55-43b0-853a-0f4ff1a03c1c", + "pk": "99b4ca3d-834f-4010-b94f-ea02e307ceb4", "fields": { "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z", - "corpus": "cc7ef77e-e57f-4079-ad1b-59234560d351", - "type": "0397255e-79f7-4e55-b1d5-504967141ef4", - "name": "PARIS", + "corpus": "9b13ef45-5eb4-48a7-92c4-4e2766f8ec3c", + "type": "9d74a557-1c41-4fcb-9ac4-706fc8438a01", + "name": "Text line", "creator": null, "worker_version": null, "worker_run": null, - "image": "b8be81ce-b9c3-45bf-b6b5-220fe08b7e94", - "polygon": "LINEARRING (100 100, 100 200, 200 200, 200 100, 100 100)", + "image": "2da54dd3-7b52-4398-9c8c-a693d831799a", + "polygon": "LINEARRING (400 400, 400 500, 500 500, 500 400, 400 400)", "rotation_angle": 0, "mirrored": false, "confidence": null @@ -1680,18 +1680,18 @@ }, { "model": "documents.element", - "pk": "96ab9501-2a7a-4f39-bdae-83e790d3aff5", + "pk": "99b51971-fbff-45c6-9e89-8bd0a598e1a4", "fields": { "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z", - "corpus": "cc7ef77e-e57f-4079-ad1b-59234560d351", - "type": "8c84d58d-7e3f-41b1-ad18-230657b0793d", - "name": "Surface A", + "corpus": "9b13ef45-5eb4-48a7-92c4-4e2766f8ec3c", + "type": "b61111fd-61e7-45f1-aa99-20c5f105357a", + "name": "DATUM", "creator": null, "worker_version": null, "worker_run": null, - "image": "03f88d9f-a29a-41fc-9d0c-986aa8bced29", - "polygon": "LINEARRING (0 0, 0 600, 600 600, 600 0, 0 0)", + "image": "9afed6a2-17ef-4d8a-8047-f7d8807c6fa2", + "polygon": "LINEARRING (700 700, 700 800, 800 800, 800 700, 700 700)", "rotation_angle": 0, "mirrored": false, "confidence": null @@ -1699,18 +1699,18 @@ }, { "model": "documents.element", - "pk": "97c52b91-3505-4aa9-af03-ed16922c2934", + "pk": "aa918643-b18a-4970-a5c4-f18ff3594462", "fields": { "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z", - "corpus": "cc7ef77e-e57f-4079-ad1b-59234560d351", - "type": "a824b040-9c3c-453f-9c01-eca24f95c73a", - "name": "Act 1", + "corpus": "9b13ef45-5eb4-48a7-92c4-4e2766f8ec3c", + "type": "b61111fd-61e7-45f1-aa99-20c5f105357a", + "name": "DATUM", "creator": null, "worker_version": null, "worker_run": null, - "image": null, - "polygon": null, + "image": "2da54dd3-7b52-4398-9c8c-a693d831799a", + "polygon": "LINEARRING (700 700, 700 800, 800 800, 800 700, 700 700)", "rotation_angle": 0, "mirrored": false, "confidence": null @@ -1718,18 +1718,18 @@ }, { "model": "documents.element", - "pk": "9b7fea12-e589-42c4-b055-3421a4b24031", + "pk": "aa9cdf0c-7583-400e-8432-f3e388f5cf0d", "fields": { "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z", - "corpus": "cc7ef77e-e57f-4079-ad1b-59234560d351", - "type": "0397255e-79f7-4e55-b1d5-504967141ef4", - "name": "DATUM", + "corpus": "9b13ef45-5eb4-48a7-92c4-4e2766f8ec3c", + "type": "324f4646-138e-425b-bb6c-76cbdd8c038c", + "name": "Volume 1, page 1v", "creator": null, "worker_version": null, "worker_run": null, - "image": "03f88d9f-a29a-41fc-9d0c-986aa8bced29", - "polygon": "LINEARRING (700 700, 700 800, 800 800, 800 700, 700 700)", + "image": "b33648fa-233d-4599-825a-2f8f87ac16d7", + "polygon": "LINEARRING (0 0, 0 1000, 1000 1000, 1000 0, 0 0)", "rotation_angle": 0, "mirrored": false, "confidence": null @@ -1737,18 +1737,18 @@ }, { "model": "documents.element", - "pk": "a2fcf757-b182-4e9d-99ac-b20f1298ef41", + "pk": "aeed5364-c2b1-45d9-81e8-f1591a1dc59d", "fields": { "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z", - "corpus": "cc7ef77e-e57f-4079-ad1b-59234560d351", - "type": "5e21fc0c-859d-4961-870a-f164ae5d0f40", - "name": "Volume 2", + "corpus": "9b13ef45-5eb4-48a7-92c4-4e2766f8ec3c", + "type": "2b310b2a-33bd-42fe-bfb1-2915928b00cc", + "name": "Surface C", "creator": null, "worker_version": null, "worker_run": null, - "image": null, - "polygon": null, + "image": "b33648fa-233d-4599-825a-2f8f87ac16d7", + "polygon": "LINEARRING (0 0, 0 1000, 1000 1000, 1000 0, 0 0)", "rotation_angle": 0, "mirrored": false, "confidence": null @@ -1756,18 +1756,18 @@ }, { "model": "documents.element", - "pk": "a7bb5354-851a-45b1-aff0-ae9ffd03cfc6", + "pk": "b3433c27-0c42-4013-a645-67a4388cdd94", "fields": { "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z", - "corpus": "cc7ef77e-e57f-4079-ad1b-59234560d351", - "type": "0397255e-79f7-4e55-b1d5-504967141ef4", - "name": "PARIS", + "corpus": "9b13ef45-5eb4-48a7-92c4-4e2766f8ec3c", + "type": "b71d6bbe-b2b0-46a8-a983-e34cab59aa1e", + "name": "Act 1", "creator": null, "worker_version": null, "worker_run": null, - "image": "89f4c024-611e-4638-8033-2d174562f4d6", - "polygon": "LINEARRING (100 100, 100 200, 200 200, 200 100, 100 100)", + "image": null, + "polygon": null, "rotation_angle": 0, "mirrored": false, "confidence": null @@ -1775,18 +1775,18 @@ }, { "model": "documents.element", - "pk": "a8937eb6-6507-477e-9e7e-2cd670ab2f62", + "pk": "b64fbadd-68b6-488c-89be-715ddb28590c", "fields": { "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z", - "corpus": "cc7ef77e-e57f-4079-ad1b-59234560d351", - "type": "0397255e-79f7-4e55-b1d5-504967141ef4", - "name": "ROY", + "corpus": "9b13ef45-5eb4-48a7-92c4-4e2766f8ec3c", + "type": "b71d6bbe-b2b0-46a8-a983-e34cab59aa1e", + "name": "Act 2", "creator": null, "worker_version": null, "worker_run": null, - "image": "b8be81ce-b9c3-45bf-b6b5-220fe08b7e94", - "polygon": "LINEARRING (400 400, 400 500, 500 500, 500 400, 400 400)", + "image": null, + "polygon": null, "rotation_angle": 0, "mirrored": false, "confidence": null @@ -1794,18 +1794,18 @@ }, { "model": "documents.element", - "pk": "a9e868a3-bc05-4092-907e-a60fbd916292", + "pk": "bc662943-dfa5-4696-8480-fc236ff3651e", "fields": { "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z", - "corpus": "cc7ef77e-e57f-4079-ad1b-59234560d351", - "type": "0397255e-79f7-4e55-b1d5-504967141ef4", - "name": "ROY", + "corpus": "9b13ef45-5eb4-48a7-92c4-4e2766f8ec3c", + "type": "2b310b2a-33bd-42fe-bfb1-2915928b00cc", + "name": "Surface A", "creator": null, "worker_version": null, "worker_run": null, - "image": "03f88d9f-a29a-41fc-9d0c-986aa8bced29", - "polygon": "LINEARRING (400 400, 400 500, 500 500, 500 400, 400 400)", + "image": "2da54dd3-7b52-4398-9c8c-a693d831799a", + "polygon": "LINEARRING (0 0, 0 600, 600 600, 600 0, 0 0)", "rotation_angle": 0, "mirrored": false, "confidence": null @@ -1813,18 +1813,18 @@ }, { "model": "documents.element", - "pk": "ab185f1b-2840-4050-b166-42030fdd8dee", + "pk": "bcd1fb0f-f910-4509-ba41-bf9fe67e67eb", "fields": { "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z", - "corpus": "cc7ef77e-e57f-4079-ad1b-59234560d351", - "type": "8c84d58d-7e3f-41b1-ad18-230657b0793d", - "name": "Surface F", + "corpus": "9b13ef45-5eb4-48a7-92c4-4e2766f8ec3c", + "type": "324f4646-138e-425b-bb6c-76cbdd8c038c", + "name": "Volume 1, page 2r", "creator": null, "worker_version": null, "worker_run": null, - "image": "89f4c024-611e-4638-8033-2d174562f4d6", - "polygon": "LINEARRING (600 600, 600 1000, 1000 1000, 1000 600, 600 600)", + "image": "9afed6a2-17ef-4d8a-8047-f7d8807c6fa2", + "polygon": "LINEARRING (0 0, 0 1000, 1000 1000, 1000 0, 0 0)", "rotation_angle": 0, "mirrored": false, "confidence": null @@ -1832,18 +1832,18 @@ }, { "model": "documents.element", - "pk": "ba7d550b-119b-41cd-ad44-9218d170e146", + "pk": "bfa8252b-2859-4180-8358-fdcfedf82d7c", "fields": { "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z", - "corpus": "cc7ef77e-e57f-4079-ad1b-59234560d351", - "type": "8c84d58d-7e3f-41b1-ad18-230657b0793d", - "name": "Surface D", + "corpus": "9b13ef45-5eb4-48a7-92c4-4e2766f8ec3c", + "type": "b71d6bbe-b2b0-46a8-a983-e34cab59aa1e", + "name": "Act 3", "creator": null, "worker_version": null, "worker_run": null, - "image": "89f4c024-611e-4638-8033-2d174562f4d6", - "polygon": "LINEARRING (0 0, 0 300, 300 300, 300 0, 0 0)", + "image": null, + "polygon": null, "rotation_angle": 0, "mirrored": false, "confidence": null @@ -1851,18 +1851,18 @@ }, { "model": "documents.element", - "pk": "c607a90c-cbbd-4425-85ab-2891947a9b5f", + "pk": "cf7188f3-98f6-49ae-ab3f-d3ab8b53608e", "fields": { "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z", - "corpus": "cc7ef77e-e57f-4079-ad1b-59234560d351", - "type": "4af36a9d-178a-4288-86a2-c9720e651cc9", - "name": "Volume 2, page 2r", + "corpus": "9b13ef45-5eb4-48a7-92c4-4e2766f8ec3c", + "type": "2b310b2a-33bd-42fe-bfb1-2915928b00cc", + "name": "Surface B", "creator": null, "worker_version": null, "worker_run": null, - "image": "3123008c-f8df-41ef-986b-c14c91d42ef0", - "polygon": "LINEARRING (0 0, 0 1000, 1000 1000, 1000 0, 0 0)", + "image": "2da54dd3-7b52-4398-9c8c-a693d831799a", + "polygon": "LINEARRING (600 600, 600 1000, 1000 1000, 1000 600, 600 600)", "rotation_angle": 0, "mirrored": false, "confidence": null @@ -1870,18 +1870,18 @@ }, { "model": "documents.element", - "pk": "d8916efa-23f8-46e2-b585-c06df764198c", + "pk": "d462dd86-bd44-4e74-95a3-44fefd397df8", "fields": { "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z", - "corpus": "cc7ef77e-e57f-4079-ad1b-59234560d351", - "type": "a824b040-9c3c-453f-9c01-eca24f95c73a", - "name": "Act 4", + "corpus": "9b13ef45-5eb4-48a7-92c4-4e2766f8ec3c", + "type": "b61111fd-61e7-45f1-aa99-20c5f105357a", + "name": "ROY", "creator": null, "worker_version": null, "worker_run": null, - "image": null, - "polygon": null, + "image": "9afed6a2-17ef-4d8a-8047-f7d8807c6fa2", + "polygon": "LINEARRING (400 400, 400 500, 500 500, 500 400, 400 400)", "rotation_angle": 0, "mirrored": false, "confidence": null @@ -1889,18 +1889,18 @@ }, { "model": "documents.element", - "pk": "dcfd760e-ec31-42b3-a043-b355c8e0cf2b", + "pk": "dca5cf68-56fb-48df-b54a-3c09f3030a37", "fields": { "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z", - "corpus": "cc7ef77e-e57f-4079-ad1b-59234560d351", - "type": "4af36a9d-178a-4288-86a2-c9720e651cc9", - "name": "Volume 1, page 1r", + "corpus": "9b13ef45-5eb4-48a7-92c4-4e2766f8ec3c", + "type": "b61111fd-61e7-45f1-aa99-20c5f105357a", + "name": "ROY", "creator": null, "worker_version": null, "worker_run": null, - "image": "03f88d9f-a29a-41fc-9d0c-986aa8bced29", - "polygon": "LINEARRING (0 0, 0 1000, 1000 1000, 1000 0, 0 0)", + "image": "b33648fa-233d-4599-825a-2f8f87ac16d7", + "polygon": "LINEARRING (400 400, 400 500, 500 500, 500 400, 400 400)", "rotation_angle": 0, "mirrored": false, "confidence": null @@ -1908,18 +1908,18 @@ }, { "model": "documents.element", - "pk": "e2220d45-4bae-470a-8049-104303453dfb", + "pk": "e792fe53-f1ed-459d-8b49-c7dae948c0db", "fields": { "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z", - "corpus": "cc7ef77e-e57f-4079-ad1b-59234560d351", - "type": "8c84d58d-7e3f-41b1-ad18-230657b0793d", - "name": "Surface B", + "corpus": "9b13ef45-5eb4-48a7-92c4-4e2766f8ec3c", + "type": "b61111fd-61e7-45f1-aa99-20c5f105357a", + "name": "PARIS", "creator": null, "worker_version": null, "worker_run": null, - "image": "03f88d9f-a29a-41fc-9d0c-986aa8bced29", - "polygon": "LINEARRING (600 600, 600 1000, 1000 1000, 1000 600, 600 600)", + "image": "9afed6a2-17ef-4d8a-8047-f7d8807c6fa2", + "polygon": "LINEARRING (100 100, 100 200, 200 200, 200 100, 100 100)", "rotation_angle": 0, "mirrored": false, "confidence": null @@ -1927,18 +1927,18 @@ }, { "model": "documents.element", - "pk": "f8c8f16c-49c9-4751-867b-7be95af779f5", + "pk": "f1fbbe29-65c8-4a47-b912-6d4e04b39c01", "fields": { "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z", - "corpus": "cc7ef77e-e57f-4079-ad1b-59234560d351", - "type": "4af36a9d-178a-4288-86a2-c9720e651cc9", - "name": "Volume 2, page 1v", + "corpus": "9b13ef45-5eb4-48a7-92c4-4e2766f8ec3c", + "type": "2b310b2a-33bd-42fe-bfb1-2915928b00cc", + "name": "Surface F", "creator": null, "worker_version": null, "worker_run": null, - "image": "124aa605-20de-4534-8436-461436dd84c8", - "polygon": "LINEARRING (0 0, 0 1000, 1000 1000, 1000 0, 0 0)", + "image": "9afed6a2-17ef-4d8a-8047-f7d8807c6fa2", + "polygon": "LINEARRING (600 600, 600 1000, 1000 1000, 1000 600, 600 600)", "rotation_angle": 0, "mirrored": false, "confidence": null @@ -1946,18 +1946,18 @@ }, { "model": "documents.element", - "pk": "f9fcf342-2dae-4b0a-932b-84c75ecd67a6", + "pk": "f4427695-7181-43d7-b5f8-803846bd4493", "fields": { "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z", - "corpus": "cc7ef77e-e57f-4079-ad1b-59234560d351", - "type": "0397255e-79f7-4e55-b1d5-504967141ef4", - "name": "DATUM", + "corpus": "9b13ef45-5eb4-48a7-92c4-4e2766f8ec3c", + "type": "b61111fd-61e7-45f1-aa99-20c5f105357a", + "name": "ROY", "creator": null, "worker_version": null, "worker_run": null, - "image": "b8be81ce-b9c3-45bf-b6b5-220fe08b7e94", - "polygon": "LINEARRING (700 700, 700 800, 800 800, 800 700, 700 700)", + "image": "2da54dd3-7b52-4398-9c8c-a693d831799a", + "polygon": "LINEARRING (400 400, 400 500, 500 500, 500 400, 400 400)", "rotation_angle": 0, "mirrored": false, "confidence": null @@ -1965,7 +1965,7 @@ }, { "model": "process.process", - "pk": "2e0244bc-52c8-4984-997c-0f5141724803", + "pk": "49bef54f-c7cf-4c97-bd06-633ecf77efcf", "fields": { "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z", @@ -1995,7 +1995,7 @@ }, { "model": "process.process", - "pk": "97bb709a-05b7-4316-8081-3365b6f8693b", + "pk": "6ceedc11-f36b-418f-a19a-7c6b3dd96a82", "fields": { "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z", @@ -2003,12 +2003,12 @@ "creator": [ "user@user.fr" ], - "corpus": "cc7ef77e-e57f-4079-ad1b-59234560d351", + "corpus": "9b13ef45-5eb4-48a7-92c4-4e2766f8ec3c", "mode": "workers", "activity_state": "disabled", "started": null, "finished": null, - "farm": "50b00d54-ff7f-476e-8d70-917853c68a3b", + "farm": "79314671-52bc-42c7-aaa1-ace2aefc73a1", "element": null, "folder_type": null, "element_type": null, @@ -2025,7 +2025,7 @@ }, { "model": "process.process", - "pk": "c6a56ae0-7ee7-41e3-b997-d31d89d0de91", + "pk": "9767c1c7-cc6a-4a69-96b1-d8c0e7ee4c33", "fields": { "created": "2020-02-02T01:23:45.678Z", "updated": "2020-02-02T01:23:45.678Z", diff --git a/arkindex/documents/management/commands/build_fixtures.py b/arkindex/documents/management/commands/build_fixtures.py index 173a2d9596..afda9fe8e5 100644 --- a/arkindex/documents/management/commands/build_fixtures.py +++ b/arkindex/documents/management/commands/build_fixtures.py @@ -86,6 +86,7 @@ class Command(BaseCommand): name="Elements Initialisation Worker", slug="initialisation", type=init_type, + public=True ), version=1, configuration={ @@ -129,6 +130,7 @@ class Command(BaseCommand): name="File import", slug="file_import", type=import_worker_type, + public=True, ), version=1, configuration={}, diff --git a/arkindex/process/api.py b/arkindex/process/api.py index 15c6c3ecae..13a40a4636 100644 --- a/arkindex/process/api.py +++ b/arkindex/process/api.py @@ -42,6 +42,7 @@ from rest_framework.generics import ( GenericAPIView, ListAPIView, ListCreateAPIView, + RetrieveAPIView, RetrieveUpdateAPIView, RetrieveUpdateDestroyAPIView, ) @@ -54,6 +55,7 @@ from arkindex.ponos.models import FINAL_STATES, STATES_ORDERING, State, Task from arkindex.ponos.permissions import IsTask, IsVerifiedOrAgent from arkindex.process.models import ( ActivityState, + ArkindexFeature, DataFile, Process, ProcessDatasetSet, @@ -1094,6 +1096,43 @@ class WorkerVersionRetrieve(RetrieveUpdateAPIView): raise PermissionDenied(detail="Only Ponos tasks are allowed to update a worker version.") +@extend_schema(tags=["worker versions"]) +@extend_schema_view( + get=extend_schema( + operation_id="RetrieveFeatureWorkerVersion", + parameters=[ + OpenApiParameter( + "feature", + type=str, + location=OpenApiParameter.PATH, + description="Name of the feature provided by the worker version.", + enum=[item.value for item in ArkindexFeature], + required=True, + ) + ], + ) +) +class FeatureWorkerVersionRetrieve(RetrieveAPIView): + permission_classes = (IsVerifiedOrReadOnly, ) + serializer_class = WorkerVersionSerializer + + def get_object(self): + try: + feature = ArkindexFeature(self.kwargs["feature"]) + except ValueError: + raise ValidationError({"feature": f'{self.kwargs["feature"]} is not a valid Arkindex feature.'}) + try: + return ( + WorkerVersion + .objects + .filter(worker__in=Worker.objects.executable(self.request.user)) + .select_related("worker__type") + .get_by_feature(feature) + ) + except WorkerVersion.DoesNotExist: + raise NotFound + + @extend_schema(tags=["workers"]) @extend_schema_view( get=extend_schema( @@ -1885,7 +1924,7 @@ class WorkerActivityList(CorpusACLMixin, ProcessACLMixin, ListAPIView): try: return UUID(value) except (TypeError, ValueError): - errors[key] = ["Not a valid UUID."] + errors[key] = ["Not a valid UUID."] def get_uuid_or_none(self, key, errors): value = self.request.query_params.get(key) diff --git a/arkindex/process/managers.py b/arkindex/process/managers.py index 7d141c14e9..7263aed19f 100644 --- a/arkindex/process/managers.py +++ b/arkindex/process/managers.py @@ -153,16 +153,19 @@ class WorkerResultSourceQuerySet(QuerySet): for relation in self.worker_result_relations ) - -class WorkerVersionManager(Manager): - - @lru_cache def get_by_feature(self, feature): try: return self.select_related("worker").get(feature=feature) except self.model.DoesNotExist: raise self.model.DoesNotExist(f"There are no worker versions supporting the {feature.name} feature.") + +class WorkerVersionManager(Manager): + + @lru_cache + def get_by_feature(self, feature): + return self.get_queryset().get_by_feature(feature) + def get_queryset(self): return WorkerResultSourceQuerySet(self.model, using=self._db) diff --git a/arkindex/process/tests/test_worker_types.py b/arkindex/process/tests/test_worker_types.py index 4859fc429d..120d837740 100644 --- a/arkindex/process/tests/test_worker_types.py +++ b/arkindex/process/tests/test_worker_types.py @@ -101,17 +101,16 @@ class TestWorkerTypes(FixtureAPITestCase): # Emulate a contributor access to a `dla` worker self.assertTrue(self.worker_type_dla.workers.exists()) filter_rights_mock.return_value = Worker.objects.filter(type=self.worker_type_dla) - - # Make `init` workers public, which should also include the type in the list without contributor access + # The init elements and file import workers are public self.assertTrue(self.init_type.workers.exists()) - self.init_type.workers.update(public=True) + self.assertTrue(self.worker_type_import.workers.exists()) with self.assertNumQueries(4): response = self.client.get(reverse("api:worker-type-list")) self.assertEqual(response.status_code, status.HTTP_200_OK) self.assertDictEqual(response.json(), { - "count": 2, + "count": 3, "previous": None, "next": None, "number": 1, @@ -126,6 +125,11 @@ class TestWorkerTypes(FixtureAPITestCase): "slug": "init", "display_name": "Elements Initialisation", }, + { + "id": str(self.worker_type_import.id), + "slug": "import", + "display_name": "Import", + } ], }) diff --git a/arkindex/process/tests/worker_versions/test_retrieve_feature.py b/arkindex/process/tests/worker_versions/test_retrieve_feature.py new file mode 100644 index 0000000000..c7e6cf672c --- /dev/null +++ b/arkindex/process/tests/worker_versions/test_retrieve_feature.py @@ -0,0 +1,85 @@ + +from unittest.mock import call, patch + +from django.urls import reverse +from rest_framework import status + +from arkindex.process.models import FeatureUsage, Worker, WorkerVersion +from arkindex.project.tests import FixtureAPITestCase +from arkindex.users.models import Role + + +class TestFeatureWorkerVersionRetrieve(FixtureAPITestCase): + + @classmethod + def setUpTestData(cls): + super().setUpTestData() + cls.init_version = WorkerVersion.objects.get(worker__slug="initialisation") + + def test_retrieve_requires_logged_in(self): + with self.assertNumQueries(0): + response = self.client.get(reverse("api:feature-worker-version", kwargs={"feature": "init_elements"})) + self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND) + data = response.json() + self.assertDictEqual(data, {"detail": "Not found."}) + + @patch("arkindex.users.utils.filter_rights", return_value=Worker.objects.none()) + def test_retrieve_not_public(self, filter_rights_mock): + """ + If the worker is not public, it must be executable by the user + """ + # Make the elements initialisation worker not public + self.init_version.worker.public = False + self.init_version.worker.save() + + self.client.force_login(self.user) + with self.assertNumQueries(3): + response = self.client.get(reverse("api:feature-worker-version", kwargs={"feature": "init_elements"})) + self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND) + data = response.json() + self.assertDictEqual(data, {"detail": "Not found."}) + self.assertEqual(filter_rights_mock.call_count, 1) + self.assertEqual(filter_rights_mock.call_args, call(self.user, Worker, Role.Contributor.value)) + + def test_retrieve(self): + self.client.force_login(self.user) + with self.assertNumQueries(3): + response = self.client.get(reverse("api:feature-worker-version", kwargs={"feature": "init_elements"})) + self.assertEqual(response.status_code, status.HTTP_200_OK) + data = response.json() + self.assertDictEqual(data, { + "id": str(self.init_version.id), + "configuration": {"docker": {"command": "worker-init-elements"}}, + "docker_image_iid": self.init_version.docker_image_iid, + "state": "available", + "gpu_usage": "disabled", + "model_usage": FeatureUsage.Disabled.value, + "revision_url": None, + "version": 1, + "tag": None, + "branch": None, + "worker": { + "id": str(self.init_version.worker.id), + "name": "Elements Initialisation Worker", + "type": "init", + "slug": "initialisation", + "description": "", + "archived": False, + "repository_url": None, + }, + "created": "2020-02-02T01:23:45.678000Z", + }) + + def test_no_feature_version(self): + self.client.force_login(self.user) + with self.assertNumQueries(3): + response = self.client.get(reverse("api:feature-worker-version", kwargs={"feature": "s3_ingest"})) + self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND) + self.assertDictEqual(response.json(), {"detail": "Not found."}) + + def test_not_a_feature(self): + self.client.force_login(self.user) + with self.assertNumQueries(2): + response = self.client.get(reverse("api:feature-worker-version", kwargs={"feature": "make_coffee"})) + self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) + self.assertDictEqual(response.json(), {"feature": "make_coffee is not a valid Arkindex feature."}) diff --git a/arkindex/process/tests/workers/test_list.py b/arkindex/process/tests/workers/test_list.py index 8cb466a6bf..ac7c5519d5 100644 --- a/arkindex/process/tests/workers/test_list.py +++ b/arkindex/process/tests/workers/test_list.py @@ -340,23 +340,42 @@ class TestWorkerList(FixtureAPITestCase): @patch("arkindex.users.managers.BaseACLManager.filter_rights") def test_requires_contributor(self, filter_rights_mock): """ - User is not able to list workers with a guest access + User is not able to list workers with a guest access, except public workers """ self.client.force_login(self.user) filter_rights_mock.side_effect = [ Worker.objects.none(), ] - with self.assertNumQueries(3): + with self.assertNumQueries(4): response = self.client.get(reverse("api:workers-list")) self.assertEqual(response.status_code, status.HTTP_200_OK) self.assertDictEqual(response.json(), { - "count": 0, + "count": 2, "next": None, "number": 1, "previous": None, - "results": [] + "results": [ + { + "archived": False, + "description": "", + "id": "bf56381e-a669-4e61-8d19-fc0e23171463", + "name": "Elements Initialisation Worker", + "repository_url": None, + "slug": "initialisation", + "type": "init" + }, + { + "archived": False, + "description": "", + "id": "f0f5787d-3e41-4d16-aa56-b84f64103c12", + "name": "File import", + "repository_url": None, + "slug": "file_import", + "type": "import" + } + ] }) self.assertListEqual(filter_rights_mock.call_args_list, [ diff --git a/arkindex/project/api_v1.py b/arkindex/project/api_v1.py index 2f1bfc43fd..9760c7e21d 100644 --- a/arkindex/project/api_v1.py +++ b/arkindex/project/api_v1.py @@ -70,6 +70,7 @@ from arkindex.process.api import ( DataFileCreate, DataFileList, DataFileRetrieve, + FeatureWorkerVersionRetrieve, FilesProcess, ListProcessElements, ProcessDatasetSetManage, @@ -241,6 +242,7 @@ api = [ path("workers/<uuid:pk>/versions/", WorkerVersionList.as_view(), name="worker-versions"), path("workers/versions/<uuid:pk>/", WorkerVersionRetrieve.as_view(), name="version-retrieve"), path("workers/versions/<uuid:pk>/activity/", UpdateWorkerActivity.as_view(), name="update-worker-activity"), + path("workers/versions/feature/<feature>/", FeatureWorkerVersionRetrieve.as_view(), name="feature-worker-version"), path("workers/configurations/<uuid:pk>/", WorkerConfigurationRetrieve.as_view(), name="configuration-retrieve"), # Import workflows -- GitLab