public class WikidataCleaner
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
labelProperty |
static java.lang.String |
wikidataPrefix |
| Constructor and Description |
|---|
WikidataCleaner() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.Map<java.lang.String,java.lang.String> |
idsToNames(java.lang.String fileName)
It parses a .nt file and returns a dictionary where the keys are Wikidata entity ids
and the values are strings that combine the entity id with a text representation of
the entity.
|
static void |
main(java.lang.String[] args) |
public static final java.lang.String labelProperty
public static final java.lang.String wikidataPrefix
public static java.util.Map<java.lang.String,java.lang.String> idsToNames(java.lang.String fileName)
throws java.io.FileNotFoundException,
java.io.IOException
fileName - java.io.FileNotFoundExceptionjava.io.IOExceptionpublic static void main(java.lang.String[] args)
throws java.io.IOException
java.io.IOException