public final class Munger extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Munger.BadSubjectException
Thrown when the munged triples contain a subject we don't recognize.
|
static class |
Munger.Builder |
static interface |
Munger.FormatHandler
Interface to handle format transformations.
|
| Modifier and Type | Method and Description |
|---|---|
static Munger.Builder |
builder(UrisScheme uris) |
Change |
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.
|
Change |
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.
|
Change |
mungeWithValues(String entityId,
Collection<org.openrdf.model.Statement> statements,
com.google.common.collect.Multimap<String,String> repoValues,
com.google.common.collect.Multimap<String,String> repoRefs,
Collection<String> valuesContainer,
Collection<String> refsContainer,
Change sourceChange)
Adds and removes entries from the statements collection to munge Wikibase
RDF exports into a more queryable form.
|
void |
setFormatVersion(String version)
Set format version.
|
public void setFormatVersion(String version)
public Change 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 Change mungeWithValues(String entityId, Collection<org.openrdf.model.Statement> statements, com.google.common.collect.Multimap<String,String> repoValues, com.google.common.collect.Multimap<String,String> repoRefs, Collection<String> valuesContainer, Collection<String> refsContainer, Change sourceChange)
statements - statements to mungerepoValues - multimap of all value nodes, keyed by entity IDrepoRefs - multimap of all reference nodes, keyed by entity IDvaluesContainer - Value nodes containerrefsContainer - Reference nodes containersourceChange - Change that originated the operationpublic Change munge(String entityId, Collection<org.openrdf.model.Statement> statements)
statements - statements to mungepublic static Munger.Builder builder(UrisScheme uris)
Copyright © 2019. All rights reserved.