[ 
https://issues.apache.org/jira/browse/JENA-1253?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15615533#comment-15615533
 ] 

Andy Seaborne commented on JENA-1253:
-------------------------------------

Hi - do you have a concrete test case to illustrate this?

{{http://www.eionet.europa.eu/gemet/concept/148}} is a valid property URI in 
RDF but it is not writable in RDF/XML where properties are always written as 
qnames and "/148" can't be turned into a qname.

In Turtle etc it is fine.

My preference is to remove the test in ResourceFactory.createProperty(). 
RDF/XML is not so central to exchange of RDF anymore.

(I don't know why it is different between 2.11 and 3.1 but that is a 
not-significant jump.)

> ResourceFactory.createProperty fails with some URLs
> ---------------------------------------------------
>
>                 Key: JENA-1253
>                 URL: https://issues.apache.org/jira/browse/JENA-1253
>             Project: Apache Jena
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: Jena 3.1.0
>            Reporter: Graham Triggs
>
> I've recently updated a project that I work on from Jena 2.11 to 3.1.
> A section of code that checks to see if a URI has been used anywhere in the 
> model includes a call to ResourceFactory.createProperty(String).
> This never caused a problem in 2.11. However, with 3.1, it now fails with an 
> InvalidPropertyURIException for the following URI:
> "http://www.eionet.europa.eu/gemet/concept/148";
> The behaviour is inconsistent with Model / OntModel createProperty(String), 
> which allows the URI to be used without issue.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to