metadata_form() method is not initialised for the FASTA Application Profile in a S3 Resource
Hi, First, I made sure to use the most recent coscine SDK version (0.8.1; installed via pip in a conda environment). I can create a S3 resource via the SDK without problem. However, when I want to add files to this resource, the metadata form is unfortunately empty (see below).
>>> genomes = prj.resource("genomes")
>>> print(genomes)
+---------------------------------------------------------------------+
| Resource genomes |
+---------------------+-----------------------------------------------+
| Property | Value |
+---------------------+-----------------------------------------------+
| ID | 377bdff4-9422-4e82-82a4-0d4089bca46f |
| Resource Name | genomes |
| Display Name | genomes |
| PID | 21.11102/377bdff4-9422-4e82-82a4-0d4089bca46f |
| Type | rdss3rwth |
| Disciplines | Microbiology, Virology and Immunology 204 |
| License | |
| Application Profile | https://purl.org/coscine/ap/fasta |
| Archived | False |
| Creator | a04ae09d-7d96-47e4-9d24-3cfed5225491 |
| Project | AG_CLAVEL_HiBC |
| Project ID | 08397183-3f5c-4f46-ac6b-ca048b4f8175 |
+---------------------+-----------------------------------------------+
>>>
>>> new_fasta = genomes.metadata_form()
>>> print(new_fasta) # EMPTY METADATA FORM
+---+----------+-------+
| C | Property | Value |
+---+----------+-------+
+---+----------+-------+
I had a look at another S3 sandbox resource that was created online via the GUI using the RADAR AP and the metadata form was correctly generated.
>>> foo = prj.resource("Sandbox-Test-Connection")
+---------------------------------------------------------------------+
| Resource Sandbox-Test-Connection |
+---------------------+-----------------------------------------------+
| Property | Value |
+---------------------+-----------------------------------------------+
| ID | 62b6ab6c-2e44-4ce5-a86f-d34b50a214e4 |
| Resource Name | Sandbox-Test-Connection |
| Display Name | Sandbox-Test-Connection |
| PID | 21.11102/62b6ab6c-2e44-4ce5-a86f-d34b50a214e4 |
| Type | rdss3rwth |
| Disciplines | Microbiology, Virology and Immunology 204 |
| License | |
| Application Profile | https://purl.org/coscine/ap/radar/ |
| Archived | False |
| Creator | a04ae09d-7d96-47e4-9d24-3cfed5225491 |
| Project | AG_CLAVEL_HiBC |
| Project ID | 08397183-3f5c-4f46-ac6b-ca048b4f8175 |
+---------------------+-----------------------------------------------+
>>> foo.profile
'https://purl.org/coscine/ap/radar/'
>>> bar = foo.metadata_form()
>>> print(bar)
+---+------------------+-------+
| C | Property | Value |
+---+------------------+-------+
| | Creator* | |
| | Title* | |
| | Production Date* | |
| X | Subject Area | |
| X | Resource | |
| | Rights | |
| | Rightsholder | |
+---+------------------+-------+
Could the issue stems from the Application Profile (should I had updated the AP for some reason?) or from the fact that the S3 resource was created online?
Best, Charlie