json-to-triples-converter

SKILL效率
效率 未标注权限 许可证不明确
安装这个技能

Convert JSON documents into RDF triples or graph-ready subject–predicate–object statements for knowledge graphs and semantic databases.

一句话选型结论

按资料字段整理

json-to-triples-converter是效率类的 Agent Skill,安装方式未标注,权限级别未标注,许可证不明确,有可直接复制的安装命令。技能本质是给模型读的说明书,效果取决于模型与客户端;装完先用一个小任务验证,再放进正式流程。

分类效率 安装方式未标注 权限级别未标注权限 许可证许可证不明确
累计安装 未标注 本周 未标注
GitHub 星标 未标注 仓库 未标注
下载量 未标注 技能市场下载数
权限级别 未标注权限 安装前请确认风险范围
许可证 许可证不明确 未说明

安装

未标注
在支持 Skills 的客户端里执行,装完问一句「你有哪些技能」验证
skillhub install user_15292d5a/yjkj-json-to-triples-converter
  1. 1
    确认客户端支持

    确认你的客户端支持 Skills(Claude、Codex、Cursor 等),并升级到较新的版本。

  2. 2
    拿到技能文件

    执行上面的命令安装;也可以把仓库里的 SKILL.md 手动放进客户端的 skills 目录。

  3. 3
    刷新技能列表

    重新打开客户端,或刷新技能列表,让新放进来的技能被加载。

  4. 4
    验证是否生效

    问一句「你有哪些技能」,确认列表里出现它,再拿一个小任务试跑。

技能档案

效率
字段来自技能仓库与公开索引,中文说明由本站标注
作者 / 维护方user_15292d5a仓库 未标注 · 版本 未标注
宿主客户端未标注技能可被这些客户端加载
安装方式未标注安装包 community
权限级别未标注权限安装前请确认风险范围
许可证未说明许可证不明确,商用前请自行确认条款
仓库可用性available技能仓库当前是否可访问
最近核验未标注上游最后核验时间 · 数据更新 1791710276
正文体量8.2 KBSKILL.md 原文大小,越大说明说明书写得越细

典型使用场景

3 类
按分类整理的常见用法,具体以 SKILL.md 为准
整理待办与日程

把零散任务收进清单,排出优先级。

批量处理重复任务

把固定动作做成模板,重复执行。

把流程写成清单

把口头流程整理成可复用的步骤。

选择建议

装之前先看这几条
按条目字段给出的判断,不替你决定用不用

值得选的地方

  • 有可直接复制的安装命令,不用自己翻文档找入口。

先想清楚的地方

  • 没有标注权限级别,实际能做什么要装好后确认。
  • 许可证不明确,商用或二次分发前先到仓库确认条款。
  • 没有做站内核验,内容以作者仓库为准。
  • 技能只是说明书,实际效果取决于模型与客户端,装完先用小任务试一遍。

更适合

  • 需要在效率场景里给模型补一套做法的人。
  • 愿意先读一遍 SKILL.md、确认它会让模型做什么的人。

不太适合

  • 对许可证要求很严、必须明确可商用的人。
  • 只想装完就自动变强、不打算看说明书的人。

同类对比

6 个同类
同分类里挑最接近的几条,字段以各自详情页为准
技能权限级别安装方式累计安装宿主客户端安装命令
json-to-triples-converter当前 未标注权限 未标注 未标注 未标注 有
Nano PDF 文档 联网访问 ClawHub 市场 424.9 万 OpenClaw 有
自动更新程序 浏览器控制 ClawHub 市场 296.4 万 OpenClaw 有
Gemini 助手 联网访问 ClawHub 市场 254.7 万 OpenClaw 有
word DOCX 文档 联网访问 ClawHub 市场 239.6 万 OpenClaw 有
Excel XLSX 前端 联网访问 ClawHub 市场 227.0 万 OpenClaw 有

SKILL.md 全文

8.2 KB
模型实际读到的说明书原文,来自技能仓库

JSON to Triples Converter

Transform JSON documents into RDF triples and graph-ready structures.

This skill converts hierarchical JSON data into subject–predicate–object triples, enabling the data to be ingested into knowledge graphs, semantic web systems, and graph databases. The generated triples can be exported in multiple formats including RDF Turtle, N-Triples, JSON-LD, and Graph JSON.

Quick Start

