setlr 1.0.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
setlr/__init__.py ADDED
@@ -0,0 +1,89 @@
1
+ #!/usr/bin/env python
2
+ # -*- coding: utf-8 -*-
3
+
4
+ """setlr: Semantic Extract, Transform and Load-er
5
+
6
+ This package provides tools for generating RDF graphs from tabular data
7
+ using declarative SETL (Semantic Extract, Transform, Load) scripts.
8
+
9
+ Main functions:
10
+ run_setl(setl_graph): Execute a SETL script (recommended)
11
+ _setl(setl_graph): Deprecated, use run_setl() instead
12
+ main(): Command-line interface entry point
13
+ """
14
+
15
+ # Import the core functionality
16
+ from .core import (
17
+ # Main API functions
18
+ run_setl,
19
+ _setl, # Deprecated, but kept for backward compatibility
20
+ main,
21
+
22
+ # Utility functions that might be used by library users
23
+ read_csv,
24
+ read_excel,
25
+ read_json,
26
+ read_xml,
27
+ read_graph,
28
+ extract,
29
+ json_transform,
30
+ transform,
31
+ load,
32
+ isempty,
33
+ hash,
34
+ camelcase,
35
+ get_content,
36
+
37
+ # Logger for configuration
38
+ logger,
39
+
40
+ # Namespaces
41
+ csvw,
42
+ ov,
43
+ setl,
44
+ prov,
45
+ pv,
46
+ sp,
47
+ sd,
48
+ dc,
49
+ void,
50
+ shacl,
51
+ api_vocab,
52
+ )
53
+
54
+ # Version
55
+ __version__ = '1.0.1'
56
+
57
+ # Define what gets imported with "from setlr import *"
58
+ __all__ = [
59
+ 'run_setl',
60
+ '_setl', # Deprecated but included for backward compatibility with wildcard imports
61
+ 'main',
62
+ # Include commonly used utilities
63
+ 'logger',
64
+ 'read_csv',
65
+ 'read_excel',
66
+ 'read_json',
67
+ 'read_xml',
68
+ 'read_graph',
69
+ 'extract',
70
+ 'json_transform',
71
+ 'transform',
72
+ 'load',
73
+ 'isempty',
74
+ 'hash',
75
+ 'camelcase',
76
+ 'get_content',
77
+ # Namespaces
78
+ 'csvw',
79
+ 'ov',
80
+ 'setl',
81
+ 'prov',
82
+ 'pv',
83
+ 'sp',
84
+ 'sd',
85
+ 'dc',
86
+ 'void',
87
+ 'shacl',
88
+ 'api_vocab',
89
+ ]