Class QAWarning

  • All Implemented Interfaces:
    Comparable<QAWarning>

    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.
    Author:
    Antonin Delpeuch
    • Method Detail

      • getAggregationId

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

        public QAWarning aggregate​(QAWarning other)
        Aggregates another QA warning of the same aggregation id.
        Parameters:
        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.
        Parameters:
        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.
        Parameters:
        facetable -
      • getType

        public String getType()
      • getBucketId

        public String getBucketId()
      • getCount

        public int getCount()
      • isFacetable

        public boolean isFacetable()