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.
Files changed (41) hide show
  1. __init__.py +47 -0
  2. core/__init__.py +23 -0
  3. core/hygm/__init__.py +74 -0
  4. core/hygm/hygm.py +2351 -0
  5. core/hygm/models/__init__.py +82 -0
  6. core/hygm/models/graph_models.py +667 -0
  7. core/hygm/models/llm_models.py +229 -0
  8. core/hygm/models/operations.py +176 -0
  9. core/hygm/models/sources.py +68 -0
  10. core/hygm/models/user_operations.py +139 -0
  11. core/hygm/strategies/__init__.py +17 -0
  12. core/hygm/strategies/base.py +36 -0
  13. core/hygm/strategies/deterministic.py +262 -0
  14. core/hygm/strategies/llm.py +904 -0
  15. core/hygm/validation/__init__.py +38 -0
  16. core/hygm/validation/base.py +194 -0
  17. core/hygm/validation/graph_schema_validator.py +687 -0
  18. core/hygm/validation/memgraph_data_validator.py +991 -0
  19. core/migration_agent.py +1369 -0
  20. core/schema/spec.json +155 -0
  21. core/utils/meta_graph.py +108 -0
  22. database/__init__.py +36 -0
  23. database/adapters/__init__.py +11 -0
  24. database/adapters/memgraph.py +318 -0
  25. database/adapters/mysql.py +311 -0
  26. database/adapters/postgresql.py +335 -0
  27. database/analyzer.py +396 -0
  28. database/factory.py +219 -0
  29. database/models.py +209 -0
  30. main.py +518 -0
  31. query_generation/__init__.py +20 -0
  32. query_generation/cypher_generator.py +129 -0
  33. query_generation/schema_utilities.py +88 -0
  34. structured2graph-0.1.1.dist-info/METADATA +197 -0
  35. structured2graph-0.1.1.dist-info/RECORD +41 -0
  36. structured2graph-0.1.1.dist-info/WHEEL +4 -0
  37. structured2graph-0.1.1.dist-info/entry_points.txt +2 -0
  38. structured2graph-0.1.1.dist-info/licenses/LICENSE +21 -0
  39. utils/__init__.py +57 -0
  40. utils/config.py +235 -0
  41. 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
+ ]