@graphty/graphty-element / ai / SchemaExtractor
Class: SchemaExtractor ​
Defined in: graphty-element/src/ai/schema/SchemaExtractor.ts:150
Extracts schema information from graph node and edge data.
Combines @jsonhero/schema-infer for type/format detection with Capital One's enum detection algorithm.
Constructors ​
Constructor ​
new SchemaExtractor(
graph,options?):SchemaExtractor
Defined in: graphty-element/src/ai/schema/SchemaExtractor.ts:159
Creates a new SchemaExtractor instance.
Parameters ​
graph ​
The graph to extract schema from
options? ​
Optional extraction options
Returns ​
SchemaExtractor
Methods ​
extract() ​
extract():
SchemaSummary
Defined in: graphty-element/src/ai/schema/SchemaExtractor.ts:168
Extract schema from the graph.
Returns ​
SchemaSummary with node and edge property information