On 16/04/14 17:38, Ewa Szwed wrote:
Can someone explain to me what is wrong with the following triple:
<http://rdf.freebase.com/ns/m.07lkb_t> <
http://rdf.freebase.com/ns/common.topic.topic_equivalent_webpage> <
http://thetvdb.com/?tab=episode&seriesid=%7B/tv/tv_series_episode/season.series[/authority/thetvdb/series]%7D&seasonid=%7B/tv/tv_series_episode/season[/authority/thetvdb/season]%7D&id=302133
.
I am getting the following Jena TDB tdbupdate error:
Transaction not commited or aborted: Transaction: 1 : Mode=WRITE :
State=ACTIVE
com.hp.hpl.jena.query.QueryParseException: Line 788801, column 113:
org.apache.jena.iri.impl.IRIImplException:
<
http://thetvdb.com/?tab=episode&seriesid=%7B/tv/tv_series_episode/season.series[/authority/thetvdb/series]%7D&seasonid=%7B/tv/tv_series_episode/season[/authority/thetvdb/season]%7D&id=302133>
Code: 0/ILLEGAL_CHARACTER in QUERY: The character violates the grammar
rules for URIs/IRIs.
at
com.hp.hpl.jena.sparql.lang.ParserBase.throwParseException(ParserBase.java:661)
Thanks in advance,
Ewa
[ and ] are legal in URIs only in the host part as a IPv6 address and
nowhere else.
RFC 3986:
"""
A host identified by an Internet Protocol literal address, version 6
[RFC3513] or later, is distinguished by enclosing the IP literal
within square brackets ("[" and "]"). This is the only place where
square bracket characters are allowed in the URI syntax.
"""
The general segment production in the grammar of URIs uses "pchar" does
not include gen-delims which is where [ and ] are.
It is important to check data first as a matter of policy because IRIs
are so picky - run it through "riot --validate" is faster than loading.
Andy