Skip navigation links
A B C D E F G H I L M N O P Q R S T U V W 

A

AbstractDefaultImplementation(ImmutableList<Change>, long, Object) - Constructor for class org.wikidata.query.rdf.tool.change.Change.Batch.AbstractDefaultImplementation
 
acceptHeader() - Method in class org.wikidata.query.rdf.tool.rdf.RdfRepository.UpdateCountResponse
 
advanced() - Method in class org.wikidata.query.rdf.tool.change.Change.Batch.AbstractDefaultImplementation
 
advanced() - Method in interface org.wikidata.query.rdf.tool.change.Change.Batch
How much this batch is "worth" in units of advancedUnits().
advancedUnits() - Method in interface org.wikidata.query.rdf.tool.change.Change.Batch
The unit of advanced() in English.
advancedUnits() - Method in class org.wikidata.query.rdf.tool.change.IdChangeSource.Batch
 
advancedUnits() - Method in class org.wikidata.query.rdf.tool.change.RecentChangesPoller.Batch
 
AlwaysOutputPicker(T) - Constructor for class org.wikidata.query.rdf.tool.Munge.AlwaysOutputPicker
 
ask(String) - Method in class org.wikidata.query.rdf.tool.rdf.RdfRepository
Execute a SPARQL ask and parse the boolean result.
ASK_QUERY_RESPONSE - Static variable in class org.wikidata.query.rdf.tool.rdf.RdfRepository
Parse the response from an ask query into a boolean.

B

BadSubjectException(Set<String>, WikibaseUris) - Constructor for exception org.wikidata.query.rdf.tool.rdf.Munger.BadSubjectException
 
batchSize() - Method in interface org.wikidata.query.rdf.tool.Update.Options
 
bind(String, String) - Method in class org.wikidata.query.rdf.tool.rdf.UpdateBuilder
Bind a string to a name.
bindStatements(String, Collection<Statement>) - Method in class org.wikidata.query.rdf.tool.rdf.UpdateBuilder
Bind some statements to a string.
bindUri(String, String) - Method in class org.wikidata.query.rdf.tool.rdf.UpdateBuilder
Bind a URI to a name.
bindUris(String, Collection<String>) - Method in class org.wikidata.query.rdf.tool.rdf.UpdateBuilder
Bind some uris to a string.
bindValue(String, Object) - Method in class org.wikidata.query.rdf.tool.rdf.UpdateBuilder
Bind a value to a name.
bindValues(String, Collection<Statement>) - Method in class org.wikidata.query.rdf.tool.rdf.UpdateBuilder
Bind some values to a string.
buildWriter(long) - Method in class org.wikidata.query.rdf.tool.Munge.ChunkedFileWriterOutputPicker
 
buildWriter(long) - Method in class org.wikidata.query.rdf.tool.Munge.ChunkedPipedWriterOutputPicker
 

C

Change - Class in org.wikidata.query.rdf.tool.change
A change in an entity in Wikibase.
Change(String, long, Date, long) - Constructor for class org.wikidata.query.rdf.tool.change.Change
 
Change.Batch - Interface in org.wikidata.query.rdf.tool.change
A batch of changes.
Change.Batch.AbstractDefaultImplementation - Class in org.wikidata.query.rdf.tool.change
Simple default implementation of Batch.
Change.Source<B extends Change.Batch> - Interface in org.wikidata.query.rdf.tool.change
Detects changes.
changes() - Method in class org.wikidata.query.rdf.tool.change.Change.Batch.AbstractDefaultImplementation
 
changes() - Method in interface org.wikidata.query.rdf.tool.change.Change.Batch
The changes in the batch.
ChunkedFileWriterOutputPicker(String, int) - Constructor for class org.wikidata.query.rdf.tool.Munge.ChunkedFileWriterOutputPicker
 
ChunkedPipedWriterOutputPicker(BlockingQueue<InputStream>, int) - Constructor for class org.wikidata.query.rdf.tool.Munge.ChunkedPipedWriterOutputPicker
 
chunkSize() - Method in interface org.wikidata.query.rdf.tool.Munge.Options
 
cleanUnused(Collection<String>) - Method in class org.wikidata.query.rdf.tool.rdf.RdfRepository
Clean subjects if they are not used anymore.
client() - Method in class org.wikidata.query.rdf.tool.rdf.RdfRepository
Allow subclass access to the HTTP client.
CliUtils - Class in org.wikidata.query.rdf.tool
Utilities for command line scripts.
CliUtils.ForbiddenOk - Class in org.wikidata.query.rdf.tool
Methods in this class are ignored by the forbiddenapis checks.
compareTo(Change) - Method in class org.wikidata.query.rdf.tool.change.Change
 
ContainedException - Exception in org.wikidata.query.rdf.tool.exception
The operation failed and likely won't succeed with those parameters unless some action is taken but the rest of the operation should proceed.
ContainedException(String, Throwable) - Constructor for exception org.wikidata.query.rdf.tool.exception.ContainedException
 
ContainedException(String) - Constructor for exception org.wikidata.query.rdf.tool.exception.ContainedException
 

D

DelegatingRdfHandler - Class in org.wikidata.query.rdf.tool.rdf
RDFHandler that delegates all operations to a next handler.
DelegatingRdfHandler(RDFHandler) - Constructor for class org.wikidata.query.rdf.tool.rdf.DelegatingRdfHandler
 

E

endRDF() - Method in class org.wikidata.query.rdf.tool.rdf.DelegatingRdfHandler
 
entitiesMunged(int) - Method in class org.wikidata.query.rdf.tool.Munge.AlwaysOutputPicker
 
entitiesMunged(int) - Method in interface org.wikidata.query.rdf.tool.Munge.OutputPicker
Update the number of entities already handled.
entityId() - Method in class org.wikidata.query.rdf.tool.change.Change
The entity that changed.
execute(String, RdfRepository.ResponseHandler<T>, String) - Method in class org.wikidata.query.rdf.tool.rdf.RdfRepository
Execute some raw SPARQL.

F

FatalException - Exception in org.wikidata.query.rdf.tool.exception
The operation failed and the whole application is likely busted and should be stopped.
FatalException(String, Throwable) - Constructor for exception org.wikidata.query.rdf.tool.exception.FatalException
 
FatalException(String) - Constructor for exception org.wikidata.query.rdf.tool.exception.FatalException
 
fetchLeftOffTime() - Method in class org.wikidata.query.rdf.tool.rdf.RdfRepository
Fetch where we left off updating the repository.
fetchRdfForEntity(String) - Method in class org.wikidata.query.rdf.tool.wikibase.WikibaseRepository
Fetch the RDF for some entity.
fetchRecentChanges(Date, JSONObject, int) - Method in class org.wikidata.query.rdf.tool.wikibase.WikibaseRepository
Fetch recent changes starting from nextStartTime or continuing from lastContinue depending on the contents of lastContinue way to use MediaWiki.
filtered(Collection<Statement>) - Static method in class org.wikidata.query.rdf.tool.FilteredStatements
Enriches the given collection of Statements.
FilteredStatements - Class in org.wikidata.query.rdf.tool
Enriches collections of Statements with handy utility methods for filtering based on common criteria.
FilteredStatements(Collection<Statement>) - Constructor for class org.wikidata.query.rdf.tool.FilteredStatements
Enriches the given collection of Statements.
firstBatch() - Method in interface org.wikidata.query.rdf.tool.change.Change.Source
Fetch the first batch.
firstBatch() - Method in class org.wikidata.query.rdf.tool.change.IdChangeSource
 
firstBatch() - Method in class org.wikidata.query.rdf.tool.change.RecentChangesPoller
 
firstEntityIdForLabelStartingWith(String, String, String) - Method in class org.wikidata.query.rdf.tool.wikibase.WikibaseRepository
Get the first id with the provided label in the provided language.
ForbiddenOk() - Constructor for class org.wikidata.query.rdf.tool.CliUtils.ForbiddenOk
 
forItems(long, long, long) - Static method in class org.wikidata.query.rdf.tool.change.IdChangeSource
Build and IdChangeSource for items as opposed to properties.
from() - Method in interface org.wikidata.query.rdf.tool.Munge.Options
 

G

getContinueObject(Change) - Method in class org.wikidata.query.rdf.tool.wikibase.WikibaseRepository
Create JSON change description for continuing.
getDelay() - Method in class org.wikidata.query.rdf.tool.rdf.RdfRepository
Get retry delay.
getMaxRetries() - Method in class org.wikidata.query.rdf.tool.rdf.RdfRepository
Get max retries count.
getRefs(String) - Method in class org.wikidata.query.rdf.tool.rdf.RdfRepository
Get list of reference subjects connected to entity.
getValues(String) - Method in class org.wikidata.query.rdf.tool.rdf.RdfRepository
Get list of value subjects connected to entity.

H

handleComment(String) - Method in class org.wikidata.query.rdf.tool.rdf.DelegatingRdfHandler
 
handleNamespace(String, String) - Method in class org.wikidata.query.rdf.tool.rdf.DelegatingRdfHandler
 
handleNamespace(String, String) - Method in class org.wikidata.query.rdf.tool.rdf.NormalizingRdfHandler
 
handleNamespace(String, String) - Method in class org.wikidata.query.rdf.tool.rdf.PrefixRecordingRdfHandler
 
handleOptions(Class<T>, String...) - Static method in class org.wikidata.query.rdf.tool.OptionsUtils
Parses options and handles the verbose flag.
handleStatement(Statement) - Method in class org.wikidata.query.rdf.tool.rdf.DelegatingRdfHandler
 
handleStatement(Statement) - Method in class org.wikidata.query.rdf.tool.rdf.NormalizingRdfHandler
 
hasRevision(String, long) - Method in class org.wikidata.query.rdf.tool.rdf.RdfRepository
Does the triple store have this revision or better.
help() - Method in interface org.wikidata.query.rdf.tool.OptionsUtils.BasicOptions
 
Httpd(int, BlockingQueue<InputStream>) - Constructor for class org.wikidata.query.rdf.tool.Munge.Httpd
 

I

IdChangeSource - Class in org.wikidata.query.rdf.tool.change
Blindly iterates an id range and returns those as "changes".
IdChangeSource(String, long, long, long) - Constructor for class org.wikidata.query.rdf.tool.change.IdChangeSource
 
IdChangeSource.Batch - Class in org.wikidata.query.rdf.tool.change
Batch implementation for this change source.
ids() - Method in interface org.wikidata.query.rdf.tool.Update.Options
 
inputDateFormat() - Static method in class org.wikidata.query.rdf.tool.wikibase.WikibaseRepository
Create a new DateFormat object that parses from and formats to the date in the format that wikibase returns.
inputStream(String) - Static method in class org.wikidata.query.rdf.tool.CliUtils
Get an input stream for a uri.

L

labelLanguages() - Method in interface org.wikidata.query.rdf.tool.OptionsUtils.MungerOptions
 
last() - Method in class org.wikidata.query.rdf.tool.change.Change.Batch.AbstractDefaultImplementation
 
last() - Method in interface org.wikidata.query.rdf.tool.change.Change.Batch
Was this the last batch?
last() - Method in class org.wikidata.query.rdf.tool.change.IdChangeSource.Batch
 
leftOffDate() - Method in interface org.wikidata.query.rdf.tool.change.Change.Batch
Null or the latest date in the batch.
leftOffDate() - Method in class org.wikidata.query.rdf.tool.change.IdChangeSource.Batch
 
leftOffDate() - Method in class org.wikidata.query.rdf.tool.change.RecentChangesPoller.Batch
 
leftOffHuman() - Method in class org.wikidata.query.rdf.tool.change.Change.Batch.AbstractDefaultImplementation
 
leftOffHuman() - Method in interface org.wikidata.query.rdf.tool.change.Change.Batch
Human readable version of where this batch ends.
limitLabelLanguages(String...) - Method in class org.wikidata.query.rdf.tool.rdf.Munger
Build a Munger that only imports labels in some languages.
limitLabelLanguages(Collection<String>) - Method in class org.wikidata.query.rdf.tool.rdf.Munger
Build a Munger that only imports labels in some languages.

M

