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

Closed
opened 2025-11-19 21:29:33 +00:00 by msz · 1 comment
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.
Author
Member

Not sure what how and when changed (whether it was a change to dumpthings, shacl-vue, or just the records) but as of now both requests from my original issue return curies:

❱ curl -s -X GET "https://pool.v0.trr379.de/api/public/record?pid=https://doi.org/10.1007/s00406-025-02028-6" | jq .rules
[
  "spdxlic:CC-BY-4.0"
]
mszczepanik@bnbnb64 in /tmp/pool.v0.trr379.de-ui on git:heads/frontpage
❱ 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"
]
Not sure what how and when changed (whether it was a change to dumpthings, shacl-vue, or just the records) but as of now both requests from my original issue return curies: ``` ❱ curl -s -X GET "https://pool.v0.trr379.de/api/public/record?pid=https://doi.org/10.1007/s00406-025-02028-6" | jq .rules [ "spdxlic:CC-BY-4.0" ] mszczepanik@bnbnb64 in /tmp/pool.v0.trr379.de-ui on git:heads/frontpage ❱ 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" ] ```
msz closed this issue 2026-08-17 16:40:07 +00:00
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.