public static class WikibaseRepository.Uris extends Object
| Modifier and Type | Method and Description |
|---|---|
org.apache.http.client.utils.URIBuilder |
builder()
Build a URIBuilder for wikibase requests.
|
URI |
csrfToken()
Uri to fetch a csrf token.
|
URI |
edit(String entityId,
String newType,
String data)
Uri to which you can post to edit an entity.
|
String |
getHost()
The wikibase host.
|
String |
getScheme()
The uri scheme for the wikibase instance.
|
URI |
rdf(String entityId)
Uri to get the rdf for an entity.
|
URI |
recentChanges(Date startTime,
org.json.simple.JSONObject continueObject,
int batchSize)
Uri to get the recent changes.
|
URI |
searchForLabel(String label,
String language,
String type)
Uri to search for a label in a language.
|
public URI recentChanges(Date startTime, org.json.simple.JSONObject continueObject, int batchSize)
startTime - the first date to poll from - usually if
continueObject isn't null this is ignored by wikibasecontinueObject - continue object sent from wikibase with the
last batchbatchSize - maximum number of results we want back from wikibasepublic URI csrfToken()
public URI searchForLabel(String label, String language, String type)
label - the label to searchlanguage - the language to searchtype - the type of the entitypublic URI edit(String entityId, String newType, String data)
entityId - the id to editnewType - the type of the entity to create. Ignored if entityId
is not null.data - data to add to the entitypublic org.apache.http.client.utils.URIBuilder builder()
public String getHost()
public String getScheme()
Copyright © 2016. All rights reserved.