XULE¶
Overview¶
The XULE plugin, developed and maintained by XBRL US, enhances XBRL data manipulation and querying. Inquiries
can be directed to info@xbrl.us. XULE is instrumental in validating SEC and FERC filings, with both DQC
rules for SEC filings and FERC rules available in XULE format. It also allows for the creation of new XBRL reports and
facts. Utilize the DQC Rules Validator and ESEF DQC Rules Validator plugins for specific XULE validation rules. For
more details on XULE and its usage, visit the XULE plugin readme.
Installation¶
XULE is included in Arelle’s prepackaged distributions, so no additional installation steps are needed if you are using one of those.
If you installed Arelle from source or via pip, the XULE plugin is not included and must be installed separately. See the XULE plugin README for installation instructions.
Additionally, XULE requires some extra Python dependencies. You can install them by running:
pip install arelle-release[XULE]
Or if running from source:
pip install -r requirements-plugins.txt
Key Features¶
XBRL Data Querying and Manipulation: Provides a user-friendly syntax for interacting with XBRL data.
Validation Capabilities: Data quality rule sets provided for SEC and FERC filings.
Creation of XBRL Reports: Enables the definition and creation of new XBRL reports.
Example Command Line Usage¶
For all available options, refer to the project repo.
Run XULE SEC DQC validations:
python arelleCmdLine.py --plugins "validate/DQC|EDGAR/transforms" --validate --file filing-documents.zip
Run XULE ESEF DQC validations:
python arelleCmdLine.py --plugins validate/ESEF-DQC --validate --file filing-documents.zip
Compile Your Own XULE Validation Rules to a Rule Set:
python arelleCmdLine.py --plugins xule --xule-compile xule-source-files/v1 --xule-rule-set xule-rule-set-v1.zip
Example GUI Usage¶
Configure the XULE processor and DQC validation plugins in Arelle via:
Tools>XuleTools>DQCTools>ESEF-dqcTools>Validation>DQC RulesTools>Validation>ESEF-dqc Rules