aboutsummaryrefslogtreecommitdiffstats
path: root/tagit/utils/namespaces.py
blob: a17a92759cecedf902890f020aea793655d2822f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
"""Default namespaces used throughout tagit.

Part of the tagit module.
A copy of the license is provided with the project.
Author: Matthias Baumgartner, 2022
"""
# standard imports
import typing

# inner-module imports
from . import bsfs as _bsfs

# generic namespaces
xsd = _bsfs.Namespace('http://www.w3.org/2001/XMLSchema')()

# core bsfs namespaces
bsfs = _bsfs.Namespace('https://schema.bsfs.io/core')
bsie = _bsfs.Namespace('https://schema.bsfs.io/ie')

# auxiliary bsfs namespaces
bsn = bsie.Node
bse = bsn.Entity()
bsg = bsn.Group()
bsl = bsfs.Literal
bsp = bsn.Preview()
bst = bsn.Tag()

# export
__all__: typing.Sequence[str] = (
    'bse',
    'bsfs',
    'bsg',
    'bsie',
    'bsl',
    'bsn',
    'bsp',
    'bst',
    'xsd',
    )

## EOF ##