gremlin

Generate Gremlin traversal queries for AWS Neptune using gremlin-go driver patterns.

40|3|Updated Feb 8, 2018
One-click install
npx skills add https://github.com/jm96441n/dotfiles --skill gremlin
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gremlin
Source: https://github.com/jm96441n/dotfiles/tree/main/.config/opencode/skill/gremlin
Command: npx skills add https://github.com/jm96441n/dotfiles --skill gremlin

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Writing efficient and correct Gremlin graph traversals against AWS Neptune can be error-prone and verbose. This Skill provides patterns and examples to build traversals using the gremlin-go driver patterns in this codebase, enabling consistent access control and multi-tenant support.

Core Features & Use Cases

  • Obtain read-only or read-write traversals via gremlinStore to enforce tenancy and access scopes.
  • Demonstrate common traversal patterns for vertices and edges, filtering, projection, and path queries, including upserts and conditional updates.
  • Use with graph.Store to implement high-level CRUD operations on nodes and edges in Neptune.

Quick Start

Run a sample read-only traversal using ReadOnlyTraversal(customerID) to fetch a vertex by ID and inspect its properties.

Frequently Asked Questions about gremlin

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build Gremlin graph traversal queries for AWS Neptune using Go?

To build Gremlin graph traversal queries for AWS Neptune in Go, use the gremlin-go driver patterns to obtain traversals through gremlinStore ReadOnlyTraversal and ReadWriteTraversal methods, then apply vertex, edge, and path operations.

What is the best way to enforce multi-tenant access control in AWS Neptune traversals?

The best way to enforce multi-tenant access control in AWS Neptune traversals is using ReadOnlyTraversal and ReadWriteTraversal methods with CustomerID, which scopes graph queries and ensures consistent tenancy boundaries.

How do I perform vertex and edge upserts in a Neptune graph using Go?

Perform vertex and edge upserts in a Neptune graph using Go by obtaining a ReadWriteTraversal from the gremlinStore, then applying common traversal patterns and conditional updates across labels and properties like _modified_time.

Does this approach require specific internal properties for graph traversals in Neptune?

Yes, this approach requires familiarity with internal properties such as _modified_time, _owner, and CustomerID, as well as internal storage abstractions like gremlin.Store and graph.Store for managing graph data.

How do I fetch a vertex by ID and inspect its properties in a read-only Neptune traversal?

Fetch a vertex by ID and inspect its properties by running a sample read-only traversal using the ReadOnlyTraversal method with your customerID, then projecting the specific node labels and properties from the graph.