added further keyword tests
refactored file type extraction
only moved code
make the ontohub example in #1262 work