Jena SDB IRI validation

I have got several strange IRIs that I want to insert into Jena SDB, but I got some error messages:

  1. the error message is: Code: 30/ILLEGAL_PERCENT_ENCODING in FRAGMENT: The host component a percent occurred without two following hexadecimal digits.
  2. the error message is: Code: 0/ILLEGAL_CHARACTER in FRAGMENT: The character violates the grammar rules for URIs/IRIs.
  3."Fren the error message is: Code: 4/UNWISE_CHARACTER in FRAGMENT: The character matches no grammar rules of URIs/IRIs. These characters are permitted in RDF URI References, XML system identifiers, and XML Schema anyURIs.

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.

Need Your Help

Upgrading Liferay 5.2 to 6.0 checklist

liferay upgrade liferay-6

I need to make an upgrade of Liferay, as mentioned above(5.2->6.0) So far, as my research (1,2,3) shows I need to:

XML Digital Signature Java

java xml digital-signature sha256

i need to digital sign my XML messages in JAVA:

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.