aboutsummaryrefslogtreecommitdiffstats
path: root/bsie
diff options
context:
space:
mode:
Diffstat (limited to 'bsie')
-rw-r--r--bsie/__init__.py5
-rw-r--r--bsie/base/extractor.py9
-rw-r--r--bsie/utils/namespaces.py1
3 files changed, 10 insertions, 5 deletions
diff --git a/bsie/__init__.py b/bsie/__init__.py
index 2b874bd..96e6953 100644
--- a/bsie/__init__.py
+++ b/bsie/__init__.py
@@ -9,9 +9,8 @@ import collections
import typing
# constants
-version_info = collections.namedtuple('version_info',
- ('major', 'minor', 'micro')) \
- (0, 0, 1)
+T_VERSION_INFO = collections.namedtuple('T_VERSION_INFO', ('major', 'minor', 'micro'))
+version_info = T_VERSION_INFO(0, 0, 1)
# exports
__all__: typing.Sequence[str] = []
diff --git a/bsie/base/extractor.py b/bsie/base/extractor.py
index 75b7173..bfa403c 100644
--- a/bsie/base/extractor.py
+++ b/bsie/base/extractor.py
@@ -20,7 +20,7 @@ __all__: typing.Sequence[str] = (
# constants
# essential definitions typically used in extractor schemas.
-# NOTE: The definition here is only for convenience; Each Extractor must implement its use, if so desired.
+# NOTE: This preamble is only for convenience; Each Extractor must implement its use, if so desired.
SCHEMA_PREAMBLE = '''
# common external prefixes
prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
@@ -45,7 +45,12 @@ SCHEMA_PREAMBLE = '''
## code ##
class Extractor(abc.ABC):
- """Produce (node, predicate, value)-triples from some content."""
+ """Produce (subject, predicate, value)-triples from some content.
+ The Extractor produces princpal predicates that provide information
+ about the content itself (i.e., triples that include the subject),
+ and may also generate triples with auxiliary predicates if the
+ extracted value is a node itself.
+ """
# what type of content is expected (i.e. reader subclass).
CONTENT_READER: typing.Optional[str] = None
diff --git a/bsie/utils/namespaces.py b/bsie/utils/namespaces.py
index 2fcb2dc..d6e1c72 100644
--- a/bsie/utils/namespaces.py
+++ b/bsie/utils/namespaces.py
@@ -21,6 +21,7 @@ __all__: typing.Sequence[str] = (
'bse',
'bsfs',
'bsm',
+ 'xsd',
)
## EOF ##