Skip to main content

Knowledge Graph Creator: converts text to RDF triples

Project description

Knowledge Graph Creator command line tool: kgcreator

PyPI Changelog Tests License

Knowledge Graph Creator: converts text to RDF triples

The Knowledge Graph Creator (kgcreator) is a tool for automating the generation of RDF data for Knowledge Graphs from raw text data read from an input directory path.

The Knowledge Graph Creator creates an output file containing RDF triples suitable for loading into any linked data/semantic web data store.

This Python command line utility is one of the example programs in my book Practical Python Artificial Intelligence Programming that is available on Leanpub.com or available (in the future, this book is under development) to read for free on my web site https://markwatson.com.

Installation

Install this tool using pip:

pip install kgcreator
pip install spacy
python -m spacy download en_core_web_sm

Usage

For help, run:

kgcreator --help
kgcreator --inputdir=test_data --outputfile=out.rdf

You can also use:

python -m kgcreator --help

Development

To contribute to this tool, first checkout the code. Then create a new virtual environment:

cd kgcreator
python -m venv venv
source venv/bin/activate

Now install the dependencies and test dependencies:

pip install -e '.[test]'

To run the tests:

pytest

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

kgcreator-0.11.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kgcreator-0.11-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

Details for the file kgcreator-0.11.tar.gz.

File metadata

  • Download URL: kgcreator-0.11.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.0

File hashes

Hashes for kgcreator-0.11.tar.gz
Algorithm Hash digest
SHA256 9ac3d20de9184c7a3623fddb788f0a9afb83fa9debb7561e12349767f7cbfe3c
MD5 bc2fe1eee9b69b7ec3315d2d974b36c9
BLAKE2b-256 f504d18e6d14ce699bd5fc964474c96e703dc9affccbb95ae821be7f1d7bdff1

See more details on using hashes here.

File details

Details for the file kgcreator-0.11-py3-none-any.whl.

File metadata

  • Download URL: kgcreator-0.11-py3-none-any.whl
  • Upload date:
  • Size: 8.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.0

File hashes

Hashes for kgcreator-0.11-py3-none-any.whl
Algorithm Hash digest
SHA256 620401267528a8bb11d97074ebadbb276739b032f2f1eaea458de395d5424982
MD5 76385f5b95547b392596058a49778677
BLAKE2b-256 a642794f9b8c8ff77d442496f85b098e4c11937e416bb9c86619d764cb6b1d64

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page