@Override
    public Collection<StatementOrBundle> convert(String pgmfile, 
                                                 String activity, 
                                                 String giffile, String giflabel,
                                                 String workflow, String agent)  {
        
        Collection<StatementOrBundle> ll=new LinkedList<StatementOrBundle>();

        Activity a13 = pFactory.newActivity(pc(activity));
        pFactory.addType(a13, pFactory.newQualifiedName(PRIM_NS, CONVERT,    PRIM_PREFIX), name.PROV_QUALIFIED_NAME);
        
        Entity e25 = pFactory.newEntity(pc(pgmfile));

        Entity e28 = newFile(pFactory, giffile, giflabel);
        
        ll.add(newUsed(a13, ROLE_IN, e25));
        
        WasGeneratedBy wg18 = newWasGeneratedBy(e28, ROLE_OUT, a13);
        //wg18.setTime(pFactory.newTimeNow());
        
        ll.add(newWasDerivedFrom(e28, e25));
        
        ll.add(pFactory.newAgent(pc(agent)));
        ll.add(pFactory.newActivity(pc(workflow)));
        ll.add(pFactory.newWasAssociatedWith(null,pc(workflow), pc(agent)));
        ll.add(pFactory.newWasStartedBy(null, pc(activity), null, pc(workflow)));
        
        ll.addAll(Arrays.asList(a13,e25,e28,wg18));
        return ll;
        
    }
@ Override public Collection < StatementOrBundle > convert ( String pgmfile , String activity , String giffile , String giflabel , String workflow , String agent ) { Collection < StatementOrBundle > ll = new LinkedList < StatementOrBundle > ( ) ; Activity a13 = pFactory . newActivity ( pc ( activity ) ) ; pFactory . addType ( a13 , pFactory . newQualifiedName ( PRIM_NS , CONVERT , PRIM_PREFIX ) , name . PROV_QUALIFIED_NAME ) ; Entity e25 = pFactory . newEntity ( pc ( pgmfile ) ) ; Entity e28 = newFile ( pFactory , giffile , giflabel ) ; ll . add ( newUsed ( a13 , ROLE_IN , e25 ) ) ; WasGeneratedBy wg18 = newWasGeneratedBy ( e28 , ROLE_OUT , a13 ) ; ll . add ( newWasDerivedFrom ( e28 , e25 ) ) ; ll . add ( pFactory . newAgent ( pc ( agent ) ) ) ; ll . add ( pFactory . newActivity ( pc ( workflow ) ) ) ; ll . add ( pFactory . newWasAssociatedWith ( null , pc ( workflow ) , pc ( agent ) ) ) ; ll . add ( pFactory . newWasStartedBy ( null , pc ( activity ) , null , pc ( workflow ) ) ) ; ll . addAll ( Arrays . asList ( a13 , e25 , e28 , wg18 ) ) ; return ll ; }
/* (non-Javadoc)
@see org.openprovenance.prov.tutorial.tutorial5.Challenge#convert(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)