{"id":18746389,"url":"https://github.com/ownthink/knowledgegraph","last_synced_at":"2025-04-04T06:08:36.681Z","repository":{"id":43040960,"uuid":"138898384","full_name":"ownthink/KnowledgeGraph","owner":"ownthink","description":"史上最大规模1.4亿知识图谱数据免费下载，知识图谱，通用知识图谱，融合了两千五百多万的实体，拥有亿级别的实体属性关系。","archived":false,"fork":false,"pushed_at":"2020-10-21T08:53:36.000Z","size":416,"stargazers_count":1039,"open_issues_count":6,"forks_count":154,"subscribers_count":49,"default_branch":"master","last_synced_at":"2025-03-28T05:12:21.154Z","etag":null,"topics":["knowledgebase","knowledgegraph"],"latest_commit_sha":null,"homepage":"https://www.ownthink.com","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ownthink.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-06-27T15:11:50.000Z","updated_at":"2025-03-27T10:39:02.000Z","dependencies_parsed_at":"2022-08-12T10:11:21.433Z","dependency_job_id":null,"html_url":"https://github.com/ownthink/KnowledgeGraph","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ownthink%2FKnowledgeGraph","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ownthink%2FKnowledgeGraph/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ownthink%2FKnowledgeGraph/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ownthink%2FKnowledgeGraph/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ownthink","download_url":"https://codeload.github.com/ownthink/KnowledgeGraph/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247128751,"owners_count":20888235,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["knowledgebase","knowledgegraph"],"created_at":"2024-11-07T16:25:20.245Z","updated_at":"2025-04-04T06:08:36.663Z","avatar_url":"https://github.com/ownthink.png","language":"Python","readme":"\n知识图谱可视化：https://www.ownthink.com/knowledge.html\n\n数据下载：关注微信公众号【思知机器人】回复【数据下载】\n\n\n# 知识图谱\n\u003e\u003e\u003e 知识图谱融合了两千五百多万的实体，拥有亿级别的实体属性关系。\n\n## 知识图谱API\n\n#### 1. 获取歧义关系（mention -\u003e entity）\n\u003e\u003e\u003e 输入名称(mention)返回对应实体(entity)的列表。如遇到共指问题，请求将会自动对名称(mention)进行共指消解。\n\n请求方式（名称：mention_name）：\n```\nhttps://api.ownthink.com/kg/ambiguous?mention=mention_name\n```\nmention_name举例：\n```\n苹果\n苹果手机\n苏大\n苏州大学\nSoochow University\n番茄\n西红柿\n```\n请求示例：\nhttps://api.ownthink.com/kg/ambiguous?mention=苹果\n\n返回格式说明：\n```\n[\n    [\n        \"ambiguous_entity1\",            // 歧义实体1\n        965445\n    ],\n    [\n        \"ambiguous_entity2\",            // 歧义实体2\n        864451\n    ],\n    [\n        \"ambiguous_entity3\",            // 歧义实体3\n        764322\n    ]\n]\n```\n\n#### 2. 获取实体知识（entity -\u003e knowledge）\n\u003e\u003e\u003e 输入实体(entity)返回字典格式的全部知识。实体名一般为消歧后的实体(entity)，如果直接输入名称(mention)，请求将会自动进行消歧处理并返回实体(entity)全部知识。\n\n请求方式（实体：entity_name）：\n```\nhttps://api.ownthink.com/kg/knowledge?entity=entity_name\n```\nentity_name举例：\n```\n苹果\n苹果[2007年李玉执导电影]\n苹果公司\n刘德华\n苏大\n苏州大学\n西红柿\n```\n请求示例：\nhttps://api.ownthink.com/kg/knowledge?entity=刘德华\n\n返回格式说明：\n```\n{\n    \"entity\": \"entity_name\",            // 实体名称\n    \"desc\": \"entity_desc\",              // 实体描述\n    \"avp\": [                            // AVP列表\n        [\n            \"entity_attribute1\",        // 属性1\n            \"entity_value1\"             // 值\n        ],\n        [\n            \"entity_attribute2\",        // 属性2\n            \"entity_value2\"             // 值\n        ]\n    ],\n    \"tag\": [                            // 标签列表\n        \"tag1\",                         // 标签1\n        \"tag2\"                          // 标签2\n    ]\n}\n```\n\n#### 3. 获取属性值（entity\u0026attribute -\u003e value）\n\u003e\u003e\u003e 给定实体(entity)和属性(attribute)返回其对应的值(value)列表。实体名一般为实体(entity)，属性(attribute)一般为全部知识AVP列表中的属性，如果没有直接对应的entity与attribute请求将会对entity与attribute进行消歧、共指消解处理。\n\n请求方式（实体：entity_name、属性：attribute_name）：\n```\nhttps://api.ownthink.com/kg/eav?entity=entity_name\u0026attribute=attribute_name\n```\nentity\u0026attribute举例：\n```\n苹果[蔷薇科苹果属果实]      颜色\n哈密瓜                     拉丁学名\n哈密瓜                     别称\n航母                       地位\n图灵                       主要成就\n图灵奖                     奖励对象\n```\n请求示例：\nhttps://api.ownthink.com/kg/eav?entity=苹果\u0026attribute=颜色\n\n返回格式说明：\n```\n[\n    \"entity_value1\",                    // 实体属性所对应的值1\n    \"entity_value2\",                    // 实体属性所对应的值2\n    \"entity_value3\"                     // 实体属性所对应的值3\n]\n```\n\n### 思知人工智能群\n```\n人工智能qq群1：90780053(满)\n人工智能qq群2：956936481（满）\n人工智能qq群3：1160292084\n知识图谱qq群1：55152968（满）\n知识图谱qq群2：740104333\n\n微信群：可联系作者MrYener邀请进群\n```\n\n\n\u003cp\u003e捐赠作者(您的鼓励是作者开源最大的动力！！！)：\u003ca href=\"https://github.com/ownthink/Jiagu/wiki/donation\"target=\"_blank\"\u003e捐赠致谢\u003c/a\u003e \u003c/p\u003e\n\n![收款码](https://github.com/ownthink/KnowledgeGraph/raw/master/img/%E6%94%B6%E6%AC%BE%E7%A0%81.jpg)\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fownthink%2Fknowledgegraph","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fownthink%2Fknowledgegraph","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fownthink%2Fknowledgegraph/lists"}