I need to represent sentences in RDF format.
In other words \"John likes coke\" would be automatically represented as:
Subject : John Predicate : L
One option is to use output from Link Parser, available under a GPL-compatible license. You can define a translation layer between these outputs and your RDF nodes as needed.
Check out this demo on your "John likes coke" example!