\n",
"
\n",
"\n",
"There is a similar keyword argument `annotation` that can be used to constrain the ontology annotations to follow. Just like for the `rel` argument, it can take as values either a single annotation or several ones. However, in addition, it also accepts boolean values. Setting it to `True` means following all annotations (the default value), while setting it to `False` means following no annotations at all.\n",
"\n",
"
"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"The next complexity step is passing a function as search criterion. For example, one may want to restrict the search to persons that are more than 40 years old."
]
},
{
"cell_type": "code",
"execution_count": 6,
"metadata": {},
"outputs": [
{
"data": {
"image/svg+xml": [
"\n",
"\n",
"\n",
"\n",
"