Skip to main content

hygm

A shared graph schema/ontology model: node types, relation types with the node labels they may connect (start_labels/end_labels, OWL's rdfs:domain/rdfs:range), and how each node type's mentions merge into nodes (identity). Producing packages (unstructured2graph) extract and validate against it.

from hygm import ManualStrategy, validate_model

model = ManualStrategy().create_model("ontology.yaml")

Strategies:

  • ManualStrategy: a hand-authored YAML file (see its docstring for the shape).
  • OwlImportStrategy: a standard OWL ontology. owl:Class becomes a node type, owl:ObjectProperty a relation type, and rdfs:domain/rdfs:range (one class or an owl:unionOf) the start/end labels. Needs hygm[owl] (rdflib).
  • LlmRecommendationStrategy: derives a model from a corpus sample. Interface only for now.

validate_model is the hard gate every model passes before anything extracts against it. ManualStrategy runs it on load.

Named after, but separate from, agents/sql2graph's HyGM, which is untouched. Its validation types are lifted here in the same shape, so a later consolidation is a type swap.

Metadata

Release files for hygm 0.1.0

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

Source distribution (sdist)

Source distribution for hygm 0.1.0
File Size Uploaded
hygm-0.1.0.tar.gz 11.9 kB Details

Built distribution (wheel)

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

Total release size: 23.0 kB

Release files / hygm-0.1.0.tar.gz

Download URL hygm-0.1.0.tar.gz
Size 11.9 kB
Tags Source
SHA-256 checksum
How to use checksums
4766c2238d39573027d7cc2b35024c9f14d59b1ccc8946299b69ece57eadeff0
BLAKE2b-256 checksum
How to use checksums
bfe19b6298c90078f784ce425ac7cb5edc7a493c13fa381f24ef588c5ed2a0a8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.23 {"installer":{"name":"uv","version":"0.12.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / hygm-0.1.0-py3-none-any.whl

Download URL hygm-0.1.0-py3-none-any.whl
Size 11.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d0420a0ff2d86d432efc6ff8a320481dc5609db099127dc953b47450a8bf9a67
BLAKE2b-256 checksum
How to use checksums
dab5cbb8627b478bde076b2384544f2cb78e59463b6d852fe32dd57f24ea0e8c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.23 {"installer":{"name":"uv","version":"0.12.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release history Release notifications | RSS feed

0.2.0

2 release files

This release

0.1.0 This release

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