Skip to content

Handle accessURL as a list#51

Merged
peterVorman merged 2 commits into
masterfrom
jguo144/2026-01-12/handle-accessURL-list
Jan 14, 2026
Merged

Handle accessURL as a list#51
peterVorman merged 2 commits into
masterfrom
jguo144/2026-01-12/handle-accessURL-list

Conversation

@jguo144
Copy link
Copy Markdown
Collaborator

@jguo144 jguo144 commented Jan 12, 2026

Description

According to the DCAT schema accessURL must be a single URL string (https://resources.data.gov/resources/dcat-us/#distribution-accessURL). However, some catalogs sometimes provide a list of URLs instead. We should handle this edge case by selecting the first URL that uses a supported protocol.

Here's an example distribution where the accessURL is a list:

{
  "@type": "dcat:Distribution",
  "title": "PAD Homepage",
  "format": null,
  "accessURL": [
    "withheld",
    "withheld",
    "https://www.wildlife.ca.gov/Data/BIOS",
    "https://services2.arcgis.com/Uq9r85Potqm3MfRV/arcgis/rest/services/biosds69_fmu/FeatureServer",
    "http://dx.doi.org/doi:10.5066/F7X06527"
  ],
  "description": null
}

Copy link
Copy Markdown

@orca-security-us orca-security-us Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Orca Security Scan Summary

Status Check Issues by priority
Passed Passed Infrastructure as Code high 0   medium 0   low 0   info 0 View in Orca
Passed Passed Secrets high 0   medium 0   low 0   info 0 View in Orca
Passed Passed Vulnerabilities high 0   medium 0   low 0   info 0 View in Orca

@peterVorman peterVorman merged commit b9711ce into master Jan 14, 2026
11 checks passed
@peterVorman peterVorman deleted the jguo144/2026-01-12/handle-accessURL-list branch January 14, 2026 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants