Closed anitacaron closed 1 year ago
Because of the possibility of having thousands of mappings in a mapping_set, the link is this way now:
{
"mapping_set_id": "this_is_an_id",
"mappings": {
"href": "https://localhost:8080/mapping_sets/122345/mappings"
}
}
Great, use relative mappings, but else, good one!
{
"mapping_set_id": "this_is_an_id",
"mappings": {
"href": "mapping_sets/122345/mappings"
}
}
In the OXO API, the links are absolute.
"_links": {
"self": {
"href": "https://www.ebi.ac.uk/spot/oxo/api/datasources/AEO"
},
"terms": {
"href": "https://www.ebi.ac.uk/spot/oxo/api/terms?datasource=AEO"
}
}
The result from this endpoint should have mappings as a link.
However, the database TTL file uses blank nodes to specify the mappings of a mapping set, so it is impossible to have the links redirect correctly.
cc @matentzn