[ 
https://issues.apache.org/jira/browse/JENA-603?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andy Seaborne resolved JENA-603.
--------------------------------

    Resolution: Not A Problem
      Assignee: Andy Seaborne

> Literal.getNamespace() brings incorrect results
> -----------------------------------------------
>
>                 Key: JENA-603
>                 URL: https://issues.apache.org/jira/browse/JENA-603
>             Project: Apache Jena
>          Issue Type: Bug
>    Affects Versions: Jena 2.11.0
>            Reporter: Yordan Grancharov
>            Assignee: Andy Seaborne
>            Priority: Minor
>
> Greetings, I'm getting incorrect results when trying to get the namespace out 
> of a resource's IRI. For example this code:
> {code}
> Resource r =  
> ResourceFactory.createProperty("http://somenamespace.com#34abacomaosidm33naosdna";);
> String ns = r.getNameSpace();
> System.out.println(ns);
> {code}
> will output "http://somenamespace.com#34"; instead of 
> "http://somenamespace.com#";
> That's because the local name starts with a number. Is this the expected 
> behavior? If yes, please excuse me. If not, I can assist with some code.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to