All Projects → Lsdefine → knowledgeworks_api

Lsdefine / knowledgeworks_api

Licence: other
The API utils for querying CN-DBpedia & CN-Probase, the biggest Chinese knowledge bases

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to knowledgeworks api

Virustotal Api
Virus Total Public/Private/Intel API
Stars: ✭ 189 (+687.5%)
Mutual labels:  api-wrapper
Python Scrapyd Api
A Python wrapper for working with Scrapyd's API.
Stars: ✭ 235 (+879.17%)
Mutual labels:  api-wrapper
barnsworthburning
A commonplace book.
Stars: ✭ 20 (-16.67%)
Mutual labels:  knowledge-base
Discogs
A Ruby wrapper of the Discogs.com API
Stars: ✭ 195 (+712.5%)
Mutual labels:  api-wrapper
Python Ovh
Thin wrapper around OVH's APIs. Handles all the hard work including credential creation and requests signing.
Stars: ✭ 213 (+787.5%)
Mutual labels:  api-wrapper
Play Store Api
Google Play Store protobuf API wrapper in java
Stars: ✭ 249 (+937.5%)
Mutual labels:  api-wrapper
Graphql2rest
GraphQL to REST converter: automatically generate a RESTful API from your existing GraphQL API
Stars: ✭ 181 (+654.17%)
Mutual labels:  api-wrapper
ultimate-defi-research-base
Here we collect and discuss the best DeFI & Blockchain researches and tools. Feel free to DM me on Twitter or open pool request.
Stars: ✭ 1,074 (+4375%)
Mutual labels:  knowledge-base
Php Ovh
Lightweight PHP wrapper for OVH APIs. That's the easiest way to use OVH.com APIs in your PHP applications.
Stars: ✭ 230 (+858.33%)
Mutual labels:  api-wrapper
cvpysdk
Developer SDK - Python
Stars: ✭ 50 (+108.33%)
Mutual labels:  api-wrapper
Binance
A .NET Standard Binance API library.
Stars: ✭ 199 (+729.17%)
Mutual labels:  api-wrapper
Taxize
A taxonomic toolbelt for R
Stars: ✭ 209 (+770.83%)
Mutual labels:  api-wrapper
Notion Api
Unofficial Notion.so API
Stars: ✭ 250 (+941.67%)
Mutual labels:  api-wrapper
Github4s
A GitHub API wrapper written in Scala
Stars: ✭ 194 (+708.33%)
Mutual labels:  api-wrapper
java-binance-api
Java Binance API Client
Stars: ✭ 72 (+200%)
Mutual labels:  api-wrapper
Riot Api Java
Riot Games API Java Library
Stars: ✭ 184 (+666.67%)
Mutual labels:  api-wrapper
Betfair
betfairlightweight - python wrapper for Betfair API-NG (with streaming)
Stars: ✭ 246 (+925%)
Mutual labels:  api-wrapper
gatsby-theme-primer-wiki
A Gatsby Theme for Wiki/Docs/Knowledge Base, which using Primer style as the UI theme, can work well with Foam or Obsibian or just markdown files.
Stars: ✭ 85 (+254.17%)
Mutual labels:  knowledge-base
hata
Async Discord API wrapper.
Stars: ✭ 156 (+550%)
Mutual labels:  api-wrapper
conekta-elixir
Elixir library for Conekta api calls
Stars: ✭ 15 (-37.5%)
Mutual labels:  api-wrapper

CN-DBpedia & CN-Probase API Utils

# encoding=utf-8
import kw_api as api

api.SetApiKey('')
# without it, some api requests will be blocked 
# goto http://shuyantech.com/ for a free key

api.SetCacheSize(size=100000)

print(api.Ment2Ent('上海'))
# {'上海': ['上海(中华人民共和国直辖市)', '上海(小行星)', '上海(任天堂game boy掌机游戏《上海》)', '上海(倪锡英的著作)', '上海(钟立风演唱歌曲)']}
print(api.Ment2Ent(['中国','李白']))
# {'中国': ['中国(世界四大文明古国之一)', '中华人民共和国', ..., 
#  '李白': ['李白(唐代著名浪漫主义诗人)', '李白(李荣浩演唱歌曲)', ...
#  }

print(api.GetEntMentions('周杰伦'))
# ['周董', 'jay chou', 'jay(周杰伦的英文名字)', 'jay']

print(api.GetEntDesc('周杰伦'))
# '周杰伦(Jay Chou),1979年1月18日出生于台湾省新北市 ...

print(api.GetEntAttrValues('周杰伦', '出生日期'))
# ['1979年01月18日']
print(api.GetEntAttrValuesMulti(['周杰伦', '方文山'], '出生日期'))
# {'周杰伦': ['1979年01月18日'], '方文山': ['1969年01月26日']}

print(api.GetEntListTriples('复旦大学'))
# [['历届校友', ['邵力子', '罗家伦', '陈维稷', '王铁崖', '包蕾', '洪绂曾'], ['国家级教学团队', ['物理化学系列课程教学团队', '复旦大学汉语言文学原典精读系列课程教学团队', ...

print(api.GetEntInvTriples('许宁生'))
# [['i现任校长', '复旦大学'], ['i致词人', '珠三角改革发展研究院'], ['i副校长', '中山大学莱恩功能材料研究所']]

print(api.GetEntClicks('周杰伦'))
# {'周杰伦': 72638580}
print(api.GetEntClicks(['周杰伦', '方文山']))
# {'周杰伦': 72638580, '方文山': 9010477}

print(api.IsEnt(['周杰伦', '周3杰伦']))
# {'周杰伦': True, '周3杰伦': False}

print(api.GetEntsByConcept('歌手'))
# ['陈伟霆', '鹿晗', '周笔畅', '黄子韬', '张艺兴', '易烊千玺', '赵丽颖', '杨幂', ...
print(api.GetEntConcepts('周杰伦'))
# ['人物', '演员', '娱乐人物', '歌手', '音乐人物', '导演', '企业家', '编剧', '制作人', '音乐人']
print(api.GetEntConceptsMulti(['周杰伦','林俊杰','复旦大学']))
# {'周杰伦': [['人物', 1299103], ['演员', 59658], ['娱乐人物', 25299], ...], 
#  '林俊杰': [['人物', 1299103], ['演员', 59658], ['作家', 45715], ...], 
#  '复旦大学': [['学校', 143990], ['大学', 1961], ['中国大学', 1933], ...]}

print(api.GetEntTriples('周杰伦'))
# [['中文名', '周杰伦'], ['外文名称', 'Jay Chou'], ['别名', '周董'], ['国籍', '中国'], ...
print(api.GetEntTriplesMulti(['周杰伦', '复旦大学']))
# {'周杰伦': [['中文名', '周杰伦'], ['外文名称', 'Jay Chou'], ['别名', '周董'], ['国籍', '中国'], ['民族', '汉族'], ...
#  '复旦大学': [['中文名', '复旦大学'], ['英文名称', 'Fudan University'], ['简称', '复旦·FUDAN'], ...
#  }
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].
OSZAR »