Use When

  • Converting JSON datasets to RDF triples
  • Transforming JSON APIs into knowledge graphs
  • Creating semantic web representations from JSON
  • Building linked data from structured JSON
  • Converting JSON to JSON-LD for semantic markup
  • Preparing JSON for graph database ingestion
  • Extracting semantic relationships from JSON

Inputs

  • JSON documents or data structures
  • Entity type specifications
  • Property-to-predicate mappings
  • Namespace/URI definitions
  • Output format preferences
  • Custom mapping rules
  • Vocabulary specifications (schema.org, FOAF, etc.)

Outputs

  • RDF Turtle triples
  • N-Triples format
  • JSON-LD documents
  • Graph JSON (nodes/edges)
  • Property graph structures
  • Semantic metadata
  • URI mappings

Example

Input JSON:

{
  "person": {
    "name": "Alice",
    "age": 30,
    "email": "alice@example.com",
    "company": {
      "name": "Acme Corp",
      "industry": "Technology"
    }
  }
}

Generated RDF Triples (Turtle):

@prefix ex: <http://example.org/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix schema: <http://schema.org/> .

ex:person_alice a foaf:Person ;
  foaf:name "Alice" ;
  foaf:age 30 ;
  foaf:mbox "alice@example.com" ;
  schema:worksFor ex:company_acme .

ex:company_acme a schema:Organization ;
  foaf:name "Acme Corp" ;
  schema:industry "Technology" .

JSON-to-Triples Conversion Strategy

1. JSON Structure Analysis

Analyze the JSON document to understand:
- Root entities (objects)
- Entity properties (keys)
- Nested relationships (nested objects)
- Arrays and collections
- Data types and literals

2. Entity Identification

Detect entities that represent real-world objects:
- Person - Individual entities
- Organization - Companies, groups
- Product - Items, goods
- Location - Places, regions
- Event - Occurrences, activities
- Custom - Domain-specific entities

3. Subject Generation

Create unique URIs for each entity:

Person "Alice" → ex:person_alice
Company "Acme" → ex:company_acme
Location "New York" → ex:location_newyork

4. Predicate Mapping

Map JSON keys to RDF predicates:

"name" → foaf:name
"age" → foaf:age
"worksFor" → schema:worksFor
"email" → foaf:mbox

5. Object Generation

Generate appropriate object values:

Literal values: "Alice", 30, true
References: ex:company_acme (URI reference)
Typed literals: "2024-04-09"^^xsd:date

6. Relationship Extraction

Convert nested objects to relationships:

{
  "employee": {
    "name": "Alice",
    "manager": {
      "name": "Bob"
    }
  }
}

Becomes:

ex:employee_alice schema:manager ex:person_bob .

7. Deduplication

Ensure shared entities are represented once:
- Same entity referenced multiple times → Single URI
- Identical values → Deduplicated
- Entity linking across documents

Conversion Patterns

Simple Property Mapping

{"name": "Alice", "age": 30}
↓
ex:subject foaf:name "Alice" .
ex:subject foaf:age 30 .

Nested Object Pattern

{"person": {"name": "Alice", "company": {"name": "Acme"}}}
↓
ex:person_alice foaf:name "Alice" .
ex:person_alice ex:worksAt ex:company_acme .
ex:company_acme foaf:name "Acme" .

Array/Collection Pattern

{"tags": ["python", "graph", "rdf"]}
↓
ex:subject ex:tag "python" .
ex:subject ex:tag "graph" .
ex:subject ex:tag "rdf" .

Type Inference Pattern

{"age": 30, "created": "2024-04-09"}
↓
ex:subject foaf:age "30"^^xsd:integer .
ex:subject schema:dateCreated "2024-04-09"^^xsd:date .

Output Formats

RDF Turtle Format

@prefix ex: <http://example.org/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .

ex:subject foaf:name "Alice" .
ex:subject foaf:age 30 .
ex:subject foaf:workplaceHomepage ex:company .

N-Triples Format

<http://example.org/subject> <http://xmlns.com/foaf/0.1/name> "Alice" .
<http://example.org/subject> <http://xmlns.com/foaf/0.1/age> "30"^^<http://www.w3.org/2001/XMLSchema#integer> .

JSON-LD Format

