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+xml format does not return information #215

Closed
Tracked by #30
plawton-umd opened this issue Aug 12, 2022 · 12 comments
Closed
Tracked by #30

vnd.nasa.pds.pds4+xml format does not return information #215

plawton-umd opened this issue Aug 12, 2022 · 12 comments
Assignees
Labels

Comments

@plawton-umd
Copy link

plawton-umd commented Aug 12, 2022

🐛 Describe the bug

Using the format information on https://nasa-pds.github.io/pds-api/guides/search/response_formats.html

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+xml'

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+xml'

🕵️ Expected behavior

Return of the information that the command line

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

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

@jordanpadams
Copy link
Member

@jimmie can you verify if this is still a problem with the latest version of the registry (probably using @al-niessner's current branch on registry-api)

@jordanpadams
Copy link
Member

@jimmie actually, let's move this down in priority a notch for the moment. can we try to get those open cloud-task tickets for multi-tenancy, web analytics, and deploying registries in NGAP wrapped up with our remaining time in this sprint / build?

@jordanpadams jordanpadams self-assigned this Sep 2, 2022
@jordanpadams
Copy link
Member

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

@jordanpadams
Copy link
Member

@al-niessner 👍

@miguelp1986
Copy link

@msbentley
Copy link

Hi @jordanpadams et al - could you confirm if this should work in the production version of the API, or is this fix not deployed? I'm having no luck getting the PDS4+XML format for any products. If I use the default header, the json returns fine. To use the example on the docs:

curl --get 'https://pds.nasa.gov/api/search/1/products/urn:nasa:pds:insight_rad::2.1' --header 'Accept: application/vnd.nasa.pds.pds4+json'

This fails for me. Using requests I get a 500 error code for various test cases.

@jordanpadams
Copy link
Member

@tloubrieu-jpl can correct me if I am wrong, but I believe this is fixed but not yet deployed. That should be included in our deployment coming in a few weeks.

@msbentley
Copy link

Hi @jordanpadams should this now work? Or am I suffering user error again? ;-)

@tloubrieu-jpl
Copy link
Member

Hi @msbentley , although the fix has been developed it is not available in production yet since we did not tag a new release with the fix.
That should happen in a few weeks from now.

Sorry about that.

@msbentley
Copy link

Thanks @tloubrieu-jpl

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

8 participants