Several types of freebase filter

Is it possible to filter a request by several types in the freebase API?

I need to search for a keyword in two or three types of free databases, but it seems that the freebase API does not allow this option. In this case, probably the only solution is to send two or three separate requests for the filtered types?

Thanks!

+4
source share
1 answer

Yes, you can filter several types using the search API or the MQL reader API.

For a search API that looks like this :

filter=(any type:/music/musical_group type:/people/person type:/location/citytown) 

This filter reports that it limits the results according to one of three types.

In the MQL Read API, you can filter several types like this :

 [{ "id": null, "name": null, "type": [], "name~=": "London", "type|=": [ "/people/person", "/location/citytown", "/music/musical_group" ] }​]​ 
+4
source

Source: https://habr.com/ru/post/1441252/


All Articles