On 06/02/12 23:16, Ian Dickinson wrote:
On 06/02/12 17:31, Dave Reynolds wrote:
Hi Dick,
On 06/02/12 16:49, Dick Murray wrote:
Why's the checkLocalName() called in some constructors but not others..?
I can't authoritatively answer that, it does seem inconsistent and may
be just historic anomaly.
I believe that the original RDF spec states that a property has to be
decomposable into a namespace and name, because otherwise you can't have
an XML element representing the predicate in the striped XML syntax. To
within the limits of judicious post-hoc rationalisation and my failing
memory, Jena Properties which are constructed from strings therefore
check this constraint, while properties which are constructed from
existing nodes are assumed to be compliant.
Yes, I was originally going to say something of the sort. However, in
Dick's case he doesn't himself creates a Node, he passes a string to
ModelCom.createProperty and it creates the Node and then converts it to
a Property. So it is the ModelCom implementation that should have done
the checking before it created the Node in the first place - at least if
it was to be consistent with ResourceFactory.createProperty.
Dave