All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.wikidata.query.rdf.tool.wikibase.EditResponse Maven / Gradle / Ivy

Go to download

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