main(String[]) - Static method in class org.wikidata.query.rdf.tool.Munge
Run a bulk munge configured from the command line.
main(String[]) - Static method in class org.wikidata.query.rdf.tool.Update
Run updates configured from the command line.
Munge - Class in org.wikidata.query.rdf.tool
Munges a Wikidata RDF dump so that it can be loaded in a single import.
Munge(WikibaseUris, Munger, Reader, Munge.OutputPicker<Writer>) - Constructor for class org.wikidata.query.rdf.tool.Munge
 
munge(String, Collection<Statement>, Collection<String>, Collection<String>) - Method in class org.wikidata.query.rdf.tool.rdf.Munger
Adds and removes entries from the statements collection to munge Wikibase RDF exports into a more queryable form.
munge(String, Collection<Statement>) - Method in class org.wikidata.query.rdf.tool.rdf.Munger
Adds and removes entries from the statements collection to munge Wikibase RDF exports into a more queryable form.
Munge.AlwaysOutputPicker<T> - Class in org.wikidata.query.rdf.tool
An output picker that always returns one output.
Munge.ChunkedFileWriterOutputPicker - Class in org.wikidata.query.rdf.tool
OutputPicker that writes to files.
Munge.ChunkedPipedWriterOutputPicker - Class in org.wikidata.query.rdf.tool
OutputPicker writes to PipedOutput stream and throws the corresponding PipedInputStreams on a BlockingQueue.
Munge.Httpd - Class in org.wikidata.query.rdf.tool
Very simple HTTP server that only knows how to spit out results from a queue.
Munge.Options - Interface in org.wikidata.query.rdf.tool
CLI options for use with JewelCli.
Munge.OutputPicker<T> - Interface in org.wikidata.query.rdf.tool
Picks the right RDFHandler for writing.
Munger - Class in org.wikidata.query.rdf.tool.rdf
Munges RDF from Wikibase into a more queryable format.
Munger(WikibaseUris) - Constructor for class org.wikidata.query.rdf.tool.rdf.Munger
 
Munger.BadSubjectException - Exception in org.wikidata.query.rdf.tool.rdf
Thrown when the munged triples contain a subject we don't recognize.
mungerFromOptions(OptionsUtils.MungerOptions) - Static method in class org.wikidata.query.rdf.tool.OptionsUtils
Build a munger from a MungerOptions instance.

N

nextBatch(B) - Method in interface org.wikidata.query.rdf.tool.change.Change.Source
Fetches the next batch after lastBatch.
nextBatch(IdChangeSource.Batch) - Method in class org.wikidata.query.rdf.tool.change.IdChangeSource
 
nextBatch(RecentChangesPoller.Batch) - Method in class org.wikidata.query.rdf.tool.change.RecentChangesPoller
 
NormalizingRdfHandler - Class in org.wikidata.query.rdf.tool.rdf
An RDFHandler that wraps another handler normalizing any of the (currently) rather different wikidata output forms into a single form.
NormalizingRdfHandler(RDFHandler) - Constructor for class org.wikidata.query.rdf.tool.rdf.NormalizingRdfHandler
 

O

OptionsUtils - Class in org.wikidata.query.rdf.tool
Utilities for parsing options.
OptionsUtils.BasicOptions - Interface in org.wikidata.query.rdf.tool
Basic options for parsing with JewelCLI.
OptionsUtils.MungerOptions - Interface in org.wikidata.query.rdf.tool
Command line options for setting up a Munger instance.
OptionsUtils.WikibaseOptions - Interface in org.wikidata.query.rdf.tool
Options specifying information about a Wikibase instance.
org.wikidata.query.rdf.tool - package org.wikidata.query.rdf.tool
 
org.wikidata.query.rdf.tool.change - package org.wikidata.query.rdf.tool.change
Definition of a change in Wikibase and strategies for detecting them.
org.wikidata.query.rdf.tool.exception - package org.wikidata.query.rdf.tool.exception
 
org.wikidata.query.rdf.tool.rdf - package org.wikidata.query.rdf.tool.rdf
 
org.wikidata.query.rdf.tool.wikibase - package org.wikidata.query.rdf.tool.wikibase
 