{
  "@context": {
    "@vocab": "http://schema.org/",
    "foaf": "http://xmlns.com/foaf/0.1/"
  },
  "@type": "Person",
  "@id": "http://example.org/subject",
  "foaf:name": "Alice",
  "foaf:age": 30
}

Graph JSON Format

{
  "nodes": [
    {"id": "person_alice", "type": "Person", "properties": {"name": "Alice", "age": 30}},
    {"id": "company_acme", "type": "Organization", "properties": {"name": "Acme"}}
  ],
  "edges": [
    {"source": "person_alice", "target": "company_acme", "type": "worksFor"}
  ]
}

Namespace Management

Standard Vocabularies

foaf:     http://xmlns.com/foaf/0.1/
schema:   http://schema.org/
rdf:      http://www.w3.org/1999/02/22-rdf-syntax-ns#
rdfs:     http://www.w3.org/2000/01/rdf-schema#
owl:      http://www.w3.org/2002/07/owl#
xsd:      http://www.w3.org/2001/XMLSchema#
dbo:      http://dbpedia.org/ontology/

Custom Namespaces

namespaces:
  ex: http://example.org/
  myapp: http://myapp.example.org/
  custom: http://custom.vocabulary.org/

Data Type Inference

Type Detection

String values     → xsd:string
Numbers (integer) → xsd:integer
Numbers (float)   → xsd:decimal
Booleans          → xsd:boolean
ISO dates         → xsd:date / xsd:dateTime
URIs              → xsd:anyURI

Literal Language Tags

{"title": {"en": "Alice", "fr": "Aline"}}
↓
ex:subject rdfs:label "Alice"@en .
ex:subject rdfs:label "Aline"@fr .

Execution Steps

  1. Parse JSON – Load and validate JSON structure
  2. Infer Schema – Detect entities and relationships
  3. Generate URIs – Create unique identifiers for entities
  4. Build Triples – Generate subject-predicate-object statements
  5. Manage Namespaces – Apply namespace prefixes
  6. Deduplicate – Remove duplicate entities
  7. Validate Output – Check triple validity
  8. Format Output – Generate desired output format

Recommended Libraries

  • RDF Processing: rdflib, oxrdflib, pyld
  • JSON Processing: json, jsonld, python-jsonld
  • Validation: rdflib.plugins.sparql, owlready2
  • URI Management: URIRef, Namespace
  • Schema.org: schema, schema-org
  • Data Type Handling: xsd, dateutil

Best Practices

✓ Use consistent namespace URIs
✓ Generate meaningful entity identifiers
✓ Normalize entity names to prevent duplicates
✓ Use standard vocabularies (schema.org, FOAF)
✓ Include language tags for multilingual content
✓ Type literal values appropriately
✓ Document custom vocabulary mappings
✓ Validate triples before output
✓ Handle nested structures recursively
✓ Manage URIs consistently

Integration with Downstream Skills

The generated triples feed into:

  • Graph Constraint Generator – Define constraints on triple data
  • Graph Schema Validation – Validate against RDF schemas
  • Graph Query Optimization – Optimize SPARQL queries
  • Knowledge Graph Construction – Build KGs from triples
  • ETL Pipeline Generator – Orchestrate conversion workflows

References

See conversion-patterns.md for detailed JSON-to-triples conversion patterns and example-conversions.md for complete real-world examples.


Version: 1.0.0

常见问题

5 问
答案由本站依据条目字段整理
json-to-triples-converter怎么安装?

在支持 Skills 的客户端里执行:skillhub install user_15292d5a/yjkj-json-to-triples-converter。安装方式为未标注。装完刷新技能列表或重开客户端。

json-to-triples-converter支持哪些客户端?

资料没有标注宿主客户端,但只要客户端支持 Skills(Claude、Codex、Cursor 等),一般都能加载。

json-to-triples-converter权限高吗,安全吗?

权限级别为未标注权限。安装前先看它会读取或写入哪些内容。

json-to-triples-converter收费吗?

本站不代收费用,也没有标注具体价格。是否收费取决于技能本身和所用的模型或客户端,正式使用前按作者说明确认。

json-to-triples-converter用什么许可证?

许可证标注为 未说明(许可证不明确)。商用或二次分发前请到仓库确认条款原文。

热门专题

按场景挑技能
全部专题 →

技能内容以作者仓库为准;分类、权限级别与许可证状态的中文说明为中文整理,最近核验 未标注。