Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 2 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 (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-08-24T07:39:20.000Z (over 5 years ago)
- Last Synced: 2024-09-14T18:04:50.484Z (3 months ago)
- Topics: dbpedia, entity-linking, nif, wikidata
- Language: Python
- Size: 52.7 KB
- Stars: 12
- Watchers: 4
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
nifconverter
============[![Build Status](https://travis-ci.org/wetneb/nifconverter.svg?branch=master)](https://travis-ci.org/wetneb/nifconverter) [![Coverage Status](https://coveralls.io/repos/github/wetneb/nifconverter/badge.svg?branch=master)](https://coveralls.io/github/wetneb/nifconverter?branch=master) [![PyPI version](https://img.shields.io/pypi/v/nifconverter.svg)](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
```