Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vnd.nasa.pds.pds4+json format does return information #214

Closed
plawton-umd opened this issue Aug 12, 2022 · 4 comments
Closed

vnd.nasa.pds.pds4+json format does return information #214

plawton-umd opened this issue Aug 12, 2022 · 4 comments
Assignees
Labels
B13.1 bug Something isn't working s.medium

Comments

@plawton-umd
Copy link

plawton-umd commented Aug 12, 2022

🐛 Describe the bug

curl --get 'https://pds.nasa.gov/api/search-sbnumd/1.0/bundles/urn:nasa:pds:gbo-kpno::4.0/collections' --header 'Accept: application/vnd.nasa.pds.pds4+json'

returns nothing

📜 To Reproduce

Steps to reproduce the behavior:

type

curl --get 'https://pds.nasa.gov/api/search-sbnumd/1.0/bundles/urn:nasa:pds:gbo-kpno::4.0/collections' --header 'Accept: application/vnd.nasa.pds.pds4+json'

🕵️ Expected behavior

Return of the information that the command line
curl --get 'httpov/api/search-sbnumd/1.0/bundles/urn:nasa:pds:gbo-kpno::4.0/collections' --header 'Accept: application/json'
returns with the expected differences.

📚 Version of Software Used

1.0

🩺 Test Data / Additional context

see above

🏞Screenshots

🖥 System Info

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

MacOS 11.4
terminal window


🦄 Related requirements

⚙️ Engineering Details

@plawton-umd
Copy link
Author

@jordanpadams
Copy link
Member

jordanpadams commented Sep 2, 2022

@viviant100 FYI, this is a requirement that we need to make sure is included in every I&T sequence across all endpoints:

NASA-PDS/registry-api#450

@viviant100
Copy link

Noted. I&T ticket #29 is created to track this requirement.

@al-niessner
Copy link
Contributor

@jordanpadams @jimmie

Works on main branch with local test data:

