From 731692df678e095023e1f9b883559f7a30d3bd3b Mon Sep 17 00:00:00 2001 From: Ekta Mishra Date: Mon, 6 Jul 2020 10:33:39 +0530 Subject: [PATCH] Update MultivalueScrutinizer class (#2885) Removed inner class as for constraint status and exceptions we now have Constraint class. --- .../qa/scrutinizers/MultiValueScrutinizer.java | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/extensions/wikidata/src/org/openrefine/wikidata/qa/scrutinizers/MultiValueScrutinizer.java b/extensions/wikidata/src/org/openrefine/wikidata/qa/scrutinizers/MultiValueScrutinizer.java index 74296e773..2cc512c54 100644 --- a/extensions/wikidata/src/org/openrefine/wikidata/qa/scrutinizers/MultiValueScrutinizer.java +++ b/extensions/wikidata/src/org/openrefine/wikidata/qa/scrutinizers/MultiValueScrutinizer.java @@ -17,22 +17,6 @@ public class MultiValueScrutinizer extends EditScrutinizer { public static final String new_type = "multi-valued-property-is-required-for-new-item"; public static final String existing_type = "multi-valued-property-is-required-for-existing-item"; public static String MULTI_VALUE_CONSTRAINT_QID = "Q21510857"; - public static String MULTI_VALUE_CONSTRAINT_STATUS = "P2316"; - - class MultivalueConstraint { - Value constraintStatus; - - MultivalueConstraint(Statement statement) { - List snakGroupList = statement.getClaim().getQualifiers(); - for(SnakGroup group : snakGroupList) { - for (Snak snak : group.getSnaks()) { - if (group.getProperty().getId().equals(MULTI_VALUE_CONSTRAINT_STATUS)){ - constraintStatus = snak.getValue(); - } - } - } - } - } @Override public void scrutinize(ItemUpdate update) { @@ -44,8 +28,6 @@ public class MultiValueScrutinizer extends EditScrutinizer { if (propertyCount.containsKey(pid)) { propertyCount.put(pid, propertyCount.get(pid) + 1); } else if (!statementList.isEmpty()) { - Statement constraintStatement = statementList.get(0); - MultivalueConstraint constraint = new MultivalueConstraint(constraintStatement); propertyCount.put(pid, 1); } }