Skip to content

Commit ed5e3af

Browse files
committed
doc: document all modules
1 parent 25ba29c commit ed5e3af

22 files changed

Lines changed: 78 additions & 26 deletions

docs/overview.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
OntoWeaver is a tool that automatize the creation of knowledge graphs
33
from iterable data.
44

5+
The project is maintained on Github at
6+
`oncodash/ontoweaver <https://github.com/oncodash/ontoweaver>`_
7+
58
.. figure:: OntoWeaver__very-simple-summary.svg
69

710
OntoWeaver allows you to create Semantic Knowledge Graphs from

src/ontoweaver/base.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
""" Interfaces for OntoWeaver.
2+
"""
13
import logging
24
import math
35

src/ontoweaver/congregate.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
""" Information fusion features for finding duplicates.
2+
"""
13
import logging
24
from abc import ABCMeta as ABSTRACT, ABCMeta, abstractmethod
35

src/ontoweaver/errormanager.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
""" Base class for errors management.
2+
"""
13
import logging
24

35
logger = logging.getLogger("ontoweaver")

src/ontoweaver/exceptions.py

Lines changed: 34 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,39 @@
1-
2-
# OntoWeaverError
3-
# ├─ AutoSchemaError
4-
# ├─ ConfigError
5-
# ├─ FeatureError
6-
# ├─ ParsingError
7-
# │ ├─ ParsingDeclarationsError
8-
# │ │ ├─ CardinalityError
9-
# │ │ └─ MissingDataError
10-
# │ ├─ # ParsingPropertiesError
11-
# │ │ └─ # MissingFieldError
12-
# └─ RunError
13-
# ├─ DeclarationError
14-
# ├─ FileError
15-
# │ ├─ FileAccessError
16-
# │ └─ FileOverwriteError
17-
# ├─ InputDataError
18-
# ├─ SubprocessError
19-
# └─ TransformerError
20-
# ├─ DataValidationError
21-
# ├─ InterfaceInheritanceError
22-
# ├─ TransformerConfigError
23-
# ├─ TransformerDataError
24-
# ├─ TransformerInputError
25-
# └─ TransformerInterfaceError
1+
"""
2+
The exceptions hierarchy of what OntoWeaver may raise.
3+
4+
Classes in this file all have a static ``code`` variable,
5+
which is used by the ``ontoweave`` command as an error return code.
6+
7+
The exceptions taxonomy is::
8+
9+
OntoWeaverError
10+
├─ AutoSchemaError
11+
├─ ConfigError
12+
├─ FeatureError
13+
├─ ParsingError
14+
│ ├─ ParsingDeclarationsError
15+
│ │ ├─ CardinalityError
16+
│ │ └─ MissingDataError
17+
│ ├─ # ParsingPropertiesError
18+
│ │ └─ # MissingFieldError
19+
└─ RunError
20+
├─ DeclarationError
21+
├─ FileError
22+
│ ├─ FileAccessError
23+
│ └─ FileOverwriteError
24+
├─ InputDataError
25+
├─ SubprocessError
26+
└─ TransformerError
27+
├─ DataValidationError
28+
├─ InterfaceInheritanceError
29+
├─ TransformerConfigError
30+
├─ TransformerDataError
31+
├─ TransformerInputError
32+
└─ TransformerInterfaceError
33+
"""
2634

2735
class OntoWeaverError(Exception):
36+
"""The base of all errors related to OntoWeaver."""
2837
code = 255
2938

3039
class AutoSchemaError(OntoWeaverError):

src/ontoweaver/fuse.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
""" Module for fusing two elements.
2+
"""
13
import logging
24
from abc import ABCMeta, abstractmethod
35

src/ontoweaver/fusion.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
""" High-level fusion module.
2+
"""
13
import logging
24
from abc import abstractmethod, ABCMeta
35
from typing import Optional

src/ontoweaver/iterative.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
""" Adapters managing iterable data.
2+
"""
13
import logging
24
import threading
35

src/ontoweaver/json.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
""" Adapters for querying JSON data.
2+
"""
13
import json
24
import logging
35
import jmespath

src/ontoweaver/loader.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
""" Classes related to loading input data.
2+
"""
13
import glob
24
import rdflib
35
import pathlib

0 commit comments

Comments
 (0)