Skip to main content

Property graph support for Hydra

Project description

Hydra-PG

hydra-pg is the translingual support package for the property graph data model in Hydra. It is generated into Haskell, Java, and Python from a common set of DSL sources, and depends on hydra-kernel and hydra-rdf.

For background on Hydra's approach to property graphs, see the Property graphs wiki page.

What it provides

  • PG data model — vertices, edges, properties, and graph schemas, with a coder that maps Hydra types and terms onto graph elements.
  • GraphSON coder — emits TinkerPop-compatible GraphSON 3.0 from Hydra-PG graphs.
  • Cypher syntax model — the openCypher grammar plus Cypher feature/function metadata.
  • GQL syntax model — the ISO/IEC GQL grammar and a path-algebra syntax model.
  • TinkerPop syntax model — Gremlin grammar plus TinkerPop feature metadata.
  • Graphviz coder and DOT serializer — for rendering property graphs as diagrams.
  • PG-to-RDF mappings — produces RDF descriptions of property-graph vertices and edges, for use with hydra-rdf.
  • PG validator — checks property graphs against a schema; runs identically across Haskell, Java, and Python.

Demos

Four demos exercise this package end-to-end:

  • demos/avro — bidirectional Avro coder; one of its modes maps Avro data to a TinkerPop-annotated property graph and emits GraphSON.
  • demos/genpg — generates a property graph from relational CSV data and emits it as either GraphSON or RDF/SHACL N-Triples.
  • demos/pg-formats — shows three views of the TinkerPop "Modern" reference graph: Hydra-PG JSON, GraphSON 3.0, and JSON Schema.
  • demos/validatepg — translingual property-graph validation, running the same Hydra validation logic in Haskell, Java, and Python.

See also

  • HydraPop — translingual extensions for Apache TinkerPop, built on top of this package.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hydra_pg-0.16.1.tar.gz (162.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hydra_pg-0.16.1-py3-none-any.whl (121.4 kB view details)

Uploaded Python 3

File details

Details for the file hydra_pg-0.16.1.tar.gz.

File metadata

  • Download URL: hydra_pg-0.16.1.tar.gz
  • Upload date:
  • Size: 162.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for hydra_pg-0.16.1.tar.gz
Algorithm Hash digest
SHA256 ed59f3e4993217e7dfcc165433747cb92ea229a4900a6d3b6e0c6b74ccffec2c
MD5 354889a87a0532d181daa75c432d8fb0
BLAKE2b-256 f3004f4564fc5cff27e530d020f1cfd140085754aa067d684b2626ef215364ae

See more details on using hashes here.

File details

Details for the file hydra_pg-0.16.1-py3-none-any.whl.

File metadata

  • Download URL: hydra_pg-0.16.1-py3-none-any.whl
  • Upload date:
  • Size: 121.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for hydra_pg-0.16.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0be5b7c9c8c9ade4a9054ce0dfe702afd04ea478d6627d28c1826fc186907f26
MD5 dc37c854b13bff395f8b6ca9ad100768
BLAKE2b-256 9aad0b657e6f02325c0f34739d2b33f10ddb94b8cf82311122f55f9514048b31

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page