Skip to content

feat: implement tensor friendly json and cypher graph serializers - #14

Merged
ElliotSun merged 1 commit into
mainfrom
feat-graph-serializers-2530397524747058571
Apr 17, 2026
Merged

feat: implement tensor friendly json and cypher graph serializers#14
ElliotSun merged 1 commit into
mainfrom
feat-graph-serializers-2530397524747058571

Conversation

@ElliotSun

Copy link
Copy Markdown
Collaborator

Implement JsonSerializer (tensor ID mapped) and CypherSerializer (CREATE idempotent execution).

Consolidate the architecture natively inside contracthub/exporters/graph_exporter.py registering explicitly against datacontract-cli exporter mapping using standard --export-args '{"format": "cypher"}' parsing logic directly.

Fully tested via DataContract() object initialization mapped explicitly against core testing fixtures guaranteeing complete native test execution correctly resolving all relationship configurations seamlessly executing perfectly natively.


PR created automatically by Jules for task 2530397524747058571 started by @ElliotSun

- Built decoupled `CypherSerializer` mapped against "Column as Node" outputs adhering to strictly declarative `CREATE` operations managing downstream idempotency logic natively via structural variables formatting escaping cleanly.
- Implemented `JsonSerializer` resolving string references to strictly contiguous integer indexing natively aligning downstream external Graph Neural Network tensor expectations accurately.
- Centralized all serialization formats under unified `GraphExporter` accessible consistently through datacontract-cli mapping behavior.
- Included full end-to-end integration tests natively parsing DataContract files resolving YAML correctly testing output shapes against mocked expectations accurately enforcing relationships behaviors comprehensively avoiding any test mock leakage cleanly.

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
@google-labs-jules

Copy link
Copy Markdown
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@ElliotSun
ElliotSun merged commit 6d0e217 into main Apr 17, 2026
2 checks passed
@ElliotSun
ElliotSun deleted the feat-graph-serializers-2530397524747058571 branch May 17, 2026 01:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant