You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jena.apache.org by Brad Moran <bm...@pinnacle21.net> on 2013/06/18 23:05:21 UTC
Setting XML Namespace
Hi I am working with apache jena trying to write RDF from CSV files. I am
wondering is there any way to set the XML Namespace? I want it to look
similar to below. I am familiar with the .setNsPrefix method, but it does
not set the XML namespace in the desired format below. Thanks
xmlns="http://...."
--Brad
Re: Setting XML Namespace
Posted by Brad Moran <bm...@pinnacle21.net>.
Yes! Thanks that was exactly what I was trying to do. Next time i will try to be more precise.
--Brad
On Jun 18, 2013, at 5:39 PM, Rob Vesse <rv...@yarcdata.com> wrote:
> Brad
>
> I don't understand your question entirely, you haven't shown a complete
> example of what output you get and what you want to get - details matter!
>
> Using an empty string as the first argument will set the default namespace
> if that is what you are trying to do?
>
> Rob
>
>
>
> On 6/18/13 2:05 PM, "Brad Moran" <bm...@pinnacle21.net> wrote:
>
>> Hi I am working with apache jena trying to write RDF from CSV files. I am
>> wondering is there any way to set the XML Namespace? I want it to look
>> similar to below. I am familiar with the .setNsPrefix method, but it does
>> not set the XML namespace in the desired format below. Thanks
>>
>> xmlns="http://...."
>>
>> --Brad
>
Re: Setting XML Namespace
Posted by Rob Vesse <rv...@yarcdata.com>.
Brad
I don't understand your question entirely, you haven't shown a complete
example of what output you get and what you want to get - details matter!
Using an empty string as the first argument will set the default namespace
if that is what you are trying to do?
Rob
On 6/18/13 2:05 PM, "Brad Moran" <bm...@pinnacle21.net> wrote:
>Hi I am working with apache jena trying to write RDF from CSV files. I am
>wondering is there any way to set the XML Namespace? I want it to look
>similar to below. I am familiar with the .setNsPrefix method, but it does
>not set the XML namespace in the desired format below. Thanks
>
>xmlns="http://...."
>
>--Brad