output() - Method in class org.wikidata.query.rdf.tool.Munge.AlwaysOutputPicker
 
output() - Method in interface org.wikidata.query.rdf.tool.Munge.OutputPicker
Get the handler to write to.
outputDateFormat() - Static method in class org.wikidata.query.rdf.tool.wikibase.WikibaseRepository
Create a new DateFormat object that parses from and formats to the date in the format that wikibase wants as input.
outputStream(String) - Static method in class org.wikidata.query.rdf.tool.CliUtils
Get an output stream for a file.

P

parse(HttpEntity) - Method in class org.wikidata.query.rdf.tool.rdf.RdfRepository.UpdateCountResponse
 
pollDelay() - Method in interface org.wikidata.query.rdf.tool.Update.Options
 
PrefixRecordingRdfHandler - Class in org.wikidata.query.rdf.tool.rdf
RDFHandler that delegates while recording prefixes.
PrefixRecordingRdfHandler(RDFHandler, Map<String, String>) - Constructor for class org.wikidata.query.rdf.tool.rdf.PrefixRecordingRdfHandler
 

Q

query(String) - Method in class org.wikidata.query.rdf.tool.rdf.RdfRepository
Execute some SPARQL which returns a results table.

R

rcid() - Method in class org.wikidata.query.rdf.tool.change.Change
The rcid of the change.
RdfRepository - Class in org.wikidata.query.rdf.tool.rdf
Wrapper for communicating with the RDF repository.
RdfRepository(URI, WikibaseUris) - Constructor for class org.wikidata.query.rdf.tool.rdf.RdfRepository
 
RdfRepository.UpdateCountResponse - Class in org.wikidata.query.rdf.tool.rdf
Attempts to log update response information but very likely only works for Blazegraph.
reader(String) - Static method in class org.wikidata.query.rdf.tool.CliUtils
Build a reader for the uri.
RecentChangesPoller - Class in org.wikidata.query.rdf.tool.change
Polls recent changes.
RecentChangesPoller(WikibaseRepository, Date, int) - Constructor for class org.wikidata.query.rdf.tool.change.RecentChangesPoller
 
RecentChangesPoller.Batch - Class in org.wikidata.query.rdf.tool.change
Batch implementation for this poller.
removeSiteLinks() - Method in class org.wikidata.query.rdf.tool.rdf.Munger
Build a Munger that removes site links.
responseBodyAsString(CloseableHttpResponse) - Method in class org.wikidata.query.rdf.tool.rdf.RdfRepository
Fetch the body of the response as a string.
RetryableException - Exception in org.wikidata.query.rdf.tool.exception
The operation failed but should be retried.
RetryableException(String, Throwable) - Constructor for exception org.wikidata.query.rdf.tool.exception.RetryableException
 
RetryableException(String) - Constructor for exception org.wikidata.query.rdf.tool.exception.RetryableException
 
revision() - Method in class org.wikidata.query.rdf.tool.change.Change
The revision of the change.
run() - Method in class org.wikidata.query.rdf.tool.Munge
 
run() - Method in class org.wikidata.query.rdf.tool.Update
 

S

serve(NanoHTTPD.IHTTPSession) - Method in class org.wikidata.query.rdf.tool.Munge.Httpd
 
setDelay(int) - Method in class org.wikidata.query.rdf.tool.rdf.RdfRepository
Set retry delay.
setLabel(String, String, String, String) - Method in class org.wikidata.query.rdf.tool.wikibase.WikibaseRepository
Edits or creates a page by setting a label.
setMaxRetries(int) - Method in class org.wikidata.query.rdf.tool.rdf.RdfRepository
Set how many times we retry a failed HTTP call.
singleLabelLanguages() - Method in interface org.wikidata.query.rdf.tool.OptionsUtils.MungerOptions
 
singleLabelMode(String...) - Method in class org.wikidata.query.rdf.tool.rdf.Munger
Build a munger that will load only a single label per entity.
singleLabelMode(Collection<String>) - Method in class org.wikidata.query.rdf.tool.rdf.Munger
Build a munger that will load only a single label per entity.
skipSiteLinks() - Method in interface org.wikidata.query.rdf.tool.OptionsUtils.MungerOptions
 
