Class QAWarning

  • All Implemented Interfaces:

    public class QAWarning
    extends Object
    implements Comparable<QAWarning>
    A class to represent a QA warning emitted by the Wikidata schema This could probably be reused at a broader scale, for instance for Data Package validation.
    Antonin Delpeuch
    • Method Detail

      • getAggregationId

        public String getAggregationId()
        the full key for aggregation of QA warnings
      • aggregate

        public QAWarning aggregate​(QAWarning other)
        Aggregates another QA warning of the same aggregation id.
        other -
      • setProperty

        public void setProperty​(String key,
                                Object value)
        Sets a property of the QA warning, to be used by the front-end for display.
        key - : the name of the property
        value - should be Jackson-serializable
      • setFacetable

        public void setFacetable​(boolean facetable)
        Sets whether we should offer the user the possibility to create a facet which locates the rows generating this issue in the grid.
        facetable -
      • getType

        public String getType()
      • getBucketId

        public String getBucketId()
      • getCount

        public int getCount()
      • isFacetable

        public boolean isFacetable()