[
https://issues.apache.org/jira/browse/JENA-1253?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15613180#comment-15613180
]
Graham Triggs commented on JENA-1253:
-------------------------------------
Looking at it, I'm happy that ResourceFactory.createProperty() is currently
doing the correct thing in validating the URI that is passed to it.
However, that does mean that the Model / OntModel createProperty is allowing an
invalid URI to be used, and potentially means that an invalid property could be
written to the triple store.
> 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)