fix problem for attr
some issue of using attribute.
if using char to load data, then type is a char '1'. but in the sparql engine, the type is a int 1. it will tigger the assert.
Therefore, it need to change to use int to load data, then the value of type is a int 1.