ec-doris / kohesio-backend

APIs serving Kohesio's frontend
https://kohesio.ec.europa.eu
6 stars 2 forks source link

Filter by project types #220

Closed DiaZork closed 1 year ago

DiaZork commented 1 year ago

Major projects, Regio stars, award winners, best practices

D063520 commented 1 year ago

@roberto-musmeci followup question on this, we know what a regio star project is, but how can we identify the other categories in the data?

roberto-musmeci commented 1 year ago

My idea was to create a 'instance of REGIO STAR' sort of statement. So depending on the selected type the query would look like. SELECT ?p WHERE { ?p wdt:P35 wd:[regio star qid/info regio project qid] }

Does it make sense ?

D063520 commented 1 year ago

@roberto-musmeci yes makes sense, we where just wondering if the data was already there or not. Maybe to be aligned we should just follow the same pattern, i.e.

instance of "Regio star" instance of "award winner"

can you prepare one project in the data so that we can implement the API with a test case? or point to a project that is "Regio star", "award winner" ....

roberto-musmeci commented 1 year ago

Voila Q2100806 - Regio stars Q2017421 - Major projects

DiaZork commented 1 year ago

So this is done. You can get Regio stars projects or Majors projects I've add a facet that return the project types available with there label and i've added the fact that you can specify several type so you can find the project that are Regio stars AND Major projects for example here.