package org.zoneproject.extractor.plugin.wikimeta;

import java.util.ArrayList;
import org.zoneproject.extractor.utils.Database;
import org.zoneproject.extractor.utils.Item;
import org.zoneproject.extractor.utils.Prop;

/**
 * Hello world!
 *
 */
public class App 
{
    public static String PLUGIN_URI = "http://www.zone-project.org/plugins/WikiMeta";
    public static void main(String[] args) {

        Item[] items = Database.getItemsNotAnotatedForOnePlugin(PLUGIN_URI);
        System.out.println("WikiMeta has "+items.length+" items to annotate");
        for(Item item : items){
            System.out.println("Add ExtractArticlesContent for item: "+item);
            
            ArrayList<Prop> content= WikiMetaRequest.getProperties(item.toString());
            Database.addAnnotations(item.getUri(), content);
            
            Database.addAnnotation(item.getUri(), new Prop(PLUGIN_URI,"true"));

        }
    }
}

@@ -223,29 +223,68 @@
 *%0A *
- Hello world!%0A *
+%0A * @author Desclaux Christophe %3Cchristophe@zouig.org%3E
 %0A */%0A
+%0A
 publ
@@ -299,16 +299,16 @@
  App %0A%7B%0A
-
     publ
@@ -385,16 +385,101 @@
 iMeta%22;%0A
+    %0A    public App()%7B%0A        String %5B%5D tmp = %7B%7D;%0A        App.main(tmp);%0A    %7D%0A    %0A
     publ

fix bug in WikiMeta, was not running in maven