JSON API returns uri for one object and curie for another #10

Open
opened 2025-11-19 21:29:33 +00:00 by msz · 0 comments
Member

Not sure where to file it (because technically it's about the API, not the UI), so feel free to relocate.

JSON API, two different records, same field. One query reurns an uri, the other a curie.

❱ curl -s -X GET "https://pool.v0.trr379.de/api/public/record?pid=https://doi.org/10.1007/s00406-025-02028-6" | jq .rules
[
  "https://spdx.org/licenses/CC-BY-4.0"
]

❱ curl -s -X GET "https://pool.v0.trr379.de/api/public/record?pid=https://doi.org/10.1038/s41398-025-03374-8" | jq .rules
[
  "spdxlic:CC-BY-4.0"
]

Both can be used for further /record queries with the API, but I was expecting more consistency.

Not sure where to file it (because technically it's about the API, not the UI), so feel free to relocate. JSON API, two different records, same field. One query reurns an uri, the other a curie. ``` ❱ curl -s -X GET "https://pool.v0.trr379.de/api/public/record?pid=https://doi.org/10.1007/s00406-025-02028-6" | jq .rules [ "https://spdx.org/licenses/CC-BY-4.0" ] ❱ curl -s -X GET "https://pool.v0.trr379.de/api/public/record?pid=https://doi.org/10.1038/s41398-025-03374-8" | jq .rules [ "spdxlic:CC-BY-4.0" ] ``` Both can be used for further `/record` queries with the API, but I was expecting more consistency.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
q02/pool.v0.trr379.de-ui#10
No description provided.