Jimmy,

Not, I'm not confused. :-)

I just thought that if the "&" were URLencoded it wouldn't need to be XML escaped, because as you say it would then read "%26", and so wouldn't cause problems to the XML parser. And I thought URLencoding should happen here. To quote a random Web source [1]:

"...Only alphanumerics [0-9a-zA-Z], the special characters "$-_.+!*'()," *[not including the quotes - ed]*, and reserved characters used for their reserved purposes may be used unencoded within a URL."

This seems to be quite a common error: I have tripped over three or four dbpedia URLs containing ampersands in the course of the morning. Unfortunately they b****r up any resource which mentions them, as well as their "home page". Thus I can't access the resource describing lions because it contains a reference to:

http://dbpedia.org/resource/List_of_Dungeons_&_Dragons_3.5_edition_monsters (!)

Richard

[1] http://www.blooberry.com/indexdot/html/topics/urlencoding.htm

On 21/02/2012 13:26, Jimmy O'Regan wrote:
On 21 February 2012 10:41, Richard Light<[email protected]>  wrote:
I've no idea how widespread this is, but I just failed to get a response for
"Natural_history" because the RDF/XML contains this URL:

http://dbpedia.org/resource/Brevard_Museum_of_History_&_Natural_Science

and is therefore not well-formed.  If resource URLs are to contain
ampersands, they surely need to be URLencoded?  (Better still not to have
them there in the first place?)
I think you're confusing URL encoding (%26) with XML escaping (&amp;),
but that should be XML escaped, certainly.


--
*Richard Light*
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Dbpedia-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion

Reply via email to