simple knowledge graph tools with minimal dependency
Project description
kgtool: toolbox for processing knowledge graph and cnSchema
install
-------------
pip install kgtool
additional setup
* install graphviz/dot to render schema in image
brew install graphviz
* RDF/JSON-LD processor
pip install rdflib-jsonld
tools
-------------
kgtool/core.py
* file utilities
* json data access
* data conversion
kgtool/stats.py
* table item statistics
kgtool cns
* cns/cns_model.py basic cns data model, load/export jsonld
* cns/cns_convert.py convert cns item
* cns/cns_validate.py validate cns item
* cns/cns_graphviz.py visualize cns schema
cns
* cns/cns_excel.py load cnSchema schema in excel
* cns/schemaorg.py update schemaorg
* cns/cns_schemaorg.py convert schemaorg to loaded_schema format
cnSchema 201806
====================
### cns_top
源文件
https://docs.google.com/spreadsheets/d/1YKtEpHqa2I8LvuNAVDg3uwV6G9b4ZrNJsZdvPMS3_98/edit#gid=175537852
./genschema.sh cns_top v2.0
### cns_place
源文件
https://docs.google.com/spreadsheets/d/1aX-_QOj2GQALx-k_dJU-ak5LyvV0iIBaAg6s2N0UNmw/edit#gid=1952900205
./genschema.sh cns_place v2.0
### cns_organization
源文件
https://docs.google.com/spreadsheets/d/1qVaBhsbf0RRkrVhG0kkkn79q_fH4s4bV3oO5isGrX8o/edit#gid=659512552
./genschema.sh cns_organization v2.0
### cns_person
源文件
https://docs.google.com/spreadsheets/d/1b5DubotKUTU5tvT2pGXztwLpP63Xrc1le-VOuGKqbcw/edit
./genschema.sh cns_person v2.0
### cns_schemaorg
源文件
https://docs.google.com/spreadsheets/d/1mpiBxI5rK_qs86IpbXgN1xbhrxS_VYF0XjI_fcRpl00/edit#gid=364353024
./genschema.sh cns_schemaorg
TODO: super class/property 这一块还没有做
TODO: 形成template
TODO: 处理 domain/range
### cns_kg4ai
源文件
https://docs.google.com/spreadsheets/d/1wAM3zoyjFmo0O92-okLHLMXwKNvx_GCWV2eu_AeX3VY/edit#gid=1085464633
./genschema.sh cns_kg4ai v20180915
install
-------------
pip install kgtool
additional setup
* install graphviz/dot to render schema in image
brew install graphviz
* RDF/JSON-LD processor
pip install rdflib-jsonld
tools
-------------
kgtool/core.py
* file utilities
* json data access
* data conversion
kgtool/stats.py
* table item statistics
kgtool cns
* cns/cns_model.py basic cns data model, load/export jsonld
* cns/cns_convert.py convert cns item
* cns/cns_validate.py validate cns item
* cns/cns_graphviz.py visualize cns schema
cns
* cns/cns_excel.py load cnSchema schema in excel
* cns/schemaorg.py update schemaorg
* cns/cns_schemaorg.py convert schemaorg to loaded_schema format
cnSchema 201806
====================
### cns_top
源文件
https://docs.google.com/spreadsheets/d/1YKtEpHqa2I8LvuNAVDg3uwV6G9b4ZrNJsZdvPMS3_98/edit#gid=175537852
./genschema.sh cns_top v2.0
### cns_place
源文件
https://docs.google.com/spreadsheets/d/1aX-_QOj2GQALx-k_dJU-ak5LyvV0iIBaAg6s2N0UNmw/edit#gid=1952900205
./genschema.sh cns_place v2.0
### cns_organization
源文件
https://docs.google.com/spreadsheets/d/1qVaBhsbf0RRkrVhG0kkkn79q_fH4s4bV3oO5isGrX8o/edit#gid=659512552
./genschema.sh cns_organization v2.0
### cns_person
源文件
https://docs.google.com/spreadsheets/d/1b5DubotKUTU5tvT2pGXztwLpP63Xrc1le-VOuGKqbcw/edit
./genschema.sh cns_person v2.0
### cns_schemaorg
源文件
https://docs.google.com/spreadsheets/d/1mpiBxI5rK_qs86IpbXgN1xbhrxS_VYF0XjI_fcRpl00/edit#gid=364353024
./genschema.sh cns_schemaorg
TODO: super class/property 这一块还没有做
TODO: 形成template
TODO: 处理 domain/range
### cns_kg4ai
源文件
https://docs.google.com/spreadsheets/d/1wAM3zoyjFmo0O92-okLHLMXwKNvx_GCWV2eu_AeX3VY/edit#gid=1085464633
./genschema.sh cns_kg4ai v20180915
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
kgtool-0.1.0.tar.gz
(28.2 kB
view details)
File details
Details for the file kgtool-0.1.0.tar.gz.
File metadata
- Download URL: kgtool-0.1.0.tar.gz
- Upload date:
- Size: 28.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/2.7.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
48838a2da69f3019229f849e0a92f85030722b1ef5953db2398aec826a7e4f5c
|
|
| MD5 |
f8eea552bd42e930f4f9b3a80d53922e
|
|
| BLAKE2b-256 |
68290d4411c88e5afe8d78be0af5eb5255ead015249fd2d1a09f48e6e3422065
|