structured2graph 0.1.1__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.
- __init__.py +47 -0
- core/__init__.py +23 -0
- core/hygm/__init__.py +74 -0
- core/hygm/hygm.py +2351 -0
- core/hygm/models/__init__.py +82 -0
- core/hygm/models/graph_models.py +667 -0
- core/hygm/models/llm_models.py +229 -0
- core/hygm/models/operations.py +176 -0
- core/hygm/models/sources.py +68 -0
- core/hygm/models/user_operations.py +139 -0
- core/hygm/strategies/__init__.py +17 -0
- core/hygm/strategies/base.py +36 -0
- core/hygm/strategies/deterministic.py +262 -0
- core/hygm/strategies/llm.py +904 -0
- core/hygm/validation/__init__.py +38 -0
- core/hygm/validation/base.py +194 -0
- core/hygm/validation/graph_schema_validator.py +687 -0
- core/hygm/validation/memgraph_data_validator.py +991 -0
- core/migration_agent.py +1369 -0
- core/schema/spec.json +155 -0
- core/utils/meta_graph.py +108 -0
- database/__init__.py +36 -0
- database/adapters/__init__.py +11 -0
- database/adapters/memgraph.py +318 -0
- database/adapters/mysql.py +311 -0
- database/adapters/postgresql.py +335 -0
- database/analyzer.py +396 -0
- database/factory.py +219 -0
- database/models.py +209 -0
- main.py +518 -0
- query_generation/__init__.py +20 -0
- query_generation/cypher_generator.py +129 -0
- query_generation/schema_utilities.py +88 -0
- structured2graph-0.1.1.dist-info/METADATA +197 -0
- structured2graph-0.1.1.dist-info/RECORD +41 -0
- structured2graph-0.1.1.dist-info/WHEEL +4 -0
- structured2graph-0.1.1.dist-info/entry_points.txt +2 -0
- structured2graph-0.1.1.dist-info/licenses/LICENSE +21 -0
- utils/__init__.py +57 -0
- utils/config.py +235 -0
- utils/environment.py +404 -0
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"""
|
|
2
|
+
HyGM Models - Core data models for Hypothetical Graph Modeling.
|
|
3
|
+
|
|
4
|
+
This package contains all the data models used in HyGM:
|
|
5
|
+
- LLM models for AI-powered generation
|
|
6
|
+
- Core graph models for representing the graph structure
|
|
7
|
+
- Operation models for interactive modifications
|
|
8
|
+
- Source models for tracking data lineage
|
|
9
|
+
"""
|
|
10
|
+
|
|
11
|
+
from .llm_models import (
|
|
12
|
+
GraphModelingStrategy,
|
|
13
|
+
ModelingMode,
|
|
14
|
+
LLMGraphNode,
|
|
15
|
+
LLMGraphRelationship,
|
|
16
|
+
LLMGraphModel,
|
|
17
|
+
)
|
|
18
|
+
from .operations import (
|
|
19
|
+
ModelOperation,
|
|
20
|
+
ChangeNodeLabelOperation,
|
|
21
|
+
RenamePropertyOperation,
|
|
22
|
+
DropPropertyOperation,
|
|
23
|
+
AddPropertyOperation,
|
|
24
|
+
ChangeRelationshipNameOperation,
|
|
25
|
+
DropRelationshipOperation,
|
|
26
|
+
AddIndexOperation,
|
|
27
|
+
DropIndexOperation,
|
|
28
|
+
ModelModifications,
|
|
29
|
+
)
|
|
30
|
+
from .sources import (
|
|
31
|
+
PropertySource,
|
|
32
|
+
NodeSource,
|
|
33
|
+
RelationshipSource,
|
|
34
|
+
IndexSource,
|
|
35
|
+
ConstraintSource,
|
|
36
|
+
EnumSource,
|
|
37
|
+
)
|
|
38
|
+
from .graph_models import (
|
|
39
|
+
GraphProperty,
|
|
40
|
+
GraphNode,
|
|
41
|
+
GraphRelationship,
|
|
42
|
+
GraphIndex,
|
|
43
|
+
GraphConstraint,
|
|
44
|
+
GraphEnum,
|
|
45
|
+
GraphModel,
|
|
46
|
+
)
|
|
47
|
+
|
|
48
|
+
__all__ = [
|
|
49
|
+
# Enums and strategies
|
|
50
|
+
"GraphModelingStrategy",
|
|
51
|
+
"ModelingMode",
|
|
52
|
+
# LLM models
|
|
53
|
+
"LLMGraphNode",
|
|
54
|
+
"LLMGraphRelationship",
|
|
55
|
+
"LLMGraphModel",
|
|
56
|
+
# Operation models
|
|
57
|
+
"ModelOperation",
|
|
58
|
+
"ChangeNodeLabelOperation",
|
|
59
|
+
"RenamePropertyOperation",
|
|
60
|
+
"DropPropertyOperation",
|
|
61
|
+
"AddPropertyOperation",
|
|
62
|
+
"ChangeRelationshipNameOperation",
|
|
63
|
+
"DropRelationshipOperation",
|
|
64
|
+
"AddIndexOperation",
|
|
65
|
+
"DropIndexOperation",
|
|
66
|
+
"ModelModifications",
|
|
67
|
+
# Source models
|
|
68
|
+
"PropertySource",
|
|
69
|
+
"NodeSource",
|
|
70
|
+
"RelationshipSource",
|
|
71
|
+
"IndexSource",
|
|
72
|
+
"ConstraintSource",
|
|
73
|
+
"EnumSource",
|
|
74
|
+
# Core graph models
|
|
75
|
+
"GraphProperty",
|
|
76
|
+
"GraphNode",
|
|
77
|
+
"GraphRelationship",
|
|
78
|
+
"GraphIndex",
|
|
79
|
+
"GraphConstraint",
|
|
80
|
+
"GraphEnum",
|
|
81
|
+
"GraphModel",
|
|
82
|
+
]
|