$ curl -X GET 'http://localhost:8080/bundles/urn:nasa:pds:insight_rad::2.1/collections' --header 'Accept: application/vnd.nasa.pds.pds4+json'
{
"summary":{"q":"","hits":3,"took":16,"start":0,"limit":100,"sort":[],"properties":["ops:Data_File_Info.ops:creation_date_time","ops:Data_File_Info.ops:file_name","ops:Data_File_Info.ops:file_ref","ops:Data_File_Info.ops:file_size","ops:Data_File_Info.ops:md5_checksum","ops:Data_File_Info.ops:mime_type","ops:Harvest_Info.ops:node_name","ops:Label_File_Info.ops:creation_date_time","ops:Label_File_Info.ops:file_name","ops:Label_File_Info.ops:file_ref","ops:Label_File_Info.ops:file_size","ops:Label_File_Info.ops:json_blob","ops:Label_File_Info.ops:md5_checksum","ops:Tracking_Meta.ops:archive_status"]},
"data":[{
"id": "urn:nasa:pds:insight_rad:data_derived::7.0",
"meta": {"node_name":"PDS_ENG","ops:Label_File_Info":{"ops:file_name":"collection_data_rad_derived.xml","ops:file_ref":"/data/data_derived/collection_data_rad_derived.xml","ops:creation_date":"2020-12-11T00:50:32Z","ops:file_size":"9206","ops:md5_checksum":"8abb856e5b847f939e422fda2f97a1cf"},"ops:Data_Files":[{"ops:file_name":"collection_data_rad_derived.csv","ops:file_ref":"/data/data_derived/collection_data_rad_derived.csv","ops:creation_date":"2020-12-11T00:49:36Z","ops:file_size":"560","ops:md5_checksum":"e3b799cc6a6a780deab6dd1529d81330","ops:mime_type":"text/plain"}],"ops:Tracking_Meta":{"ops:archive_status":"archived"}},
"pds4": {"Product_Collection":{"Identification_Area":{"product_class":"Product_Collection","Modification_History":{"Modification_Detail":[{"modification_date":"2018-02-14","description":"Delivery test version","version_id":0.9},{"modification_date":"2019-06-26","description":"This collection contains InSight Release 1, part 2, derived data.\r\n                    See Release Notes document in the Reference List for details.","version_id":1},{"modification_date":"2019-09-23","description":"This collection is updated for InSight Release 2.\r\n                    See Release Notes document in the Reference List for details.","version_id":2},{"modification_date":"2019-12-11","description":"This collection is updated for InSight Release 3.\r\n                    See Release Notes document in the Reference List for details.","version_id":3},{"modification_date":"2020-03-09","description":"This collection is updated for InSight Release 4.\r\n                    See Release Notes document in the Reference List for details.","version_id":4},{"modification_date":"2020-06-02","description":"This collection is updated for InSight Release 5.\r\n                    See Release Notes document in the Reference List for details.","version_id":5},{"modification_date":"2020-09-09","description":"This collection is updated for InSight Release 6.\r\n                    See Release Notes document in the Reference List for details.","version_id":6},{"modification_date":"2020-12-10","description":"This collection is updated for InSight Release 7.\r\n                    See Release Notes document in the Reference List for details.","version_id":7}]},"information_model_version":"1.10.1.0","logical_identifier":"urn:nasa:pds:insight_rad:data_derived","version_id":7,"Citation_Information":{"publication_year":2018,"description":"InSight RAD Derived Data Collection"},"title":"InSight RAD Derived Data Collection"},"xmlns":"http://pds.nasa.gov/pds4/pds/v1","File_Area_Inventory":{"File":{"file_name":"collection_data_rad_derived.csv","creation_date_time":"2018-02-14"},"Inventory":{"offset":{"unit":"byte","content":0},"records":7,"parsing_standard_id":"PDS DSV 1","record_delimiter":"Carriage-Return Line-Feed","field_delimiter":"Comma","reference_type":"inventory_has_member_product","Record_Delimited":{"Field_Delimited":[{"field_number":1,"maximum_field_length":{"unit":"byte","content":1},"name":"Member Status","data_type":"ASCII_String"},{"field_number":2,"maximum_field_length":{"unit":"byte","content":255},"name":"LIDVID_LID","data_type":"ASCII_LIDVID_LID"}],"groups":0,"fields":2}}},"Reference_List":{"Internal_Reference":[{"lid_reference":"urn:nasa:pds:insight_documents:document_mission","comment":"See the Mission Document collection in the InSight Document bundle \r\n                for information about the mission, spacecraft, and instruments.","reference_type":"collection_to_document"},{"lid_reference":"urn:nasa:pds:insight_documents:document_hp3rad:hp3_rad_sis","comment":"See the HP3/RAD Software Interface Specification document in the\r\n                HP3/RAD document collection for information about the products in the\r\n                RAD Derived Data collection.","reference_type":"collection_to_document"},{"lid_reference":"urn:nasa:pds:insight_documents:document_hp3rad:release_notes","comment":"The Release Notes document in the HP3/RAD document collection\r\n                has notes and errata concerning each public release of HP3/RAD data.","reference_type":"collection_to_document"}]},"xsi:schemaLocation":"http://pds.nasa.gov/pds4/pds/v1 \r\n                     https://pds.nasa.gov/pds4/pds/v1/PDS4_PDS_1A10.xsd","Collection":{"collection_type":"Data"},"xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","Context_Area":{"Investigation_Area":{"Internal_Reference":{"lid_reference":"urn:nasa:pds:context:investigation:mission.insight","reference_type":"collection_to_investigation"},"name":"InSight","type":"Mission"},"Observing_System":{"name":"InSight","Observing_System_Component":[{"Internal_Reference":{"lid_reference":"urn:nasa:pds:context:instrument_host:spacecraft.insight","reference_type":"is_instrument_host"},"name":"InSight","type":"Spacecraft"},{"Internal_Reference":{"lid_reference":"urn:nasa:pds:context:instrument:radiometer.insight","reference_type":"is_instrument"},"name":"RAD","type":"Instrument"}]},"Primary_Result_Summary":{"purpose":"Science","processing_level":"Derived","Science_Facets":{"discipline_name":"Geosciences","domain":"Surface"}},"Time_Coordinates":{"stop_date_time":"2028-01-01Z","start_date_time":"2018-01-01Z"},"Target_Identification":{"Internal_Reference":{"lid_reference":"urn:nasa:pds:context:target:planet.mars","reference_type":"collection_to_target"},"name":"Mars","type":"Planet"}}}}}
,
{
"id": "urn:nasa:pds:insight_rad:data_raw::8.0",
"meta": {"node_name":"PDS_ENG","ops:Label_File_Info":{"ops:file_name":"collection_data_rad_raw.xml","ops:file_ref":"/data/data_raw/collection_data_rad_raw.xml","ops:creation_date":"2020-12-11T00:53:40Z","ops:file_size":"9606","ops:md5_checksum":"36ecd547b4be491b584a95975511dc86"},"ops:Data_Files":[{"ops:file_name":"collection_data_rad_raw.csv","ops:file_ref":"/data/data_raw/collection_data_rad_raw.csv","ops:creation_date":"2020-12-11T00:52:28Z","ops:file_size":"532","ops:md5_checksum":"9fe65bbce7cc34015f1706f5bb4fdaa2","ops:mime_type":"text/plain"}],"ops:Tracking_Meta":{"ops:archive_status":"archived"}},
"pds4": {"Product_Collection":{"Identification_Area":{"product_class":"Product_Collection","Modification_History":{"Modification_Detail":[{"modification_date":"2018-02-14","description":"Delivery test version","version_id":0.9},{"modification_date":"2019-04-22","description":"This collection contains InSight Release 1, part 1, raw data.\r\n                    See Release Notes document in the Reference List for details.","version_id":1},{"modification_date":"2019-06-05","description":"Product urn:nasa:pds:insight_rad:data_raw:hp3_rad_raw_00004_20181130_085325\r\n                    in this collection was updated with InSight Release 1, part 2.","version_id":2},{"modification_date":"2019-09-23","description":"This collection is updated for InSight Release 2.\r\n                    See Release Notes document in the Reference List for details.","version_id":3},{"modification_date":"2019-12-11","description":"This collection is updated for InSight Release 3.\r\n                    See Release Notes document in the Reference List for details.","version_id":4},{"modification_date":"2020-03-09","description":"This collection is updated for InSight Release 4.\r\n                    See Release Notes document in the Reference List for details.","version_id":5},{"modification_date":"2020-06-02","description":"This collection is updated for InSight Release 5.\r\n                    See Release Notes document in the Reference List for details.","version_id":6},{"modification_date":"2020-09-09","description":"This collection is updated for InSight Release 6.\r\n                    See Release Notes document in the Reference List for details.","version_id":7},{"modification_date":"2020-12-10","description":"This collection is updated for InSight Release 7.\r\n                    See Release Notes document in the Reference List for details.","version_id":8}]},"information_model_version":"1.10.1.0","logical_identifier":"urn:nasa:pds:insight_rad:data_raw","version_id":8,"Citation_Information":{"publication_year":2018,"description":"InSight RAD Raw Data Collection"},"title":"InSight RAD Raw Data Collection"},"xmlns":"http://pds.nasa.gov/pds4/pds/v1","File_Area_Inventory":{"File":{"file_name":"collection_data_rad_raw.csv","creation_date_time":"2018-06-11"},"Inventory":{"offset":{"unit":"byte","content":0},"records":7,"parsing_standard_id":"PDS DSV 1","record_delimiter":"Carriage-Return Line-Feed","field_delimiter":"Comma","reference_type":"inventory_has_member_product","Record_Delimited":{"Field_Delimited":[{"field_number":1,"maximum_field_length":{"unit":"byte","content":1},"name":"Member Status","data_type":"ASCII_String"},{"field_number":2,"maximum_field_length":{"unit":"byte","content":255},"name":"LIDVID_LID","data_type":"ASCII_LIDVID_LID"}],"groups":0,"fields":2}}},"Reference_List":{"Internal_Reference":[{"lid_reference":"urn:nasa:pds:insight_documents:document_mission","comment":"See the Mission Document collection in the InSight Document bundle \r\n                for information about the mission, spacecraft, and instruments.","reference_type":"collection_to_document"},{"lid_reference":"urn:nasa:pds:insight_documents:document_hp3rad:hp3_rad_sis","comment":"See the HP3/RAD Software Interface Specification document in the\r\n                HP3/RAD document collection for information about the products in the\r\n                RAD Raw Data collection.","reference_type":"collection_to_document"},{"lid_reference":"urn:nasa:pds:insight_documents:document_hp3rad:release_notes","comment":"The Release Notes document in the HP3/RAD document collection\r\n                has notes and errata concerning each public release of HP3/RAD data.","reference_type":"collection_to_document"}]},"xsi:schemaLocation":"http://pds.nasa.gov/pds4/pds/v1 \r\n                     https://pds.nasa.gov/pds4/pds/v1/PDS4_PDS_1A10.xsd","Collection":{"collection_type":"Data"},"xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","Context_Area":{"Investigation_Area":{"Internal_Reference":{"lid_reference":"urn:nasa:pds:context:investigation:mission.insight","reference_type":"collection_to_investigation"},"name":"InSight","type":"Mission"},"Observing_System":{"name":"InSight","Observing_System_Component":[{"Internal_Reference":{"lid_reference":"urn:nasa:pds:context:instrument_host:spacecraft.insight","reference_type":"is_instrument_host"},"name":"InSight","type":"Spacecraft"},{"Internal_Reference":{"lid_reference":"urn:nasa:pds:context:instrument:radiometer.insight","reference_type":"is_instrument"},"name":"RAD","type":"Instrument"}]},"Primary_Result_Summary":{"purpose":"Science","processing_level":"Raw","Science_Facets":{"discipline_name":"Geosciences","domain":"Surface"}},"Time_Coordinates":{"stop_date_time":"2028-01-01Z","start_date_time":"2018-01-01Z"},"Target_Identification":{"Internal_Reference":{"lid_reference":"urn:nasa:pds:context:target:planet.mars","reference_type":"collection_to_target"},"name":"Mars","type":"Planet"}}}}}
,
{
"id": "urn:nasa:pds:insight_rad:data_calibrated::7.0",
"meta": {"node_name":"PDS_ENG","ops:Label_File_Info":{"ops:file_name":"collection_data_rad_calibrated.xml","ops:file_ref":"/data/data_calibrated/collection_data_rad_calibrated.xml","ops:creation_date":"2020-12-11T00:46:36Z","ops:file_size":"9225","ops:md5_checksum":"ab37d5904cdee8f554652986a81911a5"},"ops:Data_Files":[{"ops:file_name":"collection_data_rad_calibrated.csv","ops:file_ref":"/data/data_calibrated/collection_data_rad_calibrated.csv","ops:creation_date":"2020-12-11T00:44:44Z","ops:file_size":"581","ops:md5_checksum":"374ac573ec2553fb2f7d20e9afadd87c","ops:mime_type":"text/plain"}],"ops:Tracking_Meta":{"ops:archive_status":"staged"}},
"pds4": {"Product_Collection":{"Identification_Area":{"product_class":"Product_Collection","Modification_History":{"Modification_Detail":[{"modification_date":"2018-02-14","description":"Peer-review version","version_id":0.1},{"modification_date":"2019-06-26","description":"This collection contains InSight Release 1, part 2, calibrated data.\r\n                    See Release Notes document in the Reference List for details.","version_id":1},{"modification_date":"2019-09-23","description":"This collection is updated for InSight Release 2.\r\n                    See Release Notes document in the Reference List for details.","version_id":2},{"modification_date":"2019-12-11","description":"This collection is updated for InSight Release 3.\r\n                    See Release Notes document in the Reference List for details.","version_id":3},{"modification_date":"2020-03-09","description":"This collection is updated for InSight Release 4.\r\n                    See Release Notes document in the Reference List for details.","version_id":4},{"modification_date":"2020-06-02","description":"This collection is updated for InSight Release 5.\r\n                    See Release Notes document in the Reference List for details.","version_id":5},{"modification_date":"2020-09-09","description":"This collection is updated for InSight Release 6.\r\n                    See Release Notes document in the Reference List for details.","version_id":6},{"modification_date":"2020-12-10","description":"This collection is updated for InSight Release 7.\r\n                    See Release Notes document in the Reference List for details.","version_id":7}]},"information_model_version":"1.10.1.0","logical_identifier":"urn:nasa:pds:insight_rad:data_calibrated","version_id":7,"Citation_Information":{"publication_year":2018,"description":"InSight RAD Calibrated Data Collection"},"title":"InSight RAD Calibrated Data Collection"},"xmlns":"http://pds.nasa.gov/pds4/pds/v1","File_Area_Inventory":{"File":{"file_name":"collection_data_rad_calibrated.csv","creation_date_time":"2018-02-14"},"Inventory":{"offset":{"unit":"byte","content":0},"records":7,"parsing_standard_id":"PDS DSV 1","record_delimiter":"Carriage-Return Line-Feed","field_delimiter":"Comma","reference_type":"inventory_has_member_product","Record_Delimited":{"Field_Delimited":[{"field_number":1,"maximum_field_length":{"unit":"byte","content":1},"name":"Member Status","data_type":"ASCII_String"},{"field_number":2,"maximum_field_length":{"unit":"byte","content":255},"name":"LIDVID_LID","data_type":"ASCII_LIDVID_LID"}],"groups":0,"fields":2}}},"Reference_List":{"Internal_Reference":[{"lid_reference":"urn:nasa:pds:insight_documents:document_mission","comment":"See the Mission Document collection in the InSight Document bundle \r\n                for information about the mission, spacecraft, and instruments.","reference_type":"collection_to_document"},{"lid_reference":"urn:nasa:pds:insight_documents:document_hp3rad:hp3_rad_sis","comment":"See the HP3/RAD Software Interface Specification document in the\r\n                HP3/RAD document collection for information about the products in the\r\n                RAD Calibrated Data collection.","reference_type":"collection_to_document"},{"lid_reference":"urn:nasa:pds:insight_documents:document_hp3rad:release_notes","comment":"The Release Notes document in the HP3/RAD document collection\r\n                has notes and errata concerning each public release of HP3/RAD data.","reference_type":"collection_to_document"}]},"xsi:schemaLocation":"http://pds.nasa.gov/pds4/pds/v1 \r\n                     https://pds.nasa.gov/pds4/pds/v1/PDS4_PDS_1A10.xsd","Collection":{"collection_type":"Data"},"xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","Context_Area":{"Investigation_Area":{"Internal_Reference":{"lid_reference":"urn:nasa:pds:context:investigation:mission.insight","reference_type":"collection_to_investigation"},"name":"InSight","type":"Mission"},"Observing_System":{"name":"InSight","Observing_System_Component":[{"Internal_Reference":{"lid_reference":"urn:nasa:pds:context:instrument_host:spacecraft.insight","reference_type":"is_instrument_host"},"name":"InSight","type":"Spacecraft"},{"Internal_Reference":{"lid_reference":"urn:nasa:pds:context:instrument:radiometer.insight","reference_type":"is_instrument"},"name":"RAD","type":"Instrument"}]},"Primary_Result_Summary":{"purpose":"Science","processing_level":"Calibrated","Science_Facets":{"discipline_name":"Geosciences","domain":"Surface"}},"Time_Coordinates":{"stop_date_time":"2028-01-01Z","start_date_time":"2018-01-01Z"},"Target_Identification":{"Internal_Reference":{"lid_reference":"urn:nasa:pds:context:target:planet.mars","reference_type":"collection_to_target"},"name":"Mars","type":"Planet"}}}}}
]
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
B13.1 bug Something isn't working s.medium
Projects
None yet
Development

No branches or pull requests

4 participants