sparqlUrl() - Method in interface org.wikidata.query.rdf.tool.Update.Options
 
start() - Method in interface org.wikidata.query.rdf.tool.Update.Options
 
startRDF() - Method in class org.wikidata.query.rdf.tool.rdf.DelegatingRdfHandler
 
StreamUtils - Class in org.wikidata.query.rdf.tool
Utilities for working with streams.
sync(String, Collection<Statement>) - Method in class org.wikidata.query.rdf.tool.rdf.RdfRepository
Synchronizes the RDF repository's representation of an entity to be exactly the provided statements.
systemDotErr() - Static method in class org.wikidata.query.rdf.tool.CliUtils.ForbiddenOk
Get System.err.
systemDotIn() - Static method in class org.wikidata.query.rdf.tool.CliUtils.ForbiddenOk
Get System.in.
systemDotOut() - Static method in class org.wikidata.query.rdf.tool.CliUtils.ForbiddenOk
Get System.out.

T

threadCount() - Method in interface org.wikidata.query.rdf.tool.Update.Options
 
timestamp() - Method in class org.wikidata.query.rdf.tool.change.Change
The timestamp of the change.
to() - Method in interface org.wikidata.query.rdf.tool.Munge.Options
 
toString() - Method in class org.wikidata.query.rdf.tool.change.Change
 
toString() - Method in class org.wikidata.query.rdf.tool.rdf.UpdateBuilder
 
TUPLE_QUERY_RESPONSE - Static variable in class org.wikidata.query.rdf.tool.rdf.RdfRepository
Parse the response from a regular query into a TupleQueryResult.

U

Update<B extends Change.Batch> - Class in org.wikidata.query.rdf.tool
Update tool.
Update(Change.Source<B>, WikibaseRepository, RdfRepository, Munger, ExecutorService, int) - Constructor for class org.wikidata.query.rdf.tool.Update
 
Update.Options - Interface in org.wikidata.query.rdf.tool
CLI options for use with JewelCli.
UPDATE_COUNT_RESPONSE - Static variable in class org.wikidata.query.rdf.tool.rdf.RdfRepository
Count and log the number of updates.
UpdateBuilder - Class in org.wikidata.query.rdf.tool.rdf
Quick and dirty update builder.
UpdateBuilder(String) - Constructor for class org.wikidata.query.rdf.tool.rdf.UpdateBuilder
 
UpdateCountResponse() - Constructor for class org.wikidata.query.rdf.tool.rdf.RdfRepository.UpdateCountResponse
 
updateLeftOffTime(Date) - Method in class org.wikidata.query.rdf.tool.rdf.RdfRepository
Update where we left off so when fetchLeftOffTime is next called it returns leftOffTime so we can continue from there after the updater is restarted.
utf8(InputStream) - Static method in class org.wikidata.query.rdf.tool.StreamUtils
Read an input stream as UTF-8 characters.
utf8(OutputStream) - Static method in class org.wikidata.query.rdf.tool.StreamUtils
Wrap an output stream in a writer that writes UTF_8 characters.

V

verbose() - Method in interface org.wikidata.query.rdf.tool.OptionsUtils.BasicOptions
 

W

wikibaseHost() - Method in interface org.wikidata.query.rdf.tool.OptionsUtils.WikibaseOptions
 
WikibaseRepository - Class in org.wikidata.query.rdf.tool.wikibase
Wraps Wikibase api.
WikibaseRepository(String, String) - Constructor for class org.wikidata.query.rdf.tool.wikibase.WikibaseRepository
 
wikibaseScheme() - Method in interface org.wikidata.query.rdf.tool.Update.Options
 
withSubject(String) - Method in class org.wikidata.query.rdf.tool.FilteredStatements
Returns a collection of statements, filtering out any with a subject different from the given String.
writer(String) - Static method in class org.wikidata.query.rdf.tool.CliUtils
Build a writer for the uri.
A B C D E F G H I L M N O P Q R S T U V W 
Skip navigation links

Copyright © 2015. All rights reserved.