modelid = 1; $tripleOne->subject = 'my first subject'; $tripleOne->predicate = 'my first predicate'; $tripleOne->object = 'my first object'; $tripleOne->lg = 'en-en'; $tripleTwo = new Triple(); $tripleTwo->modelid = 1; $tripleTwo->subject = 'my second subject'; $tripleTwo->predicate = 'my second predicate'; $tripleTwo->object = 'my second object'; $tripleTwo->lg = 'fr-fr'; $collection = new TriplesCollection(new common_Object()); $collection->add($tripleOne); $collection->add($tripleTwo); return $collection; } }