getTermType function

Return the redland node type for the specified RDF term in a statement