You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "Andy Seaborne (Jira)" <ji...@apache.org> on 2021/08/06 08:56:00 UTC

[jira] [Updated] (JENA-2140) Resource.getLocalName does not return full localName

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

Andy Seaborne updated JENA-2140:
--------------------------------
    Priority: Major  (was: Critical)

> Resource.getLocalName does not return full localName
> ----------------------------------------------------
>
>                 Key: JENA-2140
>                 URL: https://issues.apache.org/jira/browse/JENA-2140
>             Project: Apache Jena
>          Issue Type: Bug
>          Components: RDF API
>    Affects Versions: Jena 4.1.0
>            Reporter: Jarne Kerkaert
>            Priority: Major
>
> Resource.getLocalName() sometimes cuts off part of the localName. I found it happens specifically when the localName is a UUID:
>  
>  
> {code:java}
> @Test
>  void givenResourceWithUUIDLocalName_whenGetLocalName_shouldReturnLocalName() {
>  Resource resource = ResourceFactory.createResource(
>  "http://www.example.com/rdf/#1c4ef388-7398-455c-b2b9-5d9bb20ac566"
>  );
> assertThat(resource.getLocalName()).isEqualTo("1c4ef388-7398-455c-b2b9-5d9bb20ac566");
>  }
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)