The log suggests that the server ran out of memory while parsing the SPARQL result set. How many results do you expect this query to return? You may bump Java heap in $STARDOG_SERVER_JAVA_ARGS (using -Xmx, then restart the server) or use a more selective query.
All that assumes the server isn't under other load which may have consumed memory too.