org.wikidata.query.rdf.tool.wikibase.EditRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tools Show documentation
Show all versions of tools Show documentation
Tools to sync Wikibase to RDF stores. Also contains overall integration tests that rely on everything else.
The newest version!
package org.wikidata.query.rdf.tool.wikibase;
import static com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL;
import java.util.Map;
import javax.annotation.Nullable;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
public class EditRequest {
@JsonProperty @Nullable @JsonInclude(NON_NULL)
private final String datatype;
@JsonProperty
private final Map labels;
public EditRequest(String datatype, Map labels) {
this.datatype = datatype;
this.labels = labels;
}
public String getDatatype() {
return datatype;
}
public Map getLabels() {
return labels;
}
public static class Label {
@JsonProperty
private final String language;
@JsonProperty
private final String value;
public Label(String language, String value) {
this.language = language;
this.value = value;
}
public String getLanguage() {
return language;
}
public String getValue() {
return value;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy