Skip to content

fix: update cypher-rs to support claims via graph relationships#76

Merged
sonesuke merged 1 commit intomainfrom
fix/cypher-rs-claims-support
Apr 5, 2026
Merged

fix: update cypher-rs to support claims via graph relationships#76
sonesuke merged 1 commit intomainfrom
fix/cypher-rs-claims-support

Conversation

@sonesuke
Copy link
Copy Markdown
Owner

@sonesuke sonesuke commented Apr 5, 2026

Summary

  • Update cypher-rs to latest version with unified JSON-to-graph conversion
  • Fix API call: from_json_auto_as_root_with_labelfrom_json_with_label
  • Fix Config::resolve() to add --no-sandbox even when browser_path is set
  • Update SKILL.md to document relationship-based claims access

Problem

Previously, claims data was not accessible via Cypher queries:

  • p.claims returned null because array fields were not properly handled
  • The old cypher-rs API couldn't handle nested arrays in single patent objects

Solution

With the new cypher-rs (PR #11 merged), array fields are converted to graph relationships:

  • Array fields become relationships: (:Patent)-[:claims]->(:claims)
  • Claims are now accessible via: MATCH (p:Patent)-[:claims]->(c) RETURN c.number, c.text

Also fixed a bug where --no-sandbox wasn't added when browser_path was configured in devcontainer.

Test plan

  • cargo test — 28 tests passing
  • cargo clippy — no warnings
  • cargo fmt — clean
  • Verified claims accessible via relationship query

🤖 Generated with Claude Code

@sonesuke sonesuke force-pushed the fix/cypher-rs-claims-support branch from e87148d to 86f4cff Compare April 5, 2026 10:27
- Update cypher-rs to latest version with unified JSON-to-graph conversion
- Fix API call: from_json_auto_as_root_with_label → from_json_with_label
- Update SKILL.md to document relationship-based claims access

With the new cypher-rs, array fields (claims, description_paragraphs)
are converted to graph relationships rather than properties. Users must
now access claims via: MATCH (p:Patent)-[:claims]->(c) RETURN c.number, c.text

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@sonesuke sonesuke force-pushed the fix/cypher-rs-claims-support branch from 86f4cff to 00c880a Compare April 5, 2026 10:30
@sonesuke sonesuke merged commit d02303d into main Apr 5, 2026
4 checks passed
@sonesuke sonesuke deleted the fix/cypher-rs-claims-support branch April 5, 2026 10:36
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.

2 participants