graflo 1.1.0__tar.gz

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.

Potentially problematic release.


This version of graflo might be problematic. Click here for more details.

Files changed (45) hide show
  1. graflo-1.1.0/.gitignore +79 -0
  2. graflo-1.1.0/LICENSE +126 -0
  3. graflo-1.1.0/PKG-INFO +157 -0
  4. graflo-1.1.0/README.md +139 -0
  5. graflo-1.1.0/graflo/README.md +18 -0
  6. graflo-1.1.0/graflo/__init__.py +39 -0
  7. graflo-1.1.0/graflo/architecture/__init__.py +37 -0
  8. graflo-1.1.0/graflo/architecture/actor.py +974 -0
  9. graflo-1.1.0/graflo/architecture/actor_util.py +425 -0
  10. graflo-1.1.0/graflo/architecture/edge.py +295 -0
  11. graflo-1.1.0/graflo/architecture/onto.py +374 -0
  12. graflo-1.1.0/graflo/architecture/resource.py +161 -0
  13. graflo-1.1.0/graflo/architecture/schema.py +136 -0
  14. graflo-1.1.0/graflo/architecture/transform.py +292 -0
  15. graflo-1.1.0/graflo/architecture/util.py +93 -0
  16. graflo-1.1.0/graflo/architecture/vertex.py +277 -0
  17. graflo-1.1.0/graflo/caster.py +409 -0
  18. graflo-1.1.0/graflo/cli/__init__.py +14 -0
  19. graflo-1.1.0/graflo/cli/ingest.py +144 -0
  20. graflo-1.1.0/graflo/cli/manage_dbs.py +193 -0
  21. graflo-1.1.0/graflo/cli/plot_schema.py +132 -0
  22. graflo-1.1.0/graflo/cli/xml2json.py +93 -0
  23. graflo-1.1.0/graflo/db/__init__.py +32 -0
  24. graflo-1.1.0/graflo/db/arango/__init__.py +16 -0
  25. graflo-1.1.0/graflo/db/arango/conn.py +734 -0
  26. graflo-1.1.0/graflo/db/arango/query.py +180 -0
  27. graflo-1.1.0/graflo/db/arango/util.py +88 -0
  28. graflo-1.1.0/graflo/db/connection.py +304 -0
  29. graflo-1.1.0/graflo/db/manager.py +104 -0
  30. graflo-1.1.0/graflo/db/neo4j/__init__.py +16 -0
  31. graflo-1.1.0/graflo/db/neo4j/conn.py +432 -0
  32. graflo-1.1.0/graflo/db/util.py +49 -0
  33. graflo-1.1.0/graflo/filter/__init__.py +21 -0
  34. graflo-1.1.0/graflo/filter/onto.py +400 -0
  35. graflo-1.1.0/graflo/logging.conf +22 -0
  36. graflo-1.1.0/graflo/onto.py +186 -0
  37. graflo-1.1.0/graflo/plot/__init__.py +17 -0
  38. graflo-1.1.0/graflo/plot/plotter.py +556 -0
  39. graflo-1.1.0/graflo/util/__init__.py +23 -0
  40. graflo-1.1.0/graflo/util/chunker.py +739 -0
  41. graflo-1.1.0/graflo/util/merge.py +148 -0
  42. graflo-1.1.0/graflo/util/misc.py +37 -0
  43. graflo-1.1.0/graflo/util/onto.py +63 -0
  44. graflo-1.1.0/graflo/util/transform.py +406 -0
  45. graflo-1.1.0/pyproject.toml +52 -0
