Hi for mapping raw text to an ontology, do you mean the entities from text, to concepts and classes defined into the ontology?
If so, there are different tools for NER: there was stanbol (if I'm not wrong is not active anymore, but it supported RDF as well), there is spotlight, and for example CoreNLP...
If you mean something different, for example including the "meaning" of the phrase in text, I think the problem not only involves much more NLP, but also the need to understand what knowledge are you trying to capture, specifically: there could be different levels of abstraction for different ontologies, using both lexical or entity-based representation...
what do you need this for?