Reference: https://github.com/dajobe/librdf/commit/45cafb31 Signed-off-by: caofei <caofei@xfusion.com>