query_concepts
Filter FOLIO ontology concepts by text fields, taxonomy branch, and structural properties to retrieve precise matching entries.
Instructions
Query FOLIO concepts with composable text and structural filters.
More powerful than search_concepts — supports field-specific matching, structural constraints, and multiple match modes. All specified filters must match (AND logic).
Text filters: label: Match against the concept's primary label (rdfs:label). definition: Match against the concept's definition (skos:definition). alt_label: Match against alternative labels (skos:altLabel). example: Match against examples (skos:example). any_text: Match against ALL text fields (label, definition, alt_labels, examples, notes, comment).
Structural filters: branch: Limit to a taxonomy branch (e.g., "AREA_OF_LAW", "CURRENCY", "LEGAL_ENTITY"). parent_iri: Only descendants of this IRI (transitive subClassOf). has_children: True = non-leaf concepts only, False = leaf concepts only. deprecated: Include deprecated concepts (default False). country: Match against the country field.
Control: match_mode: "substring" (default), "exact", "regex", or "fuzzy". limit: Maximum results (default 20).
Returns: JSON array of matching concepts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | No | ||
| limit | No | ||
| branch | No | ||
| country | No | ||
| example | No | ||
| any_text | No | ||
| alt_label | No | ||
| definition | No | ||
| deprecated | No | ||
| match_mode | No | substring | |
| parent_iri | No | ||
| has_children | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |