daniel added a comment.

Confirmed: the Turtle representation of Q815674 contains an un-escaped "\a", as can be seen at https://www.wikidata.org/entity/Q815674.ttl. It is not the label "\a" that causes the problem, this is correctly escaped to "\\a". The problem is caused by the statement value for P487 (Unicode Character) which contains a literal U+0007, which gets escaped to "\a". The escape sequence is valid for U+0007 in many languages, but apparently not in Turtle. In Turtle, U+0007 needs to be written as "\u0007".

Relevant Turtle snippet:

        wd:Q815674 a wikibase:Item ;
        .....
	skos:altLabel "Caractère D'appel"@fr,
		"Caractere d'appel"@fr,
		"Bell character"@fr,
		"␇"@de,
		"\\a"@de,                    <---------- VALID
		"BEL"@de;
	wdt:P31 wd:Q617945 ;
	wdt:P487 "\a" ;                      <---------- INVALID

A quick test with N3Quoter::escapeLiteral shows that indeed, it turns "\x07" into '\a' instead of '\u0007'.


TASK DETAIL
https://phabricator.wikimedia.org/T145754

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: daniel
Cc: Smalyshev, daniel, Aklapper, D063520, D3r1ck01, Izno, Wikidata-bugs, aude, Mbch331
_______________________________________________
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to