move check for trailing slash to bio2rdfapi.