I have got several strange IRIs that I want to insert into Jena SDB, but I got some error messages:
The string 10-12%, NDZ#2 and _"Fren are extracted from plain text document and I have to attach it directly at the back of the IRIs. So my question is: are they valid IRIs? If not, considering I need to attach plain text at the back of IRIs, how can I convert them to valid IRIs?
1 is wrong because it ends in % -- % is for hex encoding so it must be %xx
Encode the % -- use %25
2 is wrong because it has two fragments. USe %23 is you mean # as a charcater, not as a fragment
3 has " in it. Encode that.
Spaces are a bad idea as well. Use %20.