bug fixes, checking if graph value is a valid URI