kg-generator

Generate RDF-Turtle knowledge graphs from file or http(s) URLs.

35|8|Updated Dec 19, 2025
One-click install
npx skills add https://github.com/OpenLinkSoftware/ai-agent-skills --skill kg-generator
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: kg-generator
Source: https://github.com/OpenLinkSoftware/ai-agent-skills/tree/main/kg-generator
Command: npx skills add https://github.com/OpenLinkSoftware/ai-agent-skills --skill kg-generator

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Generate comprehensive Knowledge Graphs (RDF-Turtle by default, or JSON-LD and other RDF serializations on request) from content at file: or http(s): scheme URLs. Uses curated prompt templates: a Generic template for general web content (producing JSON-LD), and a Business and Market Analysis template for strategy/analysis content (producing RDF-Turtle with NAICS industry code identifiers, lightweight ontology, FAQ, glossary, and HowTo sections). Trigger when users ask to: generate a knowledge graph, generate RDF or RDF-Turtle, generate JSON-LD, convert a URL to structured semantic data, or extract schema.org data from a page or document.

Core Features & Use Cases

  • Generate RDF-Turtle by default from URLs or local files, with optional JSON-LD or other serializations
  • Automatically select between Generic and Business templates based on content and user request
  • Includes lightweight ontology support (NAICS codes, glossary, HowTo sections) and robust workflow
  • Triggered by natural-language requests to convert pages, documents, or posts into structured semantic data

Quick Start

Provide a URL or file path and specify your preferred output format and template, then run the knowledge graph generation.

Frequently Asked Questions about kg-generator

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

FAQPage Schema
How do I generate a knowledge graph from a URL?

Yes, you can convert web page content into JSON-LD semantic data. The system uses a Generic template to process general web content from URLs and outputs structured JSON-LD, or it can produce other RDF serializations if specified.

What is the best way to extract schema.org data from a document?

Knowledge graph generation for business and market analysis uses a specialized Business template. This template produces RDF-Turtle with NAICS industry code identifiers, a lightweight ontology, FAQ, glossary, and HowTo sections from your strategy content.

Can I generate RDF-Turtle from a local file path?

No external dependencies are required to produce RDF-Turtle or JSON-LD output. The system handles the knowledge graph generation workflow internally, applying curated templates directly to your provided file or http(s) URL content.

Does knowledge graph generation support formats other than RDF-Turtle?

Yes, knowledge graph generation supports formats other than RDF-Turtle. While RDF-Turtle is produced by default, you can request JSON-LD and other RDF serializations when providing your content URL or file path for semantic data extraction.