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.0.tar.gz (115.4 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.0-py3-none-any.whl (91.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hydra_pg-0.16.0.tar.gz
  • Upload date:
  • Size: 115.4 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.0.tar.gz
Algorithm Hash digest
SHA256 0d707319a1a11d728917a94bfbf0999f2ace83adc5e7dd53b9fa56353aa71541
MD5 3150bae0e68ea7dd970916a81d68261c
BLAKE2b-256 9a651a0b3464d3c6b1655f23c078c2a1e8622ebe9f6b74944a9c4192d05c1a2f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hydra_pg-0.16.0-py3-none-any.whl
  • Upload date:
  • Size: 91.2 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 745366c4b468e605d384615b57a085cae96c3550d83a4dac039971b831785aa5
MD5 584be04e03b104e86cedfd512410f558
BLAKE2b-256 b9bf5996a46c82bbff0e1937728f69ba140ac76094bf4650da6ee43abf304f0b

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