That’s a WC3 Standard. All RDF lines should explicitly be set with their type. This helps the parser to identify a badly formed RDF. Also, if the DB is new and there’s no Schema on it, the parser would infer that information and create the schema.
It is not mandatory, but it is a recommended practice.