FaisalSarfraz 0 Newbie Poster

Hi all
I have a piece of program in which i am taking input from another jframe and then using that input i am trying to show results from RDF/XML file, now the issue is that i am trying to convert that input(which is obviouslyin string) to Property datatype of RDF Model in Jena API. here is the code

 bean bn = new bean();
 System.out.println(" bn.gettext()" +  bn.gettext());
 Property reqP = model.getProperty(bn.gettext());

in third line of this above code i have also tried
Property reqP = (Property) model.read(in, bn.gettext());

but i am not getting the desired results so please someone help me with this issue. I need it solve ASAP :(

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.