graflo.db.graph_introspection¶
Graph database schema introspection and Schema inference.
GraphEdgeIntrospection
¶
Bases: ConfigBaseModel
Sampled edge pattern from a graph database.
Source code in graflo/db/graph_introspection.py
GraphIntrospectionResult
¶
Bases: ConfigBaseModel
Serializable graph introspection snapshot.
Source code in graflo/db/graph_introspection.py
GraphSchemaInferencer
¶
Build a graflo :class:Schema from graph introspection results.
Source code in graflo/db/graph_introspection.py
69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 | |
GraphVertexIntrospection
¶
Bases: ConfigBaseModel
Sampled vertex type from a graph database.
Source code in graflo/db/graph_introspection.py
infer_identity_fields(properties)
¶
Pick identity fields from sampled property names.
Source code in graflo/db/graph_introspection.py
merge_property_names(existing, sampled)
¶
Merge property name lists preserving order and uniqueness.
Source code in graflo/db/graph_introspection.py
strip_internal_properties(doc)
¶
Remove common database-internal keys from a document.