Thanks a lot ajs6f I used Literal::getLexicalForm and it works.
Regards On Sun, Apr 15, 2018 at 6:44 PM, ajs6f <aj...@apache.org> wrote: > Please show your code and some data. It's not clear from what you wrote > below what your data is or how you are manipulating it. > > https://stackoverflow.com/help/mcve > > Both the API type Literal and the SPI type Node have methods for > retrieving the lexical form of a literal, Literal::getLexicalForm and > Node::getLiteralLexicalForm. > > > ajs6f > > > On Apr 15, 2018, at 11:33 AM, javed khan <javedbtk...@gmail.com> wrote: > > > > I want to extract two string values but without datatype. My result need > to > > be > > > > S2 ML Model: SVM > > > > Currently I am getting like below output. > > > > S2^^http://www.w3.org/2001/XMLSchema#string ML Model: SVM^^ > > http://www.w3.org/2001/XMLSchema#string > https://stackoverflow.com/help/mcve