@@ -0,0 +1,2487 @@
+package main.java.org.wikidata.analyzer.Processor;%0A%0Aimport org.json.simple.JSONArray;%0Aimport org.json.simple.JSONObject;%0Aimport org.wikidata.wdtk.datamodel.implementation.PropertyIdValueImpl;%0Aimport org.wikidata.wdtk.datamodel.interfaces.*;%0A%0Aimport java.io.*;%0Aimport java.util.*;%0A%0A/**%0A * BadDateProcessor for wikidata-analysis%0A *%0A * @author Addshore%0A */%0Apublic class BadDateProcessor implements EntityDocumentProcessor %7B%0A%0A    private BufferedWriter writer1;%0A    private BufferedWriter writer2;%0A%0A    private String gregorianCalendar = %22http://www.wikidata.org/entity/Q1985727%22;%0A    private String julianCalendar = %22http://www.wikidata.org/entity/Q1985786%22;%0A%0A    public BadDateProcessor( BufferedWriter writer1, BufferedWriter writer2 ) %7B%0A        this.writer1 = writer1;%0A        this.writer2 = writer2;%0A    %7D%0A%0A    @Override%0A    public void processItemDocument(ItemDocument item) %7B%0A        for (Iterator%3CStatement%3E statements = item.getAllStatements(); statements.hasNext(); ) %7B%0A            Statement statement = statements.next();%0A            Snak snak = statement.getClaim().getMainSnak();%0A            if (snak instanceof ValueSnak) %7B%0A                Value value = ((ValueSnak) snak).getValue();%0A                if (value instanceof TimeValue) %7B%0A                    TimeValue timeValue = (TimeValue) value;%0A%0A                    //List1 - marked as Julian and are more precise than year%0A                    if(timeValue.getPreferredCalendarModel().equals( this.julianCalendar )%0A                            && timeValue.getPrecision() %3E 9) %7B%0A                        try %7B%0A                            this.writer1.write(statement.getStatementId() + %22%5Cn%22);%0A                        %7D catch (IOException e) %7B%0A                            System.out.println(%22Failed to write line to writer1%22);%0A                        %7D%0A                    %7D%0A%0A                    //List2 - marked as gregorian, before 1584%0A                    if(timeValue.getPreferredCalendarModel().equals( this.gregorianCalendar )%0A                            && timeValue.getYear() %3C 1584) %7B%0A                        try %7B%0A                            this.writer2.write(statement.getStatementId() + %22%5Cn%22);%0A                        %7D catch (IOException e) %7B%0A                            System.out.println(%22Failed to write line to writer2%22);%0A                        %7D%0A                    %7D%0A%0A                %7D%0A            %7D%0A        %7D%0A    %7D%0A%0A    @Override%0A    public void processPropertyDocument(PropertyDocument property) %7B%0A    %7D%0A%0A%7D

Add DatDateProcessor