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

org.wikidata.query.rdf.tool.wikibase.SearchResponse 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 java.util.List;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;

public class SearchResponse extends WikibaseResponse {

    private final List search;

    @JsonCreator
    public SearchResponse(
            @JsonProperty("error") Object error,
            @JsonProperty("search") List search) {
        super(error);
        this.search = search;
    }

    public List getSearch() {
        return search;
    }


    public static class SearchResult {
        private final String id;

        @JsonCreator
        public SearchResult(
                @JsonProperty("id") String id
        ) {
            this.id = id;
        }

        public String getId() {
            return id;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy