OK Richard, my problem is that the application I'm using to consume the RDF
does not especify the format at the header of the request, so it gets an
HTML file. I wonder if its possible to change the default in D2R to be
RDF/XML instead of HTML, or maybe its more reasonable to modify the
application that is reading the RDF. I dont know wich is the elegant way to
do this, I think in both cases I would have to modify the source code and
thats not the solution I would prefer.
Thanks for your help!
Best regards, Danilo
2011/11/4 Richard Cyganiak <[email protected]>
> I'm not sure what you mean Danilo. The default (when you don't specify an
> accept header) is HTML.
>
> Best,
> Richard
>
>
> On 4 Nov 2011, at 12:34, Danilo da Rosa wrote:
>
> > OK, Thanks! I used the HTTP header "Accept: application/rdf+xml" and it
> works perfect. It would also be useful if I could get the default format to
> be RDF/XML. Do you know if there is any way to change it?
> > Thanks, Danilo
> >
> >
> > 2011/11/4 Richard Cyganiak <[email protected]>
> > It already supports both RDF/XML and N3. It selects the format based on
> content negotiation [1].
> >
> > Best,
> > Richard
> >
> > [1] http://en.wikipedia.org/wiki/Content_negotiation
> >
> >
> >
> > On 4 Nov 2011, at 02:14, Danilo da Rosa wrote:
> >
> > > Hello, I would like to configure the D2R Server to publish in standard
> RDF/XML instead of N3 which seems to be the default format. Is there any
> way to do this?
> > > Thanks in advance, Danilo
> > >
> ------------------------------------------------------------------------------
> > > RSA(R) Conference 2012
> > > Save $700 by Nov 18
> > > Register now
> > >
> http://p.sf.net/sfu/rsa-sfdev2dev1_______________________________________________
> > > d2rq-map-devel mailing list
> > > [email protected]
> > > https://lists.sourceforge.net/lists/listinfo/d2rq-map-devel
> >
> >
> >
> ------------------------------------------------------------------------------
> > RSA(R) Conference 2012
> > Save $700 by Nov 18
> > Register now
> >
> http://p.sf.net/sfu/rsa-sfdev2dev1_______________________________________________
> > d2rq-map-devel mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/d2rq-map-devel
>
>
------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
d2rq-map-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/d2rq-map-devel