aboutsummaryrefslogtreecommitdiffstats
path: root/bsie/utils/namespaces.py
blob: 935725391e869071b3375244163e5f44dc970acb (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
"""Default namespaces used throughout BSIE.
"""
# 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/bsie namespaces
bsfs = _bsfs.Namespace('https://schema.bsfs.io/core')
bsie = _bsfs.Namespace('https://schema.bsfs.io/ie')

# auxiliary namespaces
bsd = bsie.distance()
bse = bsie.Node.Entity()
bsf = bsie.Literal.Array.Feature
bsl = bsfs.Literal
bsn = bsie.Node
bsp = bsie.Node.Preview()
bst = bsie.Node.Tag()

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

## EOF ##