archesproject / arches-for-science

Arches for Science
13 stars 9 forks source link

Annotation features failing to load #480

Closed chiatt closed 3 years ago

chiatt commented 3 years ago

This issue can be reproduced by loading resource 5768193e-7eaf-4e89-9112-7ad900b9bc0b found in lines 4766 through 4782 of the Physical Thing.csv in the byz_tms_20210729 branch of the afs-test-pkg repo.

ryan86 commented 3 years ago

I get the following errors and warnings when trying to load this resource alone. The related resource errors are is expected but there are several others that need to be addressed.


2021-08-12 14:10:42,855 arches.app.utils.data_management.resources.formats.csvfile ERROR    datatype: ResourceInstanceListDataType value: [{'resourceId': '4d1c5b38-2e05-486e-ab17-61cfcf9e93b1,5c5d91c0-f51e-47c7-8f43-632d05a30341', 'ontologyProperty': 'http://www.cidoc-crm.org/cidoc-crm/P14_carried_out_by', 'resourceXresourceId': '', 'inverseOntologyProperty': 'http://www.cidoc-crm.org/cidoc-crm/P14i_performed'}] on line 22 - 'NoneType' object has no attribute 'config' or is not a prefLabel in the given collection.
2021-08-12 14:10:42,856 arches.app.utils.data_management.resources.formats.csvfile ERROR    datatype: ResourceInstanceDataType value: [{'resourceId': '245f17b0-c7de-4ad6-8474-27b5ddbb7350', 'ontologyProperty': 'https://linked.art/ns/terms/added_to', 'resourceXresourceId': '', 'inverseOntologyProperty': 'https://linked.art/ns/terms/added_member'}] on line 22 - 'NoneType' object has no attribute 'config' or is not a prefLabel in the given collection.
2021-08-12 14:10:42,857 arches.app.utils.data_management.resources.formats.csvfile ERROR    datatype: DateDataType value: 5/20/20 on line 22 - time data '5/20/20' does not match format '%Y-%m-%d' or is not a prefLabel in the given collection.
2021-08-12 14:10:42,859 arches.app.utils.data_management.resources.formats.csvfile WARNING  The Addition to Collection_Added To node is required and must be populated in                                             order to populate the Addition to Collection_type, Addition to Collection, Addition to Collection_label, Addition to Collection_technique, Addition to Collection_used object, Addition to Collection_carried out by, Addition to Collection_during, Addition to Collection_location, Addition to Collection_influence, Addition to Collection_source, Addition to Collection_Added To nodes.                                             This data was not imported.
2021-08-12 14:10:42,860 arches.app.utils.data_management.resources.formats.csvfile ERROR    datatype: ResourceInstanceListDataType value: [{'resourceId': '4d1c5b38-2e05-486e-ab17-61cfcf9e93b1,5c5d91c0-f51e-47c7-8f43-632d05a30341', 'ontologyProperty': 'http://www.cidoc-crm.org/cidoc-crm/P14_carried_out_by', 'resourceXresourceId': '', 'inverseOntologyProperty': 'http://www.cidoc-crm.org/cidoc-crm/P14i_performed'}] on line 23 - 'NoneType' object has no attribute 'config' or is not a prefLabel in the given collection.
2021-08-12 14:10:42,861 arches.app.utils.data_management.resources.formats.csvfile ERROR    datatype: ResourceInstanceDataType value: [{'resourceId': '673af81e-068e-4577-a786-d5aee964db5f', 'ontologyProperty': 'https://linked.art/ns/terms/added_to', 'resourceXresourceId': '', 'inverseOntologyProperty': 'https://linked.art/ns/terms/added_member'}] on line 23 - 'NoneType' object has no attribute 'config' or is not a prefLabel in the given collection.
2021-08-12 14:10:42,862 arches.app.utils.data_management.resources.formats.csvfile ERROR    datatype: DateDataType value: 5/20/20 on line 23 - time data '5/20/20' does not match format '%Y-%m-%d' or is not a prefLabel in the given collection.
2021-08-12 14:10:42,863 arches.app.utils.data_management.resources.formats.csvfile WARNING  The Addition to Collection_Added To node is required and must be populated in                                             order to populate the Addition to Collection_type, Addition to Collection, Addition to Collection_label, Addition to Collection_technique, Addition to Collection_used object, Addition to Collection_carried out by, Addition to Collection_during, Addition to Collection_location, Addition to Collection_influence, Addition to Collection_source, Addition to Collection_Added To nodes.                                             This data was not imported.
2021-08-12 14:10:42,865 arches.app.utils.data_management.resources.formats.csvfile ERROR    concept error, a48e0fba-dd85-487a-9e12-34d36d84d529  on line 30 - This UUID is not an available concept value. Unable to save.
2021-08-12 14:10:42,867 arches.app.utils.data_management.resources.formats.csvfile ERROR    concept error, f7293efc-0f82-44c4-b1fe-fc6ac918ecbb  on line 33 - This UUID is not an available concept value. Unable to save.
2021-08-12 14:10:42,868 arches.app.utils.data_management.resources.formats.csvfile ERROR    datatype: ResourceInstanceListDataType value: [{'resourceId': 'c496a7b4-6087-4deb-a1ac-0f21bd3fd87b', 'ontologyProperty': 'http://www.cidoc-crm.org/cidoc-crm/P52_has_current_owner', 'resourceXresourceId': '', 'inverseOntologyProperty': 'http://www.cidoc-crm.org/cidoc-crm/P52i_is_current_owner_of'}] on line 40 - 'NoneType' object has no attribute 'config' or is not a prefLabel in the given collection.
2021-08-12 14:10:42,869 arches.app.utils.data_management.resources.formats.csvfile ERROR    datatype: ResourceInstanceDataType value: [{'resourceId': '773d7c3c-cecd-4ff2-97c2-27531c760d47', 'ontologyProperty': 'http://www.cidoc-crm.org/cidoc-crm/P67i_is_referred_to_by', 'resourceXresourceId': '', 'inverseOntologyProperty': 'http://www.cidoc-crm.org/cidoc-crm/P67_refers_to'}] on line 44 - 'NoneType' object has no attribute 'config' or is not a prefLabel in the given collection.
2021-08-12 14:10:42,871 arches.app.utils.data_management.resources.formats.csvfile ERROR    datatype: ResourceInstanceDataType value: [{'resourceId': 'f56f2d08-12e9-4c6e-9c97-7a389acb658b', 'ontologyProperty': 'http://www.cidoc-crm.org/cidoc-crm/P67i_is_referred_to_by', 'resourceXresourceId': '', 'inverseOntologyProperty': 'http://www.cidoc-crm.org/cidoc-crm/P67_refers_to'}] on line 45 - 'NoneType' object has no attribute 'config' or is not a prefLabel in the given collection.
2021-08-12 14:10:42,872 arches.app.utils.data_management.resources.formats.csvfile WARNING  Name_content is null or not mapped on rows 2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45 and                                 participates in a display value function.
2021-08-12 14:10:42,874 arches.app.utils.data_management.resources.formats.csvfile WARNING  Statement_content is null or not mapped on rows 2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45 and                                 participates in a display value function.
2021-08-12 14:10:42,886 arches.app.utils.data_management.resources.formats.csvfile WARNING  2021-08-12 14:10:42.819770: WARNING: failed to save document in resource: 5768193e-7eaf-4e89-9112-7ad900b9bc0b on line 45. Exception detail:
'This card requires values for the following: Set Added To'
chiatt commented 3 years ago

Resolved