public class Munger extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
Munger.BadSubjectException
Thrown when the munged triples contain a subject we don't recognize.
|
| Constructor and Description |
|---|
Munger(WikibaseUris uris) |
| Modifier and Type | Method and Description |
|---|---|
Munger |
keepTypes(boolean keep)
Set the keep types parameter.
|
Munger |
limitLabelLanguages(Collection<String> languages)
Build a Munger that only imports labels in some languages.
|
Munger |
limitLabelLanguages(String... languages)
Build a Munger that only imports labels in some languages.
|
void |
munge(String entityId,
Collection<org.openrdf.model.Statement> statements)
Adds and removes entries from the statements collection to munge Wikibase
RDF exports into a more queryable form.
|
void |
munge(String entityId,
Collection<org.openrdf.model.Statement> statements,
Collection<String> existingValues,
Collection<String> existingRefs)
Adds and removes entries from the statements collection to munge Wikibase
RDF exports into a more queryable form.
|
void |
munge(String entityId,
Collection<org.openrdf.model.Statement> statements,
Collection<String> existingValues,
Collection<String> existingRefs,
Change sourceChange)
Adds and removes entries from the statements collection to munge Wikibase
RDF exports into a more queryable form.
|
Munger |
removeSiteLinks()
Build a Munger that removes site links.
|
Munger |
singleLabelMode(Collection<String> languages)
Build a munger that will load only a single label per entity.
|
Munger |
singleLabelMode(String... languages)
Build a munger that will load only a single label per entity.
|
public Munger(WikibaseUris uris)
public Munger keepTypes(boolean keep)
keep - public Munger limitLabelLanguages(String... languages)
public Munger limitLabelLanguages(Collection<String> languages)
public Munger singleLabelMode(String... languages)
languages - a fallback chain of languages with the first one being
the most importantpublic Munger singleLabelMode(Collection<String> languages)
languages - a fallback chain of languages with the first one being
the most importantpublic Munger removeSiteLinks()
public void munge(String entityId, Collection<org.openrdf.model.Statement> statements, Collection<String> existingValues, Collection<String> existingRefs, Change sourceChange)
statements - statements to mungeexistingValues - Existing value statementsexistingRefs - Existing reference statementssourceChange - Change that originated the operationpublic void munge(String entityId, Collection<org.openrdf.model.Statement> statements, Collection<String> existingValues, Collection<String> existingRefs)
statements - statements to mungeexistingValues - Existing value statementsexistingRefs - Existing reference statementspublic void munge(String entityId, Collection<org.openrdf.model.Statement> statements)
statements - statements to mungeCopyright © 2016. All rights reserved.