You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jena.apache.org by javed khan <ja...@gmail.com> on 2018/04/15 15:33:46 UTC
How to show String value without Datatype
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
Re: How to show String value without Datatype
Posted by javed khan <ja...@gmail.com>.
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 <ja...@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
Re: How to show String value without Datatype
Posted by ajs6f <aj...@apache.org>.
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 <ja...@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