triplestore argument generator working for grounded goals