Class ConstraintFetcher

java.lang.Object
org.openrefine.wikidata.qa.ConstraintFetcher

public class ConstraintFetcher extends Object
This class provides an abstraction over the way constraint definitions are stored in a Wikibase instance.
Author:
Antonin Delpeuch
  • Constructor Details

    • ConstraintFetcher

      public ConstraintFetcher(EntityCache cache, String wikibaseConstraintPid)
  • Method Details

    • getConstraintsByType

      public List<org.wikidata.wdtk.datamodel.interfaces.Statement> getConstraintsByType(org.wikidata.wdtk.datamodel.interfaces.PropertyIdValue pid, String id)
      Gets the list of constraints of a particular type for a property
      Parameters:
      pid - the property to retrieve the constraints for
      id - the type of the constraints
      Returns:
      the list of matching constraint statements