org.wikidata.query.rdf.tool.wikibase.EditResponse 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 com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
public class EditResponse extends WikibaseResponse {
private final Entity entity;
@JsonCreator
public EditResponse(
@JsonProperty("error") Object error,
@JsonProperty("entity") Entity entity) {
super(error);
this.entity = entity;
}
public Entity getEntity() {
return entity;
}
public static class Entity {
private final String id;
@JsonCreator
public Entity(@JsonProperty("id") String id) {
this.id = id;
}
public String getId() {
return id;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy