[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"similar-nicolas-hbt--pygraft":3,"tool-nicolas-hbt--pygraft":61},[4,18,26,36,44,53],{"id":5,"name":6,"github_repo":7,"description_zh":8,"stars":9,"difficulty_score":10,"last_commit_at":11,"category_tags":12,"status":17},4358,"openclaw","openclaw\u002Fopenclaw","OpenClaw 是一款专为个人打造的本地化 AI 助手，旨在让你在自己的设备上拥有完全可控的智能伙伴。它打破了传统 AI 助手局限于特定网页或应用的束缚，能够直接接入你日常使用的各类通讯渠道，包括微信、WhatsApp、Telegram、Discord、iMessage 等数十种平台。无论你在哪个聊天软件中发送消息，OpenClaw 都能即时响应，甚至支持在 macOS、iOS 和 Android 设备上进行语音交互，并提供实时的画布渲染功能供你操控。\n\n这款工具主要解决了用户对数据隐私、响应速度以及“始终在线”体验的需求。通过将 AI 部署在本地，用户无需依赖云端服务即可享受快速、私密的智能辅助，真正实现了“你的数据，你做主”。其独特的技术亮点在于强大的网关架构，将控制平面与核心助手分离，确保跨平台通信的流畅性与扩展性。\n\nOpenClaw 非常适合希望构建个性化工作流的技术爱好者、开发者，以及注重隐私保护且不愿被单一生态绑定的普通用户。只要具备基础的终端操作能力（支持 macOS、Linux 及 Windows WSL2），即可通过简单的命令行引导完成部署。如果你渴望拥有一个懂你",349277,3,"2026-04-06T06:32:30",[13,14,15,16],"Agent","开发框架","图像","数据工具","ready",{"id":19,"name":20,"github_repo":21,"description_zh":22,"stars":23,"difficulty_score":10,"last_commit_at":24,"category_tags":25,"status":17},3808,"stable-diffusion-webui","AUTOMATIC1111\u002Fstable-diffusion-webui","stable-diffusion-webui 是一个基于 Gradio 构建的网页版操作界面，旨在让用户能够轻松地在本地运行和使用强大的 Stable Diffusion 图像生成模型。它解决了原始模型依赖命令行、操作门槛高且功能分散的痛点，将复杂的 AI 绘图流程整合进一个直观易用的图形化平台。\n\n无论是希望快速上手的普通创作者、需要精细控制画面细节的设计师，还是想要深入探索模型潜力的开发者与研究人员，都能从中获益。其核心亮点在于极高的功能丰富度：不仅支持文生图、图生图、局部重绘（Inpainting）和外绘（Outpainting）等基础模式，还独创了注意力机制调整、提示词矩阵、负向提示词以及“高清修复”等高级功能。此外，它内置了 GFPGAN 和 CodeFormer 等人脸修复工具，支持多种神经网络放大算法，并允许用户通过插件系统无限扩展能力。即使是显存有限的设备，stable-diffusion-webui 也提供了相应的优化选项，让高质量的 AI 艺术创作变得触手可及。",162132,"2026-04-05T11:01:52",[14,15,13],{"id":27,"name":28,"github_repo":29,"description_zh":30,"stars":31,"difficulty_score":32,"last_commit_at":33,"category_tags":34,"status":17},1381,"everything-claude-code","affaan-m\u002Feverything-claude-code","everything-claude-code 是一套专为 AI 编程助手（如 Claude Code、Codex、Cursor 等）打造的高性能优化系统。它不仅仅是一组配置文件，而是一个经过长期实战打磨的完整框架，旨在解决 AI 代理在实际开发中面临的效率低下、记忆丢失、安全隐患及缺乏持续学习能力等核心痛点。\n\n通过引入技能模块化、直觉增强、记忆持久化机制以及内置的安全扫描功能，everything-claude-code 能显著提升 AI 在复杂任务中的表现，帮助开发者构建更稳定、更智能的生产级 AI 代理。其独特的“研究优先”开发理念和针对 Token 消耗的优化策略，使得模型响应更快、成本更低，同时有效防御潜在的攻击向量。\n\n这套工具特别适合软件开发者、AI 研究人员以及希望深度定制 AI 工作流的技术团队使用。无论您是在构建大型代码库，还是需要 AI 协助进行安全审计与自动化测试，everything-claude-code 都能提供强大的底层支持。作为一个曾荣获 Anthropic 黑客大奖的开源项目，它融合了多语言支持与丰富的实战钩子（hooks），让 AI 真正成长为懂上",159636,2,"2026-04-17T23:33:34",[14,13,35],"语言模型",{"id":37,"name":38,"github_repo":39,"description_zh":40,"stars":41,"difficulty_score":32,"last_commit_at":42,"category_tags":43,"status":17},2271,"ComfyUI","Comfy-Org\u002FComfyUI","ComfyUI 是一款功能强大且高度模块化的视觉 AI 引擎，专为设计和执行复杂的 Stable Diffusion 图像生成流程而打造。它摒弃了传统的代码编写模式，采用直观的节点式流程图界面，让用户通过连接不同的功能模块即可构建个性化的生成管线。\n\n这一设计巧妙解决了高级 AI 绘图工作流配置复杂、灵活性不足的痛点。用户无需具备编程背景，也能自由组合模型、调整参数并实时预览效果，轻松实现从基础文生图到多步骤高清修复等各类复杂任务。ComfyUI 拥有极佳的兼容性，不仅支持 Windows、macOS 和 Linux 全平台，还广泛适配 NVIDIA、AMD、Intel 及苹果 Silicon 等多种硬件架构，并率先支持 SDXL、Flux、SD3 等前沿模型。\n\n无论是希望深入探索算法潜力的研究人员和开发者，还是追求极致创作自由度的设计师与资深 AI 绘画爱好者，ComfyUI 都能提供强大的支持。其独特的模块化架构允许社区不断扩展新功能，使其成为当前最灵活、生态最丰富的开源扩散模型工具之一，帮助用户将创意高效转化为现实。",108322,"2026-04-10T11:39:34",[14,15,13],{"id":45,"name":46,"github_repo":47,"description_zh":48,"stars":49,"difficulty_score":32,"last_commit_at":50,"category_tags":51,"status":17},6121,"gemini-cli","google-gemini\u002Fgemini-cli","gemini-cli 是一款由谷歌推出的开源 AI 命令行工具，它将强大的 Gemini 大模型能力直接集成到用户的终端环境中。对于习惯在命令行工作的开发者而言，它提供了一条从输入提示词到获取模型响应的最短路径，无需切换窗口即可享受智能辅助。\n\n这款工具主要解决了开发过程中频繁上下文切换的痛点，让用户能在熟悉的终端界面内直接完成代码理解、生成、调试以及自动化运维任务。无论是查询大型代码库、根据草图生成应用，还是执行复杂的 Git 操作，gemini-cli 都能通过自然语言指令高效处理。\n\n它特别适合广大软件工程师、DevOps 人员及技术研究人员使用。其核心亮点包括支持高达 100 万 token 的超长上下文窗口，具备出色的逻辑推理能力；内置 Google 搜索、文件操作及 Shell 命令执行等实用工具；更独特的是，它支持 MCP（模型上下文协议），允许用户灵活扩展自定义集成，连接如图像生成等外部能力。此外，个人谷歌账号即可享受免费的额度支持，且项目基于 Apache 2.0 协议完全开源，是提升终端工作效率的理想助手。",100752,"2026-04-10T01:20:03",[52,13,15,14],"插件",{"id":54,"name":55,"github_repo":56,"description_zh":57,"stars":58,"difficulty_score":32,"last_commit_at":59,"category_tags":60,"status":17},4721,"markitdown","microsoft\u002Fmarkitdown","MarkItDown 是一款由微软 AutoGen 团队打造的轻量级 Python 工具，专为将各类文件高效转换为 Markdown 格式而设计。它支持 PDF、Word、Excel、PPT、图片（含 OCR）、音频（含语音转录）、HTML 乃至 YouTube 链接等多种格式的解析，能够精准提取文档中的标题、列表、表格和链接等关键结构信息。\n\n在人工智能应用日益普及的今天，大语言模型（LLM）虽擅长处理文本，却难以直接读取复杂的二进制办公文档。MarkItDown 恰好解决了这一痛点，它将非结构化或半结构化的文件转化为模型“原生理解”且 Token 效率极高的 Markdown 格式，成为连接本地文件与 AI 分析 pipeline 的理想桥梁。此外，它还提供了 MCP（模型上下文协议）服务器，可无缝集成到 Claude Desktop 等 LLM 应用中。\n\n这款工具特别适合开发者、数据科学家及 AI 研究人员使用，尤其是那些需要构建文档检索增强生成（RAG）系统、进行批量文本分析或希望让 AI 助手直接“阅读”本地文件的用户。虽然生成的内容也具备一定可读性，但其核心优势在于为机器",93400,"2026-04-06T19:52:38",[52,14],{"id":62,"github_repo":63,"name":64,"description_en":65,"description_zh":66,"ai_summary_zh":66,"readme_en":67,"readme_zh":68,"quickstart_zh":69,"use_case_zh":70,"hero_image_url":71,"owner_login":72,"owner_name":73,"owner_avatar_url":74,"owner_bio":75,"owner_company":76,"owner_location":77,"owner_email":78,"owner_twitter":79,"owner_website":80,"owner_url":81,"languages":82,"stars":87,"forks":88,"last_commit_at":89,"license":90,"difficulty_score":32,"env_os":91,"env_gpu":92,"env_ram":91,"env_deps":93,"category_tags":98,"github_topics":100,"view_count":32,"oss_zip_url":121,"oss_zip_packed_at":121,"status":17,"created_at":122,"updated_at":123,"faqs":124,"releases":130},8812,"nicolas-hbt\u002Fpygraft","pygraft","Configurable Generation of Synthetic Schemas and Knowledge Graphs at Your Fingertips","pygraft 是一款开源 Python 库，旨在帮助用户轻松生成可配置且逼真的合成模式（Schemas）与知识图谱。在数据敏感或真实数据难以获取的研究场景中，它解决了缺乏高质量测试数据的痛点，让用户仅需设定少量参数，即可按需动态构建领域无关的结构化数据资源。\n\n这款工具特别适合人工智能研究人员、语义网开发者以及需要验证算法性能的技术从业者。无论是需要单独生成模式、知识图谱，还是两者同时生成，pygraft 都能灵活应对。其核心亮点在于支持丰富的 RDFS 和 OWL 构造器，能够描述细粒度的资源关系；同时，它内置了 HermiT 描述逻辑推理机，自动确保生成内容的逻辑一致性，避免了人工校验的繁琐。作为首个能在单一流程中同时合成模式与知识图谱的生成器，pygraft 为学术探索和工程测试提供了高效、可靠的数据制备方案。","\u003Cp align=\"center\">\n  \u003Cimg src=\"docs\u002Fsource\u002Flogo.svg\" height=\"300\">\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Ca href='https:\u002F\u002Fopensource.org\u002Flicenses\u002FMIT'>\n    \u003Cimg src='https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FLicense-MIT-blue.svg' alt='License'\u002F>\n  \u003C\u002Fa>\n\n  \u003Ca href=\"https:\u002F\u002Fpypi.org\u002Fproject\u002Fpygraft\u002F\" alt=\"PyPI\">\n    \u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fpypi\u002Fv\u002Fpygraft.svg\"\u002F>\n  \u003C\u002Fa>\n\n  \u003Ca href=\"https:\u002F\u002Fpypi.org\u002Fproject\u002Fpygraft\" alt=\"pypi downloads\">\n    \u003Cimg alt=\"pypi downloads\" src=\"https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Fnicolas-hbt_pygraft_readme_f0a6079ebe62.png\">\n  \u003C\u002Fa>\n\n  \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpsf\u002Fblack\">\n    \u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fcode%20style-black-000000.svg\" alt=\"Code style: black\">\n  \u003C\u002Fa>\n\u003C\u002Fp>\n\n\u003Ca href=\"https:\u002F\u002Ftrendshift.io\u002Frepositories\u002F1454\" target=\"_blank\">\u003Cimg src=\"https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Fnicolas-hbt_pygraft_readme_0b0cf02be0f5.png\" alt=\"nicolas-hbt%2Fpygraft | Trendshift\" style=\"width: 250px; height: 55px;\" width=\"250\" height=\"55\"\u002F>\u003C\u002Fa>\n\n# [PyGraft: Configurable Generation of Synthetic Schemas and Knowledge Graphs at Your Fingertips](https:\u002F\u002Farxiv.org\u002Fpdf\u002F2309.03685.pdf)\n\nThis is the open-source implementation of PyGraft, initially presented in [this paper](https:\u002F\u002Farxiv.org\u002Fpdf\u002F2309.03685.pdf).\n\nPyGraft is an open-source Python library for generating synthetic yet realistic schemas and (KGs) based on user-specified parameters. The generated resources are domain-agnostic, i.e. they are not tied to a specific application field.\n\nBeing able to synthesize schemas and KGs is an important milestone for conducting research in domains where data is sensitive or not readily available. PyGraft allows researchers and practitioners to generate schemas and KGs on the fly, provided minimal knowledge about the desired specifications. \n\nPyGraft has the following features:\n- possibility to generate a schema, a KG, or both\n- highly-tunable process based on a broad array of user-specified parameters\n- schemas and KGs are built with an extended set of RDFS and OWL constructs\n- logical consistency is ensured by the use of a DL reasoner (HermiT)\n\n## Installation\n\nThe latest stable version of PyGraft can be downloaded and installed from [PyPI](https:\u002F\u002Fpypi.org\u002Fproject\u002Fpygraft) with:\n\n```bash\npip install pygraft\n```\n\nThe latest version of PyGraft can be installed directly from [GitHub](https:\u002F\u002Fgithub.com\u002Fnicolas-hbt\u002Fpygraft) source with:\n\n```bash\npip install git+https:\u002F\u002Fgithub.com\u002Fnicolas-hbt\u002Fpygraft.git\n```\n\n## Upcoming Features\n\nAdditional features will be provided in the next versions of PyGraft. To name but a few:\n\n**High Priority**\n\n- [ ] Allow support for any input schema (and not only the schemas generated by PyGraft).\n- [ ] Allow explanations for inconsistencies to be parsed from HermiT API. This would make it possible to remove a subset of triples from inconsistent KGs to make them consistent, without needing the user to run the KG generation pipeline again. This is especially true for very large graphs, or if the user comes with an already existing schema which is not perfectly consistent.\n\n**Medium Priority**\n\n- [ ] Fix the conflict between the following properties ``rdfs:subPropertyOf``, ``owl:FunctionalProperty``, and ``owl:InverseFunctionalProperty``, as a non-zero value for the three of them at the same time can lead to inconsistent KGs.\n\n**Low Priority**\n\n- [ ] Facilitate the generation of larger KGs (this would imply removing any dependency to [rdflib](https:\u002F\u002Fgithub.com\u002FRDFLib\u002Frdflib\u002F)).\n- [ ] Add support for literals.\n\n## PyGraft Overview\n\nThe contributions of PyGraft are as follows:\n\n- To the best of our knowledge, PyGraft is the first generator able to synthesize both schemas and KGs in a single pipeline.\n\n- The generated schemas and KGs are described with an extended set of RDFS and OWL constructs, allowing for both fine-grained resource descriptions and strict compliance with common Semantic Web standards.\n\n- A broad range of parameters can be specified by the user. These allow for creating an infinite number of graphs with different characteristics. More details on parameters can be found in the [Parameters section of the official documentation](https:\u002F\u002Fpygraft.readthedocs.io\u002Fen\u002Flatest\u002Freferences\u002Fparameters.html).\n\nFrom a high-level perspective, the entire PyGraft generation pipeline is depicted in Figure 1. In particular, Class and Relation Generators are initialized with user-specified parameters and used to build the schema incrementally. The logical consistency of the schema is subsequently checked using the HermiT reasoner from [owlready2](https:\u002F\u002Fgithub.com\u002Fpwin\u002Fowlready2\u002F). If you are also interested in generating a KG based on this schema, the KG Generator is initialized with KG-related parameters and fused with the previously generated schema to sequentially build the KG. Ultimately, the logical consistency of the resulting KG is (again) assessed using HermiT.\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\"https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Fnicolas-hbt_pygraft_readme_2d361fe7418f.png\" height=\"300\">\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  Figure 1: PyGraft Overview\n\u003C\u002Fp>\n\n\n## Usage -- PyGraft as a package\n\nOnce installed, PyGraft can be loaded with:\n\n```python\nimport pygraft\n```\n\nImportantly, you can access all the functions with:\n\n```python\npygraft.__all__\n```\n\n### Generating a Schema\n\nLet us assume we are only interested in generating a schema. We first need to retrieve the template configuration file (e.g. a ``.yaml`` configuration file), which is as simple as calling ``create_yaml_template()``:\n\n```python\npygraft.create_yaml_template()\n```\n\nNow, the template has been generated under the current working directory, and is named ``template.yml`` by default.\n\nThis file contains all the tunable parameters. For more details on their meanings, please check the [Parameters section](https:\u002F\u002Fpygraft.readthedocs.io\u002Fen\u002Flatest\u002Freferences\u002Fparameters.html).\n\nFor the sake of simplicity, we do not plan to modify this template and stick with the default parameter values.\n\nGenerating an ontology is made possible via the ``generate_schema(path)`` function, which only requires the relative path to the configuration file.\n\n> [!IMPORTANT] \n> For the following steps, i.e. generating a schema and a KG, you need Java to be installed and the $JAVA_HOME environment variable to be properly assigned. This is because the HermiT reasoner currently runs using Java.\n\nIn our case, the configuration file is named ``template.yml`` and is located in the current working directory, thereby:\n\n```python\npygraft.generate_schema(\"template.yml\")\n```\n\nThe generated schema can be retrieved in ``output\u002Ftemplate\u002Fschema.rdf``. Additional files are created during the process: ``output\u002Ftemplate\u002Fclass_info.json`` and ``output\u002Ftemplate\u002Frelation_info.json``. These files give important information about the classes and relations of the generated schema, respectively.\n\n### Generating a KG\n\nLet us now explore how to use PyGraft to generate a KG. In this section, we assume we already have a schema, that will serve as a blueprint for generating our KG. We can use the same configuration file as before – as it also contained parameters related to the KG generation (although not used before, since we only asked for a schema) – to generate a KG:\n\n```python\npygraft.generate_kg(\"template.yml\")\n```\n\nThe generated KG can be retrieved in ``output\u002Ftemplate\u002Ffull_graph.rdf``. It combines information inherited from ``output\u002Ftemplate\u002Fschema.rdf`` (i.e. ontological information) with information related to individuals.\n\n### Full Pipeline Execution\n\nIn most cases, one wants to generate both a schema and a KG in a single process. PyGraft allows this with the ``generate(path)`` function, which operates just as the aforedescribed two functions ``generate_schema(path)`` and ``generate_kg(path)``:\n\n```python\npygraft.generate(\"template.yml\")\n```\n\n## Usage -- PyGraft from the CLI\n\nAssuming you have cloned the PyGraft repository to your computer:\n\n1. Install dependencies:\n  ```shell\n  pip install pygraft\n  ```\n2. Call the PyGraft entry point, from the project's root folder:\n  ```shell\n  # Displaying help\n  python -m pygraft.main --help\n  ```\n  ```shell\n  # Generating a schema from a local template file\n  python -m pygraft.main -g generate_schema -conf template.yml\n\n  # ...  then browse the resulting schema in the .\u002Foutput\u002Ftemplate folder.\n  ```\n\n## About\n\nInterested in contributing to PyGraft? Please consider reaching out: nicotab540@gmail.com\n\nIf you like PyGraft, consider downloading PyGraft and starring our GitHub repository to make it known and promote its development!\n\nIf you use or mention PyGraft in a publication, cite our work as:\n\n    @misc{hubert2023pygraft,\n      title={PyGraft: Configurable Generation of Schemas and Knowledge Graphs at Your Fingertips}, \n      author={Nicolas Hubert and Pierre Monnin and Mathieu d'Aquin and Armelle Brun and Davy Monticolo},\n      year={2023},\n      eprint={2309.03685},\n      archivePrefix={arXiv},\n      primaryClass={cs.AI}\n    }\n","\u003Cp align=\"center\">\n  \u003Cimg src=\"docs\u002Fsource\u002Flogo.svg\" height=\"300\">\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Ca href='https:\u002F\u002Fopensource.org\u002Flicenses\u002FMIT'>\n    \u003Cimg src='https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FLicense-MIT-blue.svg' alt='License'\u002F>\n  \u003C\u002Fa>\n\n  \u003Ca href=\"https:\u002F\u002Fpypi.org\u002Fproject\u002Fpygraft\u002F\" alt=\"PyPI\">\n    \u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fpypi\u002Fv\u002Fpygraft.svg\"\u002F>\n  \u003C\u002Fa>\n\n  \u003Ca href=\"https:\u002F\u002Fpypi.org\u002Fproject\u002Fpygraft\" alt=\"pypi downloads\">\n    \u003Cimg alt=\"pypi downloads\" src=\"https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Fnicolas-hbt_pygraft_readme_f0a6079ebe62.png\">\n  \u003C\u002Fa>\n\n  \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpsf\u002Fblack\">\n    \u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fcode%20style-black-000000.svg\" alt=\"Code style: black\">\n  \u003C\u002Fa>\n\u003C\u002Fp>\n\n\u003Ca href=\"https:\u002F\u002Ftrendshift.io\u002Frepositories\u002F1454\" target=\"_blank\">\u003Cimg src=\"https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Fnicolas-hbt_pygraft_readme_0b0cf02be0f5.png\" alt=\"nicolas-hbt%2Fpygraft | Trendshift\" style=\"width: 250px; height: 55px;\" width=\"250\" height=\"55\"\u002F>\u003C\u002Fa>\n\n# [PyGraft：触手可及的可配置合成模式与知识图谱生成工具](https:\u002F\u002Farxiv.org\u002Fpdf\u002F2309.03685.pdf)\n\n这是 PyGraft 的开源实现，最初发表于[这篇论文](https:\u002F\u002Farxiv.org\u002Fpdf\u002F2309.03685.pdf)中。\n\nPyGraft 是一个开源的 Python 库，用于根据用户指定的参数生成既具有合成性又高度逼真的模式和知识图谱（KG）。生成的资源具有领域无关性，即不局限于特定的应用领域。\n\n能够合成模式和知识图谱，对于在数据敏感或不易获取的研究领域开展研究而言，是一个重要的里程碑。PyGraft 使研究人员和从业者能够在对所需规范仅有少量了解的情况下，即时生成模式和知识图谱。\n\nPyGraft 具有以下特点：\n- 可以生成模式、知识图谱，或同时生成两者\n- 基于广泛的用户指定参数，流程高度可调\n- 模式和知识图谱采用扩展的 RDFS 和 OWL 构造构建\n- 使用描述逻辑推理机（HermiT）确保逻辑一致性\n\n## 安装\n\nPyGraft 的最新稳定版本可以从 [PyPI](https:\u002F\u002Fpypi.org\u002Fproject\u002Fpygraft) 下载并安装：\n\n```bash\npip install pygraft\n```\n\n也可以直接从 [GitHub](https:\u002F\u002Fgithub.com\u002Fnicolas-hbt\u002Fpygraft) 源代码安装最新版本：\n\n```bash\npip install git+https:\u002F\u002Fgithub.com\u002Fnicolas-hbt\u002Fpygraft.git\n```\n\n## 即将推出的功能\n\nPyGraft 的后续版本将提供更多功能，其中包括：\n\n**高优先级**\n\n- [ ] 支持任意输入模式（而不仅限于由 PyGraft 生成的模式）。\n- [ ] 从 HermiT API 中解析不一致性的解释信息。这将允许从不一致的知识图谱中移除部分三元组使其一致，而无需用户重新运行知识图谱生成流程。这对于非常大的图谱，或者当用户已经拥有一个并不完全一致的现有模式时尤其重要。\n\n**中优先级**\n\n- [ ] 解决 ``rdfs:subPropertyOf``、``owl:FunctionalProperty`` 和 ``owl:InverseFunctionalProperty`` 这三个属性之间的冲突问题，因为同时为这三个属性赋予非零值可能导致知识图谱不一致。\n\n**低优先级**\n\n- [ ] 更容易生成更大的知识图谱（这将意味着去除对 [rdflib](https:\u002F\u002Fgithub.com\u002FRDFLib\u002Frdflib\u002F) 的依赖）。\n- [ ] 添加对文字的支持。\n\n## PyGraft 概述\n\nPyGraft 的主要贡献如下：\n\n- 据我们所知，PyGraft 是首个能够在单一流程中同时合成模式和知识图谱的工具。\n- 生成的模式和知识图谱使用扩展的 RDFS 和 OWL 构造进行描述，既能实现细粒度的资源描述，又能严格遵守常见的语义网标准。\n- 用户可以指定广泛的参数，从而创建出具有不同特征的无限多张图谱。有关参数的更多详细信息，请参阅官方文档中的[参数章节](https:\u002F\u002Fpygraft.readthedocs.io\u002Fen\u002Flatest\u002Freferences\u002Fparameters.html)。\n\n从高层次来看，整个 PyGraft 生成流程如图 1 所示。具体而言，类生成器和关系生成器会根据用户指定的参数进行初始化，并逐步构建模式。随后，使用来自 [owlready2](https:\u002F\u002Fgithub.com\u002Fpwin\u002Fowlready2\u002F) 的 HermiT 推理机检查模式的逻辑一致性。如果用户还希望基于该模式生成知识图谱，则会使用与知识图谱相关的参数初始化知识图谱生成器，并将其与先前生成的模式融合，依次构建知识图谱。最终，再次使用 HermiT 评估生成的知识图谱的逻辑一致性。\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\"https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Fnicolas-hbt_pygraft_readme_2d361fe7418f.png\" height=\"300\">\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  图 1：PyGraft 概览\n\u003C\u002Fp>\n\n\n## 使用方法——作为软件包的 PyGraft\n\n安装完成后，可以通过以下方式加载 PyGraft：\n\n```python\nimport pygraft\n```\n\n值得注意的是，您可以访问所有函数：\n\n```python\npygraft.__all__\n```\n\n### 生成模式\n\n假设我们只对生成模式感兴趣。首先需要获取模板配置文件（例如 `.yaml` 配置文件），只需调用 `create_yaml_template()` 即可：\n\n```python\npygraft.create_yaml_template()\n```\n\n现在，模板已在当前工作目录下生成，默认命名为 `template.yml`。\n\n该文件包含了所有可调参数。有关这些参数的具体含义，请参阅[参数章节](https:\u002F\u002Fpygraft.readthedocs.io\u002Fen\u002Flatest\u002Freferences\u002Fparameters.html)。\n\n为了简单起见，我们暂不修改此模板，直接使用默认参数值。\n\n通过 `generate_schema(path)` 函数即可生成本体，该函数仅需提供配置文件的相对路径。\n\n> [!重要提示] \n> 在接下来的步骤中，即生成模式和知识图谱时，需要安装 Java 并正确设置 `$JAVA_HOME` 环境变量。这是因为 HermiT 推理机目前是基于 Java 运行的。\n\n在我们的例子中，配置文件名为 `template.yml`，位于当前工作目录下，因此：\n\n```python\npygraft.generate_schema(\"template.yml\")\n```\n\n生成的模式可以在 `output\u002Ftemplate\u002Fschema.rdf` 中找到。在此过程中还会生成其他文件：`output\u002Ftemplate\u002Fclass_info.json` 和 `output\u002Ftemplate\u002Frelation_info.json`。这些文件分别提供了关于生成模式中类和关系的重要信息。\n\n### 生成知识图谱\n\n现在让我们探讨如何使用 PyGraft 生成知识图谱。在这一节中，我们假设已经有一个模式，它将作为生成知识图谱的蓝图。我们可以使用之前的配置文件——因为它也包含了与知识图谱生成相关的参数（尽管之前并未使用，因为我们当时只请求生成模式）——来生成知识图谱：\n\n```python\npygraft.generate_kg(\"template.yml\")\n```\n\n生成的知识图谱可以在 ``output\u002Ftemplate\u002Ffull_graph.rdf`` 中找到。它结合了从 ``output\u002Ftemplate\u002Fschema.rdf`` 继承的信息（即本体信息）以及与个体相关的信息。\n\n### 完整流水线执行\n\n在大多数情况下，人们希望在一个流程中同时生成模式和知识图谱。PyGraft 提供了 ``generate(path)`` 函数来实现这一点，其工作方式与前面介绍的两个函数 ``generate_schema(path)`` 和 ``generate_kg(path)`` 相同：\n\n```python\npygraft.generate(\"template.yml\")\n```\n\n## 使用方法——通过命令行使用 PyGraft\n\n假设您已将 PyGraft 仓库克隆到本地计算机：\n\n1. 安装依赖：\n  ```shell\n  pip install pygraft\n  ```\n2. 从项目的根目录调用 PyGraft 入口点：\n  ```shell\n  # 显示帮助信息\n  python -m pygraft.main --help\n  ```\n  ```shell\n  # 从本地模板文件生成模式\n  python -m pygraft.main -g generate_schema -conf template.yml\n\n  # ... 然后在 .\u002Foutput\u002Ftemplate 文件夹中查看生成的模式。\n  ```\n\n## 关于\n\n您对参与 PyGraft 的开发感兴趣吗？请考虑联系：nicotab540@gmail.com\n\n如果您喜欢 PyGraft，请下载 PyGraft 并为我们的 GitHub 仓库点赞，以让更多人了解并促进其发展！\n\n如果您在出版物中使用或提及 PyGraft，请引用我们的工作如下：\n\n    @misc{hubert2023pygraft,\n      title={PyGraft：触手可及的可配置模式与知识图谱生成工具}, \n      author={Nicolas Hubert、Pierre Monnin、Mathieu d'Aquin、Armelle Brun 和 Davy Monticolo},\n      year={2023},\n      eprint={2309.03685},\n      archivePrefix={arXiv},\n      primaryClass={cs.AI}\n    }","# PyGraft 快速上手指南\n\nPyGraft 是一个开源 Python 库，用于根据用户指定的参数生成合成但逼真的模式（Schema）和知识图谱（KG）。生成的资源与领域无关，特别适用于数据敏感或难以获取的研究场景。它支持高度可调的参数配置，并利用 HermiT 推理器确保逻辑一致性。\n\n## 环境准备\n\n在开始使用之前，请确保满足以下系统要求和依赖：\n\n*   **操作系统**：Linux, macOS 或 Windows\n*   **Python 版本**：建议 Python 3.8+\n*   **关键依赖**：**Java JDK**\n    *   **重要提示**：PyGraft 使用 HermiT 推理器进行逻辑一致性检查，该推理器基于 Java 运行。因此，必须安装 Java 并正确配置 `JAVA_HOME` 环境变量。\n    *   验证安装：在终端运行 `java -version` 确认已安装。\n\n## 安装步骤\n\n你可以通过 PyPI 或 GitHub 源码安装 PyGraft。国内开发者若遇到网络问题，可配置 pip 使用国内镜像源（如清华源、阿里源）。\n\n### 方式一：通过 PyPI 安装（推荐）\n\n```bash\n# 使用默认源\npip install pygraft\n\n# 或使用国内镜像加速（例如清华源）\npip install pygraft -i https:\u002F\u002Fpypi.tuna.tsinghua.edu.cn\u002Fsimple\n```\n\n### 方式二：从 GitHub 源码安装（获取最新版本）\n\n```bash\npip install git+https:\u002F\u002Fgithub.com\u002Fnicolas-hbt\u002Fpygraft.git\n```\n\n## 基本使用\n\n以下是使用 PyGraft 生成模式（Schema）和知识图谱（KG）的最简流程。\n\n### 1. 生成配置文件模板\n\n首先，需要在当前工作目录生成一个 YAML 格式的配置文件模板，其中包含所有可调节的参数。\n\n```python\nimport pygraft\n\n# 生成名为 template.yml 的默认配置文件\npygraft.create_yaml_template()\n```\n\n> **注意**：生成的 `template.yml` 文件位于当前目录下。对于初学者，可以直接使用默认参数值，无需手动修改。\n\n### 2. 生成模式（Schema）\n\n使用生成的配置文件来构建本体模式。\n\n```python\n# 根据配置文件生成 Schema\npygraft.generate_schema(\"template.yml\")\n```\n\n*   **输出位置**：生成的模式文件位于 `output\u002Ftemplate\u002Fschema.rdf`。\n*   **辅助文件**：同时会生成 `class_info.json` 和 `relation_info.json`，分别描述生成的类和关系信息。\n\n### 3. 生成知识图谱（KG）\n\n如果你已经有一个模式（或想基于刚才生成的模式），可以进一步实例化生成知识图谱。\n\n```python\n# 根据配置文件生成 KG（会自动复用或结合已有的 Schema）\npygraft.generate_kg(\"template.yml\")\n```\n\n*   **输出位置**：完整的知识图谱文件位于 `output\u002Ftemplate\u002Ffull_graph.rdf`，其中包含了本体信息和具体的个体数据。\n\n### 4. 一键执行完整流程\n\n通常情况下，你需要同时生成模式和知识图谱。PyGraft 提供了便捷的单步执行函数：\n\n```python\n# 一次性生成 Schema 和 KG\npygraft.generate(\"template.yml\")\n```\n\n执行完成后，请查看 `output\u002Ftemplate\u002F` 目录获取所有生成结果。","某高校知识图谱实验室的研究团队正在开发一种新的图神经网络算法，急需大量符合逻辑一致性的测试数据来验证模型在不同本体复杂度下的表现。\n\n### 没有 pygraft 时\n- 研究人员必须手动编写复杂的 RDF\u002FOWL 文件，耗时数天才能构建出一个小型的模拟知识库，严重拖慢实验进度。\n- 自行构造的数据往往缺乏真实的语义结构，难以覆盖 RDFS 和 OWL 的高级特性（如传递性、逆函数属性），导致算法评估结果失真。\n- 为确保数据逻辑自洽，团队需额外集成外部推理机进行反复校验，一旦发现有矛盾的三元组，就得人工回溯修改，极易出错。\n- 由于缺乏可配置参数，无法快速生成具有不同规模或密度特征的多样化数据集，限制了算法鲁棒性的全面测试。\n\n### 使用 pygraft 后\n- 团队只需设定节点数量、关系密度等参数，pygraft 即可在几分钟内自动生成包含完整 Schema 和实例数据的大型知识图谱。\n- pygraft 原生支持丰富的 RDFS 和 OWL 构造器，生成的图谱天然具备复杂的语义层次，完美模拟真实世界的本体结构。\n- 内置的 HermiT 推理引擎在生成过程中自动保证逻辑一致性，彻底消除了人工排查矛盾三元组的繁琐步骤。\n- 通过调整配置参数，研究人员能一键产出无数种不同特征的数据变体，高效完成算法在极端场景下的压力测试。\n\npygraft 将原本需要数周的数据准备工作压缩至分钟级，让研究者能专注于核心算法创新而非数据构造。","https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Fnicolas-hbt_pygraft_1ec1250c.png","nicolas-hbt","Nicolas Hubert","https:\u002F\u002Foss.gittoolsai.com\u002Favatars\u002Fnicolas-hbt_9042ad20.jpg","AI Applied Scientist @zalando ","Zalando SE","Germany","nicolas.hubert@univ-lorraine.fr","nicolas_hubr","https:\u002F\u002Fnicolas-hbt.github.io\u002F","https:\u002F\u002Fgithub.com\u002Fnicolas-hbt",[83],{"name":84,"color":85,"percentage":86},"Python","#3572A5",100,702,50,"2026-04-13T18:48:28","MIT","未说明","不需要 GPU",{"notes":94,"python":91,"dependencies":95},"必须安装 Java 并正确配置 $JAVA_HOME 环境变量，因为逻辑一致性检查依赖基于 Java 的 HermiT 推理机。该工具用于生成合成模式和本体知识图谱，不涉及深度学习模型或 GPU 加速。",[96,97],"rdflib","owlready2",[99,16,14],"其他",[101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120],"data-generator","graph-generator","knowledge-base","knowledge-graph","ontology","schema","semantic-web","ontology-generation","python","synthetic-data","synthetic-dataset-generation","contributions-welcome","owl","rdf","rdfs","artificial-intelligence","benchmarking","linked-data","machine-learning","semantics",null,"2026-03-27T02:49:30.150509","2026-04-18T09:20:10.076663",[125],{"id":126,"question_zh":127,"answer_zh":128,"source_url":129},39523,"如何使用 PyGraft 处理我自己的表格数据（如 Excel 文件）来构建知识图谱？","目前 PyGraft 主要支持两种功能：(1) 根据配置文件从头创建模式（本体），指定类、关系的数量及对称性、传递性等特征；(2) 基于现有模式生成知识图谱。对于您已有的表格格式数据（具体实例\u002F个体），当前版本尚未直接支持将其作为输入。维护者指出，未来版本将支持任意输入模式，但目前建议使用其他现有的 Python 库先将表格数据转换为 PyGraft 所需的特定模式格式，然后再纳入生成流程。","https:\u002F\u002Fgithub.com\u002Fnicolas-hbt\u002Fpygraft\u002Fissues\u002F1",[]]