Package org.openrefine.wikidata.qa
Class ConstraintFetcher
java.lang.Object
org.openrefine.wikidata.qa.ConstraintFetcher
This class provides an abstraction over the way constraint definitions are
stored in a Wikibase instance.
- Author:
- Antonin Delpeuch
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList<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
-
Constructor Details
-
ConstraintFetcher
-
-
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 forid- the type of the constraints- Returns:
- the list of matching constraint statements
-