On 01/02/12 11:47, Nicolas Nobelis wrote:
Hello Andy,
Thanks a lot for this thorough explanation !
I didn't know the local name was supposed to be always legal for XML.
Because I thought that the local name was always the part of the URI
after the '#' (the fragment), my application was using heavily the
getLocalName() method.
Since I'm facing now odd behaviour due to individuals with encoded
spaces in the URI, I'll follow your advice and store the encoded name
anyway. Then I'll just simply write my own method to get the fragment
(non-namespace) part of the URI.
That's a good policy.
Thanks again for the explanation and for all the refs !
With RDF 1.1, an individual with a local name containing %20 or \: will
still be able to be written to rdf/xml ?
IIRC An individual is always written as a URI, or relative URI, in RDF/XML.
Classes (striped syntax) and properties can be qnames.
You won't get unwriteable individuals - it just may not look nice.
Andy