shape tool inspects your markdown content and infers a schema of the data it contains. It returns the classes, properties, and relationships so you know what is available to extract.
Prerequisites
- An AiQL API key in the
AIQL_API_KEYenvironment variable - Markdown content from the Convert or Split step
Infer the schema
Send the markdown you want to inspect. Tool requests authenticate with a Bearer token and do not need a workspace.classes, properties, and relationships:
- A class has a
nameand adefinition. - A property has a
name, adefinition, and adomain(the class or classes it applies to). - A relationship has a
name, adefinition, adomain(the class or classes it starts from), and arange(the class or classes it points to).
Next step
Pass the schema to Extract to pull its values out of the markdown.shape is billed at 10 credits per 1,000 words, with a minimum of 1 credit. See Pricing for details.