Package org.openrefine.wikibase.qa
Class ConstraintFetcher
- java.lang.Object
-
- org.openrefine.wikibase.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 Summary
Constructors Constructor Description ConstraintFetcher(EntityCache cache, String wikibaseConstraintPid)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
-
-
-
Constructor Detail
-
ConstraintFetcher
public ConstraintFetcher(EntityCache cache, String wikibaseConstraintPid)
-
-
Method Detail
-
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
-
-