public class WikipediaHelper extends Object
| Constructor and Description |
|---|
WikipediaHelper() |
| Modifier and Type | Method and Description |
|---|---|
static Set<String> |
generateUriSet(String title)
Transforms the given Wikipedia title into a DBpedia URI.
|
static String |
getDBPediaUri(String title)
Transforms the given Wikipedia title into a DBpedia URI.
|
static String |
getWikipediaTitle(String uri)
Extracts the Wikipedia article title from a given Wikpedia URI.
|
static String |
getWikipediaUri(String domain,
String title)
Generates the URI for a Wikipedia entity with the given domain and the
given title.
|
public static String getWikipediaTitle(String uri)
WIKIPEPIA_URI_WIKI_PART = .
Note that if there is a query or an ancher inside the URI they won't be
removed from the title.uri - the Wikipedia URIpublic static String getWikipediaUri(String domain, String title)
domain - the domain of the Wikipediatitle - the title of the Wikipedia articlepublic static String getDBPediaUri(String title)
title - Copyright © 2014–2017. All rights reserved.