@@ -0,0 +1,79 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+ *.pyc
6
+
7
+ # C extensions
8
+ *.so
9
+
10
+ # Distribution / packaging
11
+ .idea
12
+ .Python
13
+ env/
14
+ build/
15
+ develop-eggs/
16
+ dist/
17
+ downloads/
18
+ eggs/
19
+ .eggs/
20
+ lib/
21
+ lib64/
22
+ parts/
23
+ sdist/
24
+ var/
25
+ *.egg-info/
26
+ .installed.cfg
27
+ *.egg
28
+
29
+ # PyInstaller
30
+ # Usually these files are written by a python script from a template
31
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
32
+ *.manifest
33
+ *.spec
34
+
35
+ # Installer logs
36
+ pip-log.txt
37
+ pip-delete-this-directory.txt
38
+
39
+ # Unit test / coverage reports
40
+ htmlcov/
41
+ .tox/
42
+ .coverage
43
+ .coverage.*
44
+ .cache
45
+ nosetests.xml
46
+ coverage.xml
47
+ *,cover
48
+ .hypothesis/
49
+
50
+ # Translations
51
+ *.mo
52
+ *.pot
53
+
54
+ # Sphinx documentation
55
+ docs/_build/
56
+
57
+ # PyBuilder
58
+ target/
59
+
60
+ #Ipython Notebook
61
+ .ipynb_checkpoints
62
+
63
+ #Latex
64
+ *.aux
65
+ *.fdb_latexmk
66
+ *.fls
67
+ *.log
68
+ *.synctex.gz
69
+
70
+ # cache
71
+ .pytest_cache
72
+
73
+ .mypy_cache
74
+
75
+ *.log.*
76
+ #*/**/*png
77
+ */**/*pdf
78
+
79
+ site/
graflo-1.1.0/LICENSE ADDED
@@ -0,0 +1,126 @@
1
+ Business Source License 1.1
2
+
3
+ Parameters
4
+
5
+ Licensor: Growgraph SAS
6
+ Licensed Work: GraFlo
7
+ The Licensed Work is (c) 2025 GraFlo
8
+ Formerly GraphCast
9
+
10
+ Additional Use Grant:
11
+ The Licensor hereby grants you the right to make production use of the Licensed Work
12
+ if any of the following conditions are met:
13
+
14
+ - Your organization's annual revenue does not exceed USD 100,000
15
+ - You are not offering a commercially available product or service that
16
+ competes with the Licensor's products or services
17
+
18
+ Definitions:
19
+ "Production Use" means any use of the Licensed Work in a production environment,
20
+ including but not limited to:
21
+
22
+ - Deploying the Licensed Work to serve production traffic
23
+ - Using the Licensed Work to process real customer data
24
+ - Incorporating the Licensed Work into a commercial product or service
25
+ - Using the Licensed Work to generate revenue directly or indirectly
26
+
27
+ "Competing Product or Service" means any product or service that:
28
+
29
+ - Provides substantially similar functionality to the Licensed Work
30
+ - Offers the Licensed Work as a hosted or managed service
31
+ - Incorporates the Licensed Work into a broader product or service that competes
32
+ with the Licensor's current or reasonably anticipated products or services
33
+
34
+ "Non-Production Use" means:
35
+
36
+ - Development and testing in isolated environments
37
+ - Academic research and educational purposes
38
+ - Evaluation of the Licensed Work for potential purchase of a commercial license
39
+ - Personal, non-commercial projects where the Licensed Work is not used to generate revenue
40
+
41
+ Change Date: 2029-05-01
42
+
43
+ Change License: Apache License, Version 2.0
44
+
45
+ For information about alternative licensing arrangements for the Software,
46
+ please contact: <team@growgraph.dev>
47
+
48
+ Notice
49
+
50
+ The Business Source License (this document, or the “License”) is not an Open
51
+ Source license. However, the Licensed Work will eventually be made available
52
+ under an Open Source License, as stated in this License.
53
+
54
+ License text copyright (c) 2017 MariaDB Corporation Ab, All Rights Reserved.
55
+ “Business Source License” is a trademark of MariaDB Corporation Ab.
56
+
57
+ -----------------------------------------------------------------------------
58
+
59
+ Business Source License 1.1
60
+
61
+ Terms
62
+
63
+ The Licensor hereby grants you the right to copy, modify, create derivative
64
+ works, redistribute, and make non-production use of the Licensed Work. The
65
+ Licensor may make an Additional Use Grant, above, permitting limited
66
+ production use.
67
+
68
+ Effective on the Change Date, or the fourth anniversary of the first publicly
69
+ available distribution of a specific version of the Licensed Work under this
70
+ License, whichever comes first, the Licensor hereby grants you rights under
71
+ the terms of the Change License, and the rights granted in the paragraph
72
+ above terminate.
73
+
74
+ If your use of the Licensed Work does not comply with the requirements
75
+ currently in effect as described in this License, you must purchase a
76
+ commercial license from the Licensor, its affiliated entities, or authorized
77
+ resellers, or you must refrain from using the Licensed Work.
78
+
79
+ All copies of the original and modified Licensed Work, and derivative works
80
+ of the Licensed Work, are subject to this License. This License applies
81
+ separately for each version of the Licensed Work and the Change Date may vary
82
+ for each version of the Licensed Work released by Licensor.
83
+
84
+ You must conspicuously display this License on each original or modified copy
85
+ of the Licensed Work. If you receive the Licensed Work in original or
86
+ modified form from a third party, the terms and conditions set forth in this
87
+ License apply to your use of that work.
88
+
89
+ Any use of the Licensed Work in violation of this License will automatically
90
+ terminate your rights under this License for the current and all other
91
+ versions of the Licensed Work.
92
+
93
+ This License does not grant you any right in any trademark or logo of
94
+ Licensor or its affiliates (provided that you may use a trademark or logo of
95
+ Licensor as expressly required by this License).
96
+
97
+ TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON
98
+ AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS,
99
+ EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF
100
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND
101
+ TITLE.
102
+
103
+ MariaDB hereby grants you permission to use this License’s text to license
104
+ your works, and to refer to it using the trademark “Business Source License”,
105
+ as long as you comply with the Covenants of Licensor below.
106
+
107
+ Covenants of Licensor
108
+
109
+ In consideration of the right to use this License’s text and the “Business
110
+ Source License” name and trademark, Licensor covenants to MariaDB, and to all
111
+ other recipients of the licensed work to be provided by Licensor:
112
+
113
+ 1. To specify as the Change License the GPL Version 2.0 or any later version,
114
+ or a license that is compatible with GPL Version 2.0 or a later version,
115
+ where “compatible” means that software provided under the Change License can
116
+ be included in a program with software provided under GPL Version 2.0 or a
117
+ later version. Licensor may specify additional Change Licenses without
118
+ limitation.
119
+
120
+ 2. To either: (a) specify an additional grant of rights to use that does not
121
+ impose any additional restriction on the right granted in this License, as
122
+ the Additional Use Grant; or (b) insert the text “None”.
123
+
124
+ 3. To specify a Change Date.
125
+
126
+ 4. Not to modify this License in any other way.
graflo-1.1.0/PKG-INFO ADDED
@@ -0,0 +1,157 @@
1
+ Metadata-Version: 2.4
2
+ Name: graflo
3
+ Version: 1.1.0
4
+ Summary: (!) Deprecated: this package has been renamed to GraFlo. A framework for transforming tabular (CSV, SQL) and hierarchical data (JSON, XML) into property graphs and ingesting them into graph databases (ArangoDB, Neo4j)
5
+ Author-email: Alexander Belikov <alexander@growgraph.dev>
6
+ License-File: LICENSE
7
+ Requires-Python: ~=3.11.0
8
+ Requires-Dist: click<9,>=8.2.0
9
+ Requires-Dist: ijson<4,>=3.2.3
10
+ Requires-Dist: neo4j<6,>=5.22.0
11
+ Requires-Dist: networkx~=3.3
12
+ Requires-Dist: pandas-stubs==2.3.0.250703
13
+ Requires-Dist: pandas<3,>=2.0.3
14
+ Requires-Dist: python-arango<9,>=8.1.2
15
+ Requires-Dist: suthing<0.5,>=0.4.1
16
+ Requires-Dist: xmltodict<0.15,>=0.14.2
17
+ Description-Content-Type: text/markdown
18
+
19
+ # GraFlo <img src="https://raw.githubusercontent.com/growgraph/graflo/main/docs/assets/favicon.ico" alt="graflo logo" style="height: 32px; width:32px;"/>
20
+
21
+ A framework for transforming **tabular** (CSV, SQL) and **hierarchical** data (JSON, XML) into property graphs and ingesting them into graph databases (ArangoDB, Neo4j).
22
+
23
+ > **⚠️ Package Renamed**: This package was formerly known as `graphcast`.
24
+
25
+ [Rest of your existing README content...]
26
+
27
+ ![Python](https://img.shields.io/badge/python-3.11-blue.svg)
28
+ [![PyPI version](https://badge.fury.io/py/graflo.svg)](https://badge.fury.io/py/graflo)
29
+ [![PyPI Downloads](https://static.pepy.tech/badge/graflo)](https://pepy.tech/projects/graflo)
30
+ [![License: BSL](https://img.shields.io/badge/license-BSL--1.1-green)](https://github.com/growgraph/graflo/blob/main/LICENSE)
31
+ [![pre-commit](https://github.com/growgraph/graflo/actions/workflows/pre-commit.yml/badge.svg)](https://github.com/growgraph/graflo/actions/workflows/pre-commit.yml)
32
+ [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.15446131.svg)]( https://doi.org/10.5281/zenodo.15446131)
33
+
34
+ ## Core Concepts
35
+
36
+ ### Property Graphs
37
+ graflo works with property graphs, which consist of:
38
+
39
+ - **Vertices**: Nodes with properties and optional unique identifiers
40
+ - **Edges**: Relationships between vertices with their own properties
41
+ - **Properties**: Both vertices and edges may have properties
42
+
43
+ ### Schema
44
+ The Schema defines how your data should be transformed into a graph and contains:
45
+
46
+ - **Vertex Definitions**: Specify vertex types, their properties, and unique identifiers
47
+ - **Edge Definitions**: Define relationships between vertices and their properties
48
+ - **Resource Mapping**: describe how data sources map to vertices and edges
49
+ - **Transforms**: Modify data during the casting process
50
+
51
+ ### Resources
52
+ Resources are your data sources that can be:
53
+
54
+ - **Table-like**: CSV files, database tables
55
+ - **JSON-like**: JSON files, nested data structures
56
+
57
+ ## Features
58
+
59
+ - **Graph Transformation Meta-language**: A powerful declarative language to describe how your data becomes a property graph:
60
+ - Define vertex and edge structures
61
+ - Set compound indexes for vertices and edges
62
+ - Use blank vertices for complex relationships
63
+ - Specify edge constraints and properties
64
+ - Apply advanced filtering and transformations
65
+ - **Parallel processing**: Use as many cores as you have
66
+ - **Database support**: Ingest into ArangoDB and Neo4j using the same API (database agnostic)
67
+
68
+ ## Documentation
69
+ Full documentation is available at: [growgraph.github.io/graflo](https://growgraph.github.io/graflo)
70
+
71
+ ## Installation
72
+
73
+ ```bash
74
+ pip install graflo
75
+ ```
76
+
77
+ ## Usage Examples
78
+
79
+ ### Simple ingest
80
+
81
+ ```python
82
+ from suthing import ConfigFactory, FileHandle
83
+
84
+ from graflo import Schema, Caster, Patterns
85
+
86
+
87
+ schema = Schema.from_dict(FileHandle.load("schema.yaml"))
88
+
89
+ conn_conf = ConfigFactory.create_config({
90
+ "protocol": "http",
91
+ "hostname": "localhost",
92
+ "port": 8535,
93
+ "username": "root",
94
+ "password": "123",
95
+ "database": "_system",
96
+ }
97
+ )
98
+
99
+ patterns = Patterns.from_dict(
100
+ {
101
+ "patterns": {
102
+ "work": {"regex": "\Sjson$"},
103
+ }
104
+ }
105
+ )
106
+
107
+ schema.fetch_resource()
108
+
109
+ caster = Caster(
110
+ schema,
111
+ )
112
+
113
+ caster.ingest_files(
114
+ path="./data",
115
+ conn_conf=conn_conf,
116
+ patterns=patterns,
117
+ )
118
+ ```
119
+
120
+ ## Development
121
+
122
+ To install requirements
123
+
124
+ ```shell
125
+ git clone git@github.com:growgraph/graflo.git && cd graflo
126
+ uv sync --dev
127
+ ```
128
+
129
+ ### Tests
130
+
131
+ #### Test databases
132
+ Spin up Arango from [arango docker folder](./docker/arango) by
133
+
134
+ ```shell
135
+ docker-compose --env-file .env up arango
136
+ ```
137
+
138
+ and Neo4j from [neo4j docker folder](./docker/arango) by
139
+
140
+ ```shell
141
+ docker-compose --env-file .env up neo4j
142
+ ```
143
+
144
+ To run unit tests
145
+
146
+ ```shell
147
+ pytest test
148
+ ```
149
+
150
+ ## Requirements
151
+
152
+ - Python 3.11+
153
+ - python-arango
154
+
155
+ ## Contributing
156
+
157
+ Contributions are welcome! Please feel free to submit a Pull Request.
graflo-1.1.0/README.md ADDED
@@ -0,0 +1,139 @@
1
+ # GraFlo <img src="https://raw.githubusercontent.com/growgraph/graflo/main/docs/assets/favicon.ico" alt="graflo logo" style="height: 32px; width:32px;"/>
2
+
3
+ A framework for transforming **tabular** (CSV, SQL) and **hierarchical** data (JSON, XML) into property graphs and ingesting them into graph databases (ArangoDB, Neo4j).
4
+
5
+ > **⚠️ Package Renamed**: This package was formerly known as `graphcast`.
6
+
7
+ [Rest of your existing README content...]
8
+
9
+ ![Python](https://img.shields.io/badge/python-3.11-blue.svg)
10
+ [![PyPI version](https://badge.fury.io/py/graflo.svg)](https://badge.fury.io/py/graflo)
11
+ [![PyPI Downloads](https://static.pepy.tech/badge/graflo)](https://pepy.tech/projects/graflo)
12
+ [![License: BSL](https://img.shields.io/badge/license-BSL--1.1-green)](https://github.com/growgraph/graflo/blob/main/LICENSE)
13
+ [![pre-commit](https://github.com/growgraph/graflo/actions/workflows/pre-commit.yml/badge.svg)](https://github.com/growgraph/graflo/actions/workflows/pre-commit.yml)
14
+ [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.15446131.svg)]( https://doi.org/10.5281/zenodo.15446131)
15
+
16
+ ## Core Concepts
17
+
18
+ ### Property Graphs
19
+ graflo works with property graphs, which consist of:
20
+
21
+ - **Vertices**: Nodes with properties and optional unique identifiers
22
+ - **Edges**: Relationships between vertices with their own properties
23
+ - **Properties**: Both vertices and edges may have properties
24
+
25
+ ### Schema
26
+ The Schema defines how your data should be transformed into a graph and contains:
27
+
28
+ - **Vertex Definitions**: Specify vertex types, their properties, and unique identifiers
29
+ - **Edge Definitions**: Define relationships between vertices and their properties
30
+ - **Resource Mapping**: describe how data sources map to vertices and edges
31
+ - **Transforms**: Modify data during the casting process
32
+
33
+ ### Resources
34
+ Resources are your data sources that can be:
35
+
36
+ - **Table-like**: CSV files, database tables
37
+ - **JSON-like**: JSON files, nested data structures
38
+
39
+ ## Features
40
+
41
+ - **Graph Transformation Meta-language**: A powerful declarative language to describe how your data becomes a property graph:
42
+ - Define vertex and edge structures
43
+ - Set compound indexes for vertices and edges
44
+ - Use blank vertices for complex relationships
45
+ - Specify edge constraints and properties
46
+ - Apply advanced filtering and transformations
47
+ - **Parallel processing**: Use as many cores as you have
48
+ - **Database support**: Ingest into ArangoDB and Neo4j using the same API (database agnostic)
49
+
50
+ ## Documentation
51
+ Full documentation is available at: [growgraph.github.io/graflo](https://growgraph.github.io/graflo)
52
+
53
+ ## Installation
54
+
55
+ ```bash
56
+ pip install graflo
57
+ ```
58
+
59
+ ## Usage Examples
60
+
61
+ ### Simple ingest
62
+
63
+ ```python
64
+ from suthing import ConfigFactory, FileHandle
65
+
66
+ from graflo import Schema, Caster, Patterns
67
+
68
+
69
+ schema = Schema.from_dict(FileHandle.load("schema.yaml"))
70
+
71
+ conn_conf = ConfigFactory.create_config({
72
+ "protocol": "http",
73
+ "hostname": "localhost",
74
+ "port": 8535,
75
+ "username": "root",
76
+ "password": "123",
77
+ "database": "_system",
78
+ }
79
+ )
80
+
81
+ patterns = Patterns.from_dict(
82
+ {
83
+ "patterns": {
84
+ "work": {"regex": "\Sjson$"},
85
+ }
86
+ }
87
+ )
88
+
89
+ schema.fetch_resource()
90
+
91
+ caster = Caster(
92
+ schema,
93
+ )
94
+
95
+ caster.ingest_files(
96
+ path="./data",
97
+ conn_conf=conn_conf,
98
+ patterns=patterns,
99
+ )
100
+ ```
101
+
102
+ ## Development
103
+
104
+ To install requirements
105
+
106
+ ```shell
107
+ git clone git@github.com:growgraph/graflo.git && cd graflo
108
+ uv sync --dev
109
+ ```
110
+
111
+ ### Tests
112
+
113
+ #### Test databases
114
+ Spin up Arango from [arango docker folder](./docker/arango) by
115
+
116
+ ```shell
117
+ docker-compose --env-file .env up arango
118
+ ```
119
+
120
+ and Neo4j from [neo4j docker folder](./docker/arango) by
121
+
122
+ ```shell
123
+ docker-compose --env-file .env up neo4j
124
+ ```
125
+
126
+ To run unit tests
127
+
128
+ ```shell
129
+ pytest test
130
+ ```
131
+
132
+ ## Requirements
133
+
134
+ - Python 3.11+
135
+ - python-arango
136
+
137
+ ## Contributing
138
+
139
+ Contributions are welcome! Please feel free to submit a Pull Request.
@@ -0,0 +1,18 @@
1
+ ### Table Config
2
+
3
+ Table part of the config specifies how input sources will be transformed and mapped to vertex collections.
4
+
5
+ ```yaml
6
+ table:
7
+ - tabletype: ibes
8
+ encoding: ISO-8859-1
9
+ transforms:
10
+ - foo: parse_date_ibes
11
+ module: graflo.util.transform
12
+ input:
13
+ - ANNDATS
14
+ - ANNTIMS
15
+ output:
16
+ - datetime_announce
17
+ ```
18
+
@@ -0,0 +1,39 @@
1
+ """graflo: A flexible graph database abstraction layer.
2
+
3
+ graflo provides a unified interface for working with different graph databases
4
+ (ArangoDB, Neo4j) through a common API. It handles graph operations, data
5
+ transformations, and query generation while abstracting away database-specific
6
+ details.
7
+
8
+ Key Features:
9
+ - Database-agnostic graph operations
10
+ - Flexible schema management
11
+ - Query generation and execution
12
+ - Data transformation utilities
13
+ - Filter expression system
14
+
15
+ Example:
16
+ >>> from graflo.db.manager import ConnectionManager
17
+ >>> with ConnectionManager(config) as conn:
18
+ ... conn.init_db(schema, clean_start=True)
19
+ ... conn.upsert_docs_batch(docs, "users")
20
+ """
21
+
22
+ from .architecture import Index, Schema
23
+ from .caster import Caster
24
+ from .db import ConnectionManager, ConnectionType
25
+ from .filter.onto import ComparisonOperator, LogicalOperator
26
+ from .onto import AggregationType
27
+ from .util.onto import Patterns
28
+
29
+ __all__ = [
30
+ "Caster",
31
+ "ConnectionManager",
32
+ "ConnectionType",
33
+ "ComparisonOperator",
34
+ "LogicalOperator",
35
+ "Index",
36
+ "Schema",
37
+ "Patterns",
38
+ "AggregationType",
39
+ ]
@@ -0,0 +1,37 @@
1
+ """Graph database architecture components.
2
+
3
+ This package defines the core architecture components for graph database operations,
4
+ including schema management, resource handling, and data transformations.
5
+
6
+ Key Components:
7
+ - Schema: Graph database schema definition and management
8
+ - Resource: Data resource management and processing
9
+ - Transform: Data transformation and standardization
10
+ - Vertex: Vertex collection configuration
11
+ - Edge: Edge collection configuration
12
+
13
+ Example:
14
+ >>> from graflo.architecture import Schema, Resource
15
+ >>> schema = Schema(
16
+ ... general={"name": "my_graph", "version": "1.0"},
17
+ ... vertex_config=vertex_config,
18
+ ... edge_config=edge_config
19
+ ... )
20
+ >>> resource = Resource(name="users", data=user_data)
21
+ """
22
+
23
+ from .edge import Edge, EdgeConfig
24
+ from .onto import Index
25
+ from .resource import Resource
26
+ from .schema import Schema
27
+ from .vertex import Vertex, VertexConfig
28
+
29
+ __all__ = [
30
+ "Edge",
31
+ "EdgeConfig",
32
+ "Index",
33
+ "Resource",
34
+ "Schema",
35
+ "Vertex",
36
+ "VertexConfig",
37
+ ]