# Rules

Operations related to Rules. A rule is a statement that defines or constrains some aspect of the business.


## Read Rules

 - [GET /knowledgegraphs/{knowledgeGraphId}/models/{modelId}/rules](https://developer.cdq.com/apis/knowledge-graph-api/api-v1/rules/getrules.md): Fetch rules stored inside a model. Endpoint allows for:
* full text search - searching inside: id, name, sparql rule, rule url, passing test case, violating test case for string passed in searchedText field
* sorting - sorting by allowed values of rules and sorting order (default ascending)
* filtering - gives option to limit query result by country and criticality
Each functionality can be combined to create complex usage of this endpoint.

