Gerard_La Foneria
Hi
Seems a diffusion issue that can be resolved doing an all parents terms
field or columns in diffusion ontology of the thesaurus.
In Dédalo you can use the typology/model parallel thesaurus to identify the terms, as toponymy does.
In diffusion context, you can add a column with all parents of the terms (all parents recursive), and filter it in the thesaurus calls. For example:
If you want to get all children of the Tarragonès
region (es1_8187) you can make a API to /records
with /sql_filter
configured with
`parents` LIKE '%es1_8187%'
Something as:
https://my_server_org/dedalo/publication/server_api/v1/json/records?code=My_API_code&db_name=my_database&table=tp_spain&sql_filter=%60parents%60%20LIKE%20'\''%25es1_8187%25'\''&lang=lg-spa
The API will return all toponymies inside the region. Therefore, you can filter other calls with this fixed filter, for example, if you want all municipalities that starting with 'Tarre' in combination with this fixed filter, the API only returns the matches within the Tarragonès
toponymy. This way is super fast and you can see an example in the catalog of Moneda Ibérica. It show all children of specific mint inside a full mints, cultures, periods,... thesaurus using the parents way explained.
Finally, you can see a diffusion node in ontology to get all parents here. Just add the add_parents
to the v5 properties like this:
{
"process_dato": "diffusion_sql::map_locator_to_terminoID",
"process_dato_arguments": {
"custom_arguments": {
"add_parents": true
}
}
}
I hope is clear.
Best.