KG Generator for Openclaw

A sophisticated semantic engine that converts web content and files into standards-compliant RDF-Turtle or JSON-LD knowledge graphs.

kidehen
v1.0.0
Mar 15, 2026
0
883
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install kg-generator

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install kg-generator using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is KG Generator?

The KG Generator is a high-performance utility designed for the Openclaw Skills ecosystem to bridge the gap between unstructured web content and the Semantic Web. It enables AI agents to crawl URLs or local files and synthesize them into rich, machine-readable data structures. By utilizing curated prompt templates, it ensures that every output adheres to strict RDF serializations and schema.org vocabularies.

This skill is particularly powerful for developers and researchers who need to build local knowledge bases or feed structured data into graph databases. Whether you are extracting metadata from a blog post or performing a deep industry dive, Openclaw Skills provide the necessary logic to maintain data integrity and semantic accuracy across different content types.

KG Generator Use Cases

  • Automatically generating a knowledge graph from a specific article or report URL.
  • Converting business strategy threads into RDF-Turtle for market analysis and TAM tracking.
  • Extracting schema.org compliant JSON-LD from documentation to improve SEO visibility.
  • Creating structured semantic renditions of local files for personal knowledge management.
  • Automating the generation of FAQ pages and glossaries based on existing page content.

How KG Generator Works

  1. The agent identifies a source URL from a file or web scheme provided in the user prompt.
  2. Content is retrieved using integrated tools like browser automation or web fetching.
  3. The skill selects the optimal template—Generic for articles or Business & Market Analysis for strategy content.
  4. Output format is determined, defaulting to RDF-Turtle while supporting JSON-LD requests.
  5. The template is populated with source text and canonical metadata via placeholders.
  6. Syntactic validation is performed to ensure balanced brackets, valid prefixes, and triple syntax.
  7. The validated knowledge graph is delivered as a code block and optionally saved to a local directory.

KG Generator Setup

To integrate the KG Generator into your environment, ensure your AI agent has access to the Openclaw Skills directory. You may need to configure the default save path for generated artifacts.

# Example directory setup for generated knowledge graphs
mkdir -p "/Users/kidehen/Documents/LLMs/Claude Generated/web pages/"

Ensure that the agent has the necessary permissions to fetch external URLs and write to the local file system.

KG Generator Data Schema & Taxonomy

The skill organizes output based on the content type and requested serialization. It enforces a strict taxonomy to ensure interoperability:

Feature Generic Template Business Template
Primary Format JSON-LD RDF-Turtle
Vocabularies schema.org schema.org, SKOS, ORG, DBO
Identifiers Hash-based relative IRIs NAICS, ISBN, ISO 3166-1
Components FAQs, HowTos, Entities Ontology, TAM, Industry Verticals

Files are saved using a versioned naming convention: {descriptive-slug}-{version}.ttl or .jsonld.

KG Generator Advanced Features

  • Multi-template switching based on content intent (e.g., automated detection of business vs. general content).
  • Lightweight ontology generation on-the-fly, defining custom classes like :Industry and :AutomationReadiness.
  • Automated DBpedia cross-referencing using owl:sameAs for enhanced linked data connectivity.
  • Integrated validation checklist for RDF syntax, ensuring 100% compliance with W3C standards.
  • Support for NAICS industry code lookups with canonical Census Bureau URL mapping.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*