A tool to convert NIF files across identifier schemes (DBpedia, Wikidata, ...)
Project description
Build Status Coverage Status PyPI version
Utility to translate NIF files across identifier schemes, for instance between DBpedia and Wikidata.
It can be used both as a Python library or as a CLI utility.
Install it with pip install nifconverter.
Example invocation:
nifconverter -i my_dbpedia_nif_file.ttl -o my_wikidata_nif_file.ttl
By default we use the DBpedia SameThing service to convert URIs. It is also possible to query the DBpedia SPARQL endpoint instead using the --converter parameter:
nifconverter --converter FromDBpediaSparqlConverter -i my_dbpedia_nif_file.ttl -o my_wikidata_nif_file.ttl
The target URI space to convert to can be changed with the --target option:
nifconverter --target https://en.wikipedia.org/wiki/ -i my_wikidata_nif_file.ttl -o my_wikipedia_nif_file.ttl
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
Built Distribution
File details
Details for the file nifconverter-0.2.2.tar.gz
.
File metadata
- Download URL: nifconverter-0.2.2.tar.gz
- Upload date:
- Size: 9.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.7.3 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bfc6588a261b3e3a4018a3058bd18a2d70588803493f43168acdf67e9f5ca6b6 |
|
MD5 | 7350e2e10862a98f8e9c04e3e0189885 |
|
BLAKE2b-256 | c191a383c05d65f26e3f428417e6c53aeba4c3f8229c98c5beb9c15cdc1c8d74 |
File details
Details for the file nifconverter-0.2.2-py3-none-any.whl
.
File metadata
- Download URL: nifconverter-0.2.2-py3-none-any.whl
- Upload date:
- Size: 15.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.7.3 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e6976aae49f7ba74254ee98f02361885cdb4043c426b2902652dbced50446001 |
|
MD5 | df97b5c32d77a50fec377cbeb259b848 |
|
BLAKE2b-256 | 5ad747fdd0e727e3e8a2869b2af9de5e374c226b10529e31c68fdc3dd84eb617 |