https://github.com/wetneb/nifconverter
Utility to translate NIF files across identifier schemes, such as DBpedia and Wikidata
https://github.com/wetneb/nifconverter
dbpedia entity-linking nif wikidata
Last synced: 6 months ago
JSON representation
Utility to translate NIF files across identifier schemes, such as DBpedia and Wikidata
- Host: GitHub
- URL: https://github.com/wetneb/nifconverter
- Owner: wetneb
- Created: 2019-02-04T16:27:06.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-08-24T07:39:20.000Z (about 6 years ago)
- Last Synced: 2025-04-06T12:08:19.287Z (7 months ago)
- Topics: dbpedia, entity-linking, nif, wikidata
- Language: Python
- Size: 52.7 KB
- Stars: 12
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
nifconverter
============[](https://travis-ci.org/wetneb/nifconverter) [](https://coveralls.io/github/wetneb/nifconverter?branch=master) [](https://pypi.org/project/nifconverter/)
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:
```bash
nifconverter -i my_dbpedia_nif_file.ttl -o my_wikidata_nif_file.ttl
```By default we use the [DBpedia SameThing service](http://dev.dbpedia.org/Global_IRI_Resolution_Service) to convert URIs.
It is also possible to query the DBpedia SPARQL endpoint instead using the `--converter` parameter:
```bash
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:
```bash
nifconverter --target https://en.wikipedia.org/wiki/ -i my_wikidata_nif_file.ttl -o my_wikipedia_nif_file.ttl
```