Thanks Andy, I'd been a bit thick and not twigged that I could call Model.setNsPrefix multiple times. Dho!
Matthew On 10 February 2014 20:58, Andy Seaborne <[email protected]> wrote: > On 10/02/14 17:38, Matthew Pocock wrote: > >> Thanks Andy - I will delve into those. >> >> The other thing, and I'm sure I'm just overlooking how to do this, is that >> I have predicates from several namespaces and these have standardised >> namespace prefixes. At the moment they are coming out as J.0 and J.1 and >> so >> on. How do I tell the writer about multiple prefix/namespace maps? >> >> Matthew >> > > Hi Matthew, > > The prefix named come from the Model being written (which is a > PrefixMapping). Have a check as to whether the prefixes are defined for > the model being written, not some wrapped encapsulated model. > > Are you explicitly creating a writer? > > A complete, minimal example would be good, as well as knowing the Jena > version number. > > Andy > > -- Dr Matthew Pocock Turing ate my hamster LTD mailto: [email protected] Integrative Bioinformatics Group, School of Computing Science, Newcastle University mailto: [email protected] gchat: [email protected] msn: [email protected] irc.freenode.net: drdozer skype: matthew.pocock tel: (0191) 2566550 mob: +447535664143
