You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jena.apache.org by Tobias Hammerschmidt <ha...@gmail.com> on 2016/03/23 22:54:46 UTC

Fwd: Re: URI splitting based on xml ncname

---------- Weitergeleitete Nachricht ----------
Von: "Tobias Hammerschmidt" <ha...@gmail.com>
Datum: 23.03.2016 22:47
Betreff: Re: URI splitting based on xml ncname
An: "Andy Seaborne" <an...@seaborne.org>
Cc:

Hi Andy,

thanks for your reply - looks like I've used the wrong mail account when
sending the question to the list so my fault. Regarding your answer I would
interpret the stackoverflow explanation so that there could be issues with
serialization in certain formats (rdf/xml) when the fragment is not a valid
NCName. However I would like to know whether there might be other code
locations in jena which are likekly to misbehave in case local name is null
(due to invalid NCName) for instance. Think this is not answered on
stackoverflow.

Best regards,
Tobias
Am 23.03.2016 22:34 schrieb "Andy Seaborne" <an...@seaborne.org>:

> Hi there,
>
> You don't appear to be subscribed to the users@jena.apache.org mailing
> list, or you sent a message before replying to the acknowledgement. Your
> email has ended up in the moderators inbox.  If you are not subscribed,
> you will not see replies to your question.
>
> Please could you subscribe by sending an email to
>
> users-subscribe@jena.apache.org
>
> then reply to the confirmation.
>
> After that, please could you re-send the message.
>
> You will then receive all replies that are sent to the list.
>
> More details:
>
> http://jena.apache.org/help_and_support/index.html
>
>     Andy
>
> Email: hammerschmidt.tobias@gmail.com
>
> PS The answer to your question in the the SO link you reference!
>
> On 23/03/16 21:10, Tobias Hammerschmidt wrote:
>
>> Hi all,
>>
>> as stated in
>> http://stackoverflow.com/questions/29263937/jenas-getlocalname-doesnt-return-numeric-localname-with-turtle
>> jena performs splitting of node
>> uris based on NCName. Now if the uri fragment is not a valid NCName only
>> the
>> longest valid NCName starting at the end of the fragment will be used as
>> the
>> local name. In the worst case no local name can be determined at all for
>> instance if the fragment consists only of digits because the NCName can't
>> start with a digit. Is there any important usage of a nodes local name and
>> namespace within jena which mandates usage of valid NCNames as fragments
>> only
>> or is it safe to use uri fragments which are not valid NCNames?
>>
>> Best regards,
>> Tobias
>>
>>