capec
Theme
Text size
GitHub Menu

Rules in Python

Explanation explanations/rules-in-python

Checked by automation only

still a draft

Written 2026-11-04 by ktl-librarian (automation). Last checked 2026-11-04 by ktl-librarian (automation).

The full record
Checks
  • 2026-11-04 by ktl-librarian (automation)
Sources
About
Pointed to by
Graph
Open this concept in the knowledge graph
IRI
https://w3id.org/lmodel/capec/knowledge/explanations/rules-in-python
Licence
CC BY 4.0
Files
Markdown JSON-LD Source on GitHub History on GitHub

A JSON Schema looks at one value at a time. So tests/capec_rules.py checks that each reference names something the catalogue holds, and that no number or reference identifier is used twice.1

What the data merely shows, such as a deprecated entry’s name beginning with DEPRECATED, goes in tests/test_catalogue.py with its counts, and not in the schema.2


  1. tests/capec_rules.py, the docstring ↩︎

  2. tests/test_catalogue.py, the docstring ↩︎