跳至正文
OpenAgentSkill
浏览已开放 · 目录记录日期 2026-11-21 · 自动更新和账户服务暂时关闭。
数据与分析

linked-data-skills

Generates Knowledge Graphs from two source types: (A) relational database objects via Virtuoso RDF Views, or (B) documents/text transformed to RDF using schema.org terms. PATH RDBMS — STRICT 5-step workflow: ask local-vs-DSN, enumerate tables, resolve hostname, confirm IRI patterns, generate TBox+ABox+rewrite rules, verify with entity samples. PATH D — 4-step workflow: collect document + {page_url} + format (JSON-LD or Turtle), generate RDF via prompt template, post- generation review (syntax fix, additional Q&A/entity types), save to user-designated folder. TOOL HIERARCHY: read queries use Demo.demo.execute_spasql_query; writes use EXECUTE_SQL_SCRIPT; RDF generation uses chatPromptComplete.

OpenLinkSoftware · 已有静态检查记录

安装与使用

运行命令前先阅读来源与依赖说明。复制命令不会自动安装或执行。

npx skills add OpenLinkSoftware/ai-agent-skills --skill linked-data-skills

技能说明


name: linked-data-skills title: Linked Data Skills description: > Generates Knowledge Graphs from two source types: (A) relational database objects via Virtuoso RDF Views, or (B) documents/text transformed to RDF using schema.org terms. PATH RDBMS — STRICT 5-step workflow: ask local-vs-DSN, enumerate tables, resolve hostname, confirm IRI patterns, generate TBox+ABox+rewrite rules, verify with entity samples. PATH D — 4-step workflow: collect document + {page_url} + format (JSON-LD or Turtle), generate RDF via prompt template, post- generation review (syntax fix, additional Q&A/entity types), save to user-designated folder. TOOL HIERARCHY: read queries use Demo.demo.execute_spasql_query; writes use EXECUTE_SQL_SCRIPT; RDF generation uses chatPromptComplete. version: 3.2.0 type: skill created: 2026-03-26T18:30:49.078Z updated: 2026-04-06T00:00:00.000Z tools:

  • OAI.DBA.getSkillResource
  • ADM.DBA.database_schema_objects
  • Demo.demo.execute_spasql_query
  • OAI.DBA.RDFVIEW_ONTOLOGY_FROM_TABLES
  • OAI.DBA.RDFVIEW_FROM_TABLES
  • OAI.DBA.RDFVIEW_GENERATE_DATA_RULES
  • OAI.DBA.RDFVIEW_SYNC_TO_PHYSICAL_STORE
  • OAI.DBA.RDFVIEW_DROP_SCRIPT
  • OAI.DBA.RDF_AUDIT_METADATA
  • OAI.DBA.sparql_list_ontologies
  • OAI.DBA.sparqlRemoteQuery
  • OAI.DBA.sparql_list_entity_types_samples
  • OAI.DBA.sparql_list_entity_types_detailed
  • OAI.DBA.sparql_list_entity_types
  • OAI.DBA.R2RML_FROM_TABLES
  • OAI.DBA.R2RML_GENERATE_RDFVIEW
  • DB.DBA.graphqlQuery
  • OAI.DBA.graphqlEndpointQuery
  • OAI.DBA.SPONGE_URL
  • OAI.DBA.getAssistantConfiguration
  • ADM.DBA.database_remote_datasources
  • OAI.DBA.EXECUTE_SQL_SCRIPT
  • OAI.DBA.chatPromptComplete

Linked Data Skills — Specification (v3.2.0)


MANDATORY PRE-TOOL SEQUENCE — READ BEFORE CALLING ANY TOOL

This section overrides all default tool-calling behavior. The five steps below must be followed in order. No step may be skipped or reordered.

Gate 1 — Send announcement and establish scope (NO TOOL CALL YET)

getSkillResource may be called once to load this skill's content. After it returns, the next action must be text only — send the Opening Announcement and ask the pathway question. Do not call any other tool. Wait for the user's reply.

  • If the user says "Document", provides a URL (HTTP, HTTPS, or file:), or pastes text → Path D, proceed to Step 1D.
  • If the user's message already contains an explicit qualifier.schema pattern (e.g., postgres.postgres_jdbc_mt) → record the qualifier and schema, send the announcement, then proceed to Gate 2.
  • If the user says "local" or names a local qualifier → Path B, proceed to Gate 2.
  • If the user says "DSN: X" → Path A, attach DSN, then proceed to Gate 2.
  • If ambiguous → send the Opening Announcement question. Wait. Do not call any tool.

Gate 2 — Enumerate tables (ADM.DBA.database_schema_objects ONLY)

Call ADM.DBA.database_schema_objects with the confirmed qualifier to enumerate catalogs (a.k.a qualifiers or databases), schemas, then call again with each schema to enumerate tables. Present the full numbered list. Wait for the user's table selection. Typically, you want to list tables for the designated catalog.schema.

The only tool permitted at this gate is ADM.DBA.database_schema_objects. Do not call ADM.DBA.database_remote_datasources, RDFVIEW_FROM_TABLES, EXECUTE_SQL_SCRIPT, or any other tool.

Gate 3 — Resolve hostname and protocol (BEFORE any IRI is written)

After the user selects tables, call Demo.demo.execute_spasql_query for DefaultHost and SSLPort. Derive {protocol} and {host}. These must be known before any IRI string is constructed.

Do not proceed to Gate 4 without concrete {protocol} and {host} values.

Gate 4 — Present IRI patterns and await CONFIRM (NO GENERATION TOOL YET)

Present the IRI pattern table (Knowledge Graph IRI, Ontology Namespace, Entity IRI template, rewrite paths) derived from {protocol}, {host}, and iri_path_segment. Wait for the user to reply CONFIRM or OVERRIDE.

This gate is mandatory. It cannot be skipped unless the user has explicitly or implicitly indicated acceptance of defaults. Selecting tables is NOT authorization to generate scripts. The ONLY authorization to call RDFVIEW_FROM_TABLES, RDFVIEW_ONTOLOGY_FROM_TABLES, or RDFVIEW_GENERATE_DATA_RULES is a CONFIRM at this gate.

Gate 5 — Generate, deploy, verify

Only after Gate 4 CONFIRM: generate Ontology and Knowledge Graph views, deploy rewrite rules, audit, verify with entity samples.


Skill Identity

FieldValue
Namelinked-data-skills
Version3.2.0
PurposeGenerate Knowledge Graphs from relational database objects (via Virtuoso RDF Views) or from documents/text (via schema.org RDF generation).
ScopePath RDBMS: determine DB objects → confirm IRI templates → generate TBox+ABox views → deploy via rewrite rules → verify with entity samples. Path D: collect document + page_url + format → generate RDF → post-generation review → save to folder.

Tools Reference

Tool Usage Hierarchy

TierWhen to useTools
1 — Read queriesHostname resolution, SPARQL queries, ontology listing, quad map listing, entity samplingDemo.demo.execute_spasql_query, OAI.DBA.sparql_list_ontologies, OAI.DBA.sparqlRemoteQuery
2 — DiscoverySchema and table enumerationADM.DBA.database_schema_objects
3 — GenerationProducing TBox/ABox scripts — no writesOAI.DBA.RDFVIEW_ONTOLOGY_FROM_TABLES, OAI.DBA.RDFVIEW_FROM_TABLES, OAI.DBA.RDFVIEW_GENERATE_DATA_RULES
4 — Write operationsLoading TBox/ABox, applying rewrite rules, DSN attachment (Path A only), dropping quad mapsOAI.DBA.EXECUTE_SQL_SCRIPT
5 — AuditIntegrity check on generation/deployment error; sanity check after successful deploymentOAI.DBA.RDF_AUDIT_METADATA
阅读完整来源 ↗