Skip to content

Latest commit

 

History

History
55 lines (35 loc) · 2.62 KB

filter-concepts.md

File metadata and controls

55 lines (35 loc) · 2.62 KB

Filter concepts

You can filter concepts with the filter parameter:

{% hint style="info" %} It's best to read about filters before trying these out. It will show you how to combine filters and build an AND, OR, or negation query {% endhint %}

/concepts attribute filters

You can filter using these attributes of the Concept object (click each one to view their documentation on the Concept object page):

/concepts convenience filters

These filters aren't attributes of the Concept object, but they're included to address some common use cases:

default.search

Value: a search string

This works the same as using the search parameter for Concepts.

display_name.search

Value: a search string

Returns: concepts with a display_name containing the given string; see the search page for details.

{% hint style="info" %} In most cases, you should use the search parameter instead of this filter because it uses a better search algorithm. {% endhint %}

has_wikidata

Value: a Boolean (true or false)

Returns: concepts that have or lack a Wikidata ID, depending on the given value. For now, all concepts in OpenAlex do have Wikidata IDs.