Schemas
Schemas are the building blocks of Hystruct. They define what data is extracted from a website.
Why do I need a schema?
Schemas are the building blocks of Hystruct. They define what data is extracted from a website. You can think of a schema as a template for extracting data from a website.
In other words, they define what data you’re actually interested in.
How do I create a schema?
Creating a schema is easy. You can create a schema by clicking on “Schemas” in the main navigation, and then on the “Create Schema” button in the dashboard.
Schema field types
Hystruct supports a variety of field types, including:
- String (some text)
- Number
- Boolean (true or false)
- Date (a string representing a date)
- Array (a list of items)
Schema field options
Each field type has its own set of options. For example, you can give the field a name, description, a type (see above) and an example.
Why should I give a field an example?
Giving a field an example can help our AI extraction engine understand what data you’re interested in. For example, if you have a field called “amount” and you set an example of $10.00
, our AI engine will know that you’re looking for a dollar price amount, rather than a quantity.