Skip to main content

aloeschema

A Schema.org Multitool

PyPI Version Python Versions License

CI Status Downloads

Getting Started

See quickstart.ipynb for more detailed usage examples

Installation:

pip install aloeschema

Initialization: Loads schema.org and a validator

from aloeschema import load_schema_org
from aloeschema.validator import AloeSchemaValidator
schema_org = load_schema_org()
schema_validator =  AloeSchemaValidator(schema_org)

Validating schema.org

  • Input case is ignored by default (ignore_case=True)
  • Detailed errors raised by default (quiet=False)
    • Set quiet=True to return a truthy result instead
from aloeschema.validator import AloeSchemaValidator
from aloeschema import load_schema_org

schema_org = load_schema_org()
schema_validator = AloeSchemaValidator(schema_org)

schema_validator.Validate(subject_type_name="person", property_type_name="potentialaction", object_type_name="planaction")
schema_validator._getType("schedule")

Extending Schema.org With Custom Types, Properties, and Enumerations

use registerCustomType, registerCustomProperty, registerCustomEnumeration, and registerCustomEnumerationValue to extend Schema.org

from aloeschema.validator import AloeSchemaValidator
from aloeschema import load_schema_org, registerCustomProperty, registerCustomType, registerCustomEnumeration, registerCustomEnumerationValue

schema_org = load_schema_org()

schema_org = registerCustomType(schema_org, name="User", parent="Person", properties=[])
schema_org = registerCustomProperty(schema_org, name="userName", domain=["Person", "User"], range=["Text"])

schema_org = registerCustomEnumeration(schema_org, name="TaskStatus")
schema_org = registerCustomEnumerationValue(schema_org, enum_type="TaskStatus", value="TaskStatusActive")
schema_org = registerCustomProperty(schema_org, name="taskStatus", domain=["User"], range=["TaskStatus"])

schema_validator = AloeSchemaValidator(schema_org)

schema_validator.IsEnumerationType("TaskStatus")                                           # True
schema_validator.EnumerationValueIsOfType("TaskStatus", "TaskStatusActive")               # True
schema_validator.Validate(subject_type_name="User", property_type_name="taskStatus", enumeration_value_name="TaskStatusActive")  # True

Metadata

Release files for aloeschema 0.3.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aloeschema 0.3.2
File Size Uploaded
aloeschema-0.3.2.tar.gz 277.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for aloeschema 0.3.2
File Interpreter ABI Platform
aloeschema-0.3.2-py3-none-any.whl Python 3 none any Details

Total release size: 560.8 kB

Release files / aloeschema-0.3.2.tar.gz

Download URL aloeschema-0.3.2.tar.gz
Size 277.8 kB
Tags Source
SHA-256 checksum
How to use checksums
d32a33c8cffb6d0e3243f0039748d960e8ffa97e550042a14b171f37407c4695
BLAKE2b-256 checksum
How to use checksums
859a7cd7f4941b8d07462f869b2f2318b437430314217f8b5bf9b2bb52765617
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 12, 2026.

Transparency log

Release files / aloeschema-0.3.2-py3-none-any.whl

Download URL aloeschema-0.3.2-py3-none-any.whl
Size 283.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b1b0448b4984c0a32eba00513060bc4cd67f2059f9aa63b82572b0ad88727a0e
BLAKE2b-256 checksum
How to use checksums
827292868d2912ed0e8c2ed1368c9cc9d49f44d3b5ea0c462591ec10af51f3e5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 12, 2026.

Transparency log

Release history Release notifications | RSS feed

0.3.3

2 release files

This release

0.3.2 This release

2 release files

0.3.1

2 release files

0.2.3

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page