Skip to content

Commit

Permalink
Merge pull request #73 from laws-africa/schema
Browse files Browse the repository at this point in the history
Schema
  • Loading branch information
longhotsummer authored Oct 20, 2022
2 parents 9acefdf + 18e135c commit 2683b25
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
5 changes: 5 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,11 @@ Cobalt is Copyright 2015-2020 AfricanLII.
Change Log
----------

6.1.0
-----

- Add new schemas.AkomaNtoso30 class with basic schema information

6.0.0
-----

Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6.0.0
6.1.0
12 changes: 12 additions & 0 deletions cobalt/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,15 @@ def assert_validates(akn_doc, strict=False):
"""
schema = get_schema(akn_doc.namespace, strict)
schema.assertValid(akn_doc.root)


class AkomaNtoso30:
""" Information on various elements of the Akoma Ntoso 3.0 schema.
"""

hier_elements = [
'alinea', 'article', 'book', 'chapter', 'clause', 'division', 'indent', 'level', 'list', 'paragraph', 'part',
'point', 'proviso', 'rule', 'section', 'subchapter', 'subclause', 'subdivision', 'sublist', 'subparagraph',
'subpart', 'subrule', 'subsection', 'subtitle', 'title', 'tome', 'transitional'
]
""" Hierarchical elements """

0 comments on commit 2683b25

Please sign in to comment.