Class QualifierCompatibilityScrutinizer


  • public class QualifierCompatibilityScrutinizer
    extends StatementScrutinizer
    A scrutinizer that checks the compatibility of the qualifiers and the property of a statement, and looks for mandatory qualifiers.
    Author:
    Antonin Delpeuch
    • Field Detail

      • allowedQualifiersConstraintQid

        public String allowedQualifiersConstraintQid
      • allowedQualifiersConstraintPid

        public String allowedQualifiersConstraintPid
      • mandatoryQualifiersConstraintQid

        public String mandatoryQualifiersConstraintQid
      • mandatoryQualifiersConstraintPid

        public String mandatoryQualifiersConstraintPid
    • Constructor Detail

      • QualifierCompatibilityScrutinizer

        public QualifierCompatibilityScrutinizer()
    • Method Detail

      • qualifierIsAllowed

        protected boolean qualifierIsAllowed​(org.wikidata.wdtk.datamodel.interfaces.PropertyIdValue statementProperty,
                                             org.wikidata.wdtk.datamodel.interfaces.PropertyIdValue qualifierProperty)
      • mandatoryQualifiers

        protected Set<org.wikidata.wdtk.datamodel.interfaces.PropertyIdValue> mandatoryQualifiers​(org.wikidata.wdtk.datamodel.interfaces.PropertyIdValue statementProperty)
      • scrutinize

        public void scrutinize​(org.wikidata.wdtk.datamodel.interfaces.Statement statement,
                               org.wikidata.wdtk.datamodel.interfaces.EntityIdValue entityId,
                               boolean added)
        Description copied from class: StatementScrutinizer
        The method that should be overridden by subclasses, implementing the checks on one statement
        Specified by:
        scrutinize in class StatementScrutinizer
        Parameters:
        statement - : the statement to scrutinize
        entityId - : the id of the entity on which this statement is made or removed
        added - : whether this statement was added or deleted