Agent skill
libgraph
libgraph - RDF graph index using N3 library. GraphIndex stores and queries linked data triples. PREFIXES provides standard namespaces (schema, rdf, rdfs, foaf). parseTripleQuery parses subject-predicate-object patterns. serializeShacl generates SHACL constraints. Use for knowledge graphs, semantic queries, and linked data processing.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/libgraph
SKILL.md
libgraph Skill
When to Use
- Building and querying knowledge graphs
- Storing RDF triples for semantic data
- Executing subject-predicate-object pattern queries
- Working with linked data and ontologies
Key Concepts
GraphIndex: Storage-backed index for RDF triples with pattern-based querying.
PREFIXES: Standard namespace prefixes for common vocabularies (schema.org, RDF, RDFS, FOAF).
Triple patterns: Query graphs using subject-predicate-object patterns with wildcards.
Usage Patterns
Pattern 1: Query graph triples
import { createGraphIndex, PREFIXES } from "@copilot-ld/libgraph";
const index = await createGraphIndex(storage, "knowledge");
const results = await index.query(
`${PREFIXES.schema}Person`,
`${PREFIXES.schema}name`,
"?",
);
Pattern 2: Parse triple query string
import { parseTripleQuery } from "@copilot-ld/libgraph";
const { subject, predicate, object } = parseTripleQuery("schema:Person ? ?");
Integration
Used by Graph service for knowledge queries. Processes ontology.ttl files.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?