public static class WikibaseRepository.Uris extends Object
| Modifier and Type | Field and Description |
|---|---|
static Set<Long> |
DEFAULT_ENTITY_NAMESPACES |
| Constructor and Description |
|---|
Uris(URI baseUrl) |
Uris(URI baseUrl,
Set<Long> entityNamespaces) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.http.client.utils.URIBuilder |
builder()
Build a URIBuilder for wikibase requests.
|
URI |
constraints(String entityId)
Uri to get the rdf for constraints status of an entity.
|
URI |
csrfToken()
Uri to fetch a csrf token.
|
URI |
delete(String entityId)
Uri for deleting an entity.
|
URI |
edit(String entityId,
String newType,
String data)
Uri to which you can post to edit an entity.
|
static WikibaseRepository.Uris |
fromString(String url) |
String |
getHost()
The wikibase host.
|
boolean |
isEntityNamespace(long namespace)
Check that a namespace is valid wikibase entity namespace.
|
URI |
rdf(String entityId)
Uri to get the rdf for an entity.
|
URI |
rdf(String entityId,
long revision)
Uri to get the rdf for an entity and revision.
|
URI |
rdfRevision(String entityId,
long revision)
Uri to get the rdf for an entity and revision.
|
URI |
recentChanges(Instant startTime,
Continue 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.
|
WikibaseRepository.Uris |
setEntityNamespaces(Set<Long> entityNamespaces) |
public Uris(URI baseUrl)
public static WikibaseRepository.Uris fromString(String url)
public WikibaseRepository.Uris setEntityNamespaces(Set<Long> entityNamespaces)
public URI recentChanges(Instant startTime, Continue continueObject, int batchSize)
startTime - the first date to poll from - usually if
continueObject isn't null this is ignored by wikibasecontinueObject - Continue object from the last requestbatchSize - maximum number of results we want back from wikibasepublic URI rdf(String entityId, long revision)
public URI rdfRevision(String entityId, long revision)
public URI constraints(String entityId)
public 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 URI delete(String entityId)
entityId - Entity ID to deletepublic org.apache.http.client.utils.URIBuilder builder()
public String getHost()
public boolean isEntityNamespace(long namespace)
namespace - the namespace indexCopyright © 2019. All rights reserved.