← Back to Skills Marketplace
fisa712

Knowledge Graph - Kg Schema From Text

by Muhammad Asif · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
39
Downloads
0
Stars
1
Active Installs
1
Versions
Install in OpenClaw
/install kg-schema-from-text
Description
Generate a structured knowledge graph ontology or schema from unstructured or semi-structured text sources.
README (SKILL.md)

Knowledge Graph Schema Generation from Text

Automatically derive structured graph schemas from natural language documentation and domain descriptions.

This skill converts textual descriptions into machine-readable graph models with entities, relationships, properties, and constraints.

Quick Start

Use When

  • Converting domain documentation → ontology
  • Bootstrapping a knowledge graph schema
  • Designing initial RDF/OWL or Neo4j schemas
  • Extracting schema from requirements or API docs

Inputs

  • Natural language domain descriptions
  • Technical documentation
  • Example records or datasets
  • JSON/CSV structures

Outputs

  • Entity types (nodes/classes)
  • Relationship types (edges/predicates)
  • Properties & attributes
  • Graph schema representation (Property Graph or RDF)

Example

Input:

A university contains students, professors, courses, and departments.
Students enroll in courses. Professors teach courses.
Departments manage both courses and professors.

Output:

Entities: Student, Professor, Course, Department

Relationships:
- Student -> ENROLLED_IN -> Course
- Professor -> TEACHES -> Course
- Department -> MANAGES -> Course
- Department -> MANAGES -> Professor

Properties:
- Student: id, name, email, enrollment_date
- Course: id, title, credits, department
- Professor: id, name, department, specialization
- Department: id, name, budget

Execution Steps

  1. Extract Entities – Identify nouns/concepts from text
  2. Extract Relationships – Identify verbs/connections
  3. Extract Properties – Identify attributes and constraints
  4. Infer Structure – Build graph patterns
  5. Generate Schema – Output in target format (Property Graph or RDF)

Schema Formats

Property Graph (Neo4j, TigerGraph)

Nodes: Student, Professor, Course, Department
Relationships: ENROLLED_IN, TEACHES, MANAGES
Properties: Names, IDs, dates, descriptions

RDF/OWL (Semantic Web)

Classes: Student, Professor, Course, Department
Properties: enrolledIn, teaches, manages
Attributes: name, id, description

Recommended Libraries

  • NLP: spaCy, transformers, nltk
  • Graph: networkx, rdflib, pyvis, owlready2
  • Schema: pydantic, dataclasses, jsonschema

Best Practices

✓ Use clear, consistent entity names (PascalCase)
✓ Normalize relationship directions
✓ Extract domain-specific constraints
✓ Separate schema from instance data
✓ Follow knowledge graph modeling standards

References

See extraction-patterns.md for entity/relationship extraction guidelines and example-schemas.md for domain examples.


Version: 1.0.0

Usage Guidance
Reasonable to install if you want local help designing knowledge-graph schemas from text. Review any domain text you provide because the script may echo or transform it in output, but the skill does not show network transmission or hidden persistence.
Capability Assessment
Purpose & Capability
The artifacts consistently describe generating entities, relationships, properties, and graph schema examples from text; the included Python script performs local regex-based extraction and prints schema output.
Instruction Scope
Runtime instructions are scoped to schema extraction and modeling guidance, with examples for domains such as university, ecommerce, healthcare, and social networks.
Install Mechanism
The package contains markdown guidance and one Python utility script with no declared dependencies, installer hooks, package downloads, or automatic execution steps.
Credentials
The executable script only uses standard-library parsing utilities and does not access credentials, local profiles, external networks, or unrelated files.
Persistence & Privilege
No persistence, privilege escalation, background workers, credential use, destructive operations, or external posting behavior was found.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install kg-schema-from-text
  3. After installation, invoke the skill by name or use /kg-schema-from-text
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
- Initial release of kg_schema_from_text. - Automatically generates structured knowledge graph schemas from unstructured or semi-structured text. - Outputs include entities, relationships, properties, and targeted formats (Property Graph or RDF/OWL). - Supports input from domain descriptions, technical docs, and data examples. - Provides example workflows, library recommendations, and best practices for schema extraction.
Metadata
Slug kg-schema-from-text
Version 1.0.0
License MIT-0
All-time Installs 1
Active Installs 1
Total Versions 1
Frequently Asked Questions

What is Knowledge Graph - Kg Schema From Text?

Generate a structured knowledge graph ontology or schema from unstructured or semi-structured text sources. It is an AI Agent Skill for Claude Code / OpenClaw, with 39 downloads so far.

How do I install Knowledge Graph - Kg Schema From Text?

Run "/install kg-schema-from-text" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Knowledge Graph - Kg Schema From Text free?

Yes, Knowledge Graph - Kg Schema From Text is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Knowledge Graph - Kg Schema From Text support?

Knowledge Graph - Kg Schema From Text is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Knowledge Graph - Kg Schema From Text?

It is built and maintained by Muhammad Asif (@fisa712); the current version is v1.0.0.

💬 Comments