The Jena parser doesn't know about the custom aggregate functions.
That being said, there is the possibility to register custom aggregate functions via ARQ, e.g.
/* Registration */
AggregateRegistry.register(aggUri, myAccumulatorFactory, NodeConst.nodeMinusOne);
shown in this example code
I don't know whether this already exists for Stardog somewhere. The devs should know it better indeed.