fromRDF seems good as per the javascript version but not all tests pass yet
all fromRDF tests passed