On 04/05/13 07:35, illusionz wrote:
Hi,
I have string "
http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/vocabulary/deliveryDays.3^^
http://www.w3.org/2001/XMLSchema#integer" and I want to create an RDFNode
from this so that all the information like its datatype etc is preserved.
Please suggest a way by which I could create a Node as literal and preserve
all meta info.
Model.createTypedLiteral(String lex, RDFDatatype dtype)
and there is a constant for the RDFDatatype:
XSDDatatype.XSDinteger
There is nothing to stop you creating an illformed literal (in basic RDF
it's allowed) but
http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/vocabulary/deliveryDays.3
is not a valid lexical form for an XSD integer so you may get into
difficulties later. Did you mean "3"^^xsd:integer?
Andy
Regards,
Depanker Sharma