From: AJ C. <ca...@gm...> - 2006-11-27 08:10:01
|
When firefox opens a rdf file generated by rdfapi, it automatically parses it as xml file. The result is unreadable. So, I want Firefox to open rdf file as is, showing content within xml structure. Any suggestion how to do that? Maybe something can be added to the top of rdf file, which will prevent it from parsing by xml parser. Or configure firefox not to parse rdf file. But I can't find a way to add rdf file type to firefox download manager. Thanks, -- AJ Chen, PhD Palo Alto, CA http://web2express.org |
From: Richard C. <ri...@cy...> - 2006-11-27 10:03:05
|
Hi, On 27 Nov 2006, at 09:09, AJ Chen wrote: > When firefox opens a rdf file generated by rdfapi, it automatically > parses it as xml file. The result is unreadable. This is what Firefox does with all XML files. > So, I want Firefox to open rdf file as is, showing content within > xml structure. Any suggestion how to do that? Select "View Source" from the menu. > Maybe something can be added to the top of rdf file, which will > prevent it from parsing by xml parser. You could do that, but then it wouldn't be an RDF file any more, and therefore most RDF tools would not recognize it. (As a better solution, you could use an XML processing instruction to associate a CSS or XSLT stylesheet with the RDF document, see [1].) RDF files are not meant to be displayed to a human. It doesn't really matter if it's parsed as XML, or if the raw XML is displayed, Non- geeks will not be able to understand either of those. Look at how links to RSS and Atom feeds are usually handled, they are hidden away behind [RSS] buttons or <link> elements in the HTML head, human readers will usually not see it, and RSS clients know where to look for it. I think the same approach should be used for RDF. Yours, Richard [1] http://www.w3.org/TR/xml-stylesheet/ > Or configure firefox not to parse rdf file. But I can't find a way > to add rdf file type to firefox download manager. > Thanks, > -- > AJ Chen, PhD > Palo Alto, CA > http://web2express.org > ---------------------------------------------------------------------- > --- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to > share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php? > page=join.php&p=sourceforge&CID=DEVDEV________________________________ > _______________ > Rdfapi-php-interest mailing list > Rdf...@li... > https://lists.sourceforge.net/lists/listinfo/rdfapi-php-interest |
From: Markus <ma...@ai...> - 2006-11-28 11:54:34
|
On Monday 27 November 2006 11:02, Richard Cyganiak wrote: > Hi, > > On 27 Nov 2006, at 09:09, AJ Chen wrote: > > When firefox opens a rdf file generated by rdfapi, it automatically > > parses it as xml file. The result is unreadable. > > This is what Firefox does with all XML files. That is not quite true. In fact, Firefox nicely displays XML files. See e.g= =2E=20 http://ontoworld.org/RDF/categories.xml But FF interprets RDF as broken HTML (I think), i.e. the tags are stripped = and=20 the page only consists of text between the tags. To change this, you could= =20 deliver your .rdf files as application/xml (and not as application/rdf+xml)= ,=20 or (if they are static files), rename them into .xml or reconfigure your=20 webserver to use the other mime. And, of course, someone should file a Firefox bug report. Cheers, Markus > > > So, I want Firefox to open rdf file as is, showing content within > > xml structure. Any suggestion how to do that? > > Select "View Source" from the menu. > > > Maybe something can be added to the top of rdf file, which will > > prevent it from parsing by xml parser. > > You could do that, but then it wouldn't be an RDF file any more, and > therefore most RDF tools would not recognize it. > > (As a better solution, you could use an XML processing instruction to > associate a CSS or XSLT stylesheet with the RDF document, see [1].) > > RDF files are not meant to be displayed to a human. It doesn't really > matter if it's parsed as XML, or if the raw XML is displayed, Non- > geeks will not be able to understand either of those. Look at how > links to RSS and Atom feeds are usually handled, they are hidden away > behind [RSS] buttons or <link> elements in the HTML head, human > readers will usually not see it, and RSS clients know where to look > for it. I think the same approach should be used for RDF. > > Yours, > Richard > > [1] http://www.w3.org/TR/xml-stylesheet/ > > > Or configure firefox not to parse rdf file. But I can't find a way > > to add rdf file type to firefox download manager. > > Thanks, > > -- > > AJ Chen, PhD > > Palo Alto, CA > > http://web2express.org > > ---------------------------------------------------------------------- > > --- > > Take Surveys. Earn Cash. Influence the Future of IT > > Join SourceForge.net's Techsay panel and you'll get the chance to > > share your > > opinions on IT & business topics through brief surveys - and earn cash > > http://www.techsay.com/default.php? > > page=3Djoin.php&p=3Dsourceforge&CID=3DDEVDEV___________________________= _____ > > _______________ > > Rdfapi-php-interest mailing list > > Rdf...@li... > > https://lists.sourceforge.net/lists/listinfo/rdfapi-php-interest > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your opinions on IT & business topics through brief surveys - and earn ca= sh > http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDEV > _______________________________________________ > Rdfapi-php-interest mailing list > Rdf...@li... > https://lists.sourceforge.net/lists/listinfo/rdfapi-php-interest =2D-=20 Markus Kr=F6tzsch Institute AIFB, University of Karlsruhe, D-76128 Karlsruhe ma...@ai... phone +49 (0)721 608 7362 www.aifb.uni-karlsruhe.de/WBS/ fax +49 (0)721 693 717 |
From: Richard C. <ri...@cy...> - 2006-11-28 14:41:40
|
Markus, AJ, On 28 Nov 2006, at 12:54, Markus Kr=F6tzsch wrote: >> On 27 Nov 2006, at 09:09, AJ Chen wrote: >>> When firefox opens a rdf file generated by rdfapi, it automatically >>> parses it as xml file. The result is unreadable. >> >> This is what Firefox does with all XML files. > > That is not quite true. In fact, Firefox nicely displays XML files. =20= > See e.g. > http://ontoworld.org/RDF/categories.xml > > But FF interprets RDF as broken HTML (I think), i.e. the tags are =20 > stripped and > the page only consists of text between the tags. Ah, interesting, I didn't know. Thanks for pointing this out, and =20 apologies to AJ for my wrong claims. > To change this, you could > deliver your .rdf files as application/xml (and not as application/=20 > rdf+xml), > or (if they are static files), rename them into .xml or reconfigure =20= > your > webserver to use the other mime. Well, yes, but that's no real solution either because it sends an =20 inexact MIME type that might cause RDF clients to not recognize the =20 RDF document. Richard > And, of course, someone should file a Firefox bug report. > > Cheers, > > Markus > >> >>> So, I want Firefox to open rdf file as is, showing content within >>> xml structure. Any suggestion how to do that? >> >> Select "View Source" from the menu. >> >>> Maybe something can be added to the top of rdf file, which will >>> prevent it from parsing by xml parser. >> >> You could do that, but then it wouldn't be an RDF file any more, and >> therefore most RDF tools would not recognize it. >> >> (As a better solution, you could use an XML processing instruction to >> associate a CSS or XSLT stylesheet with the RDF document, see [1].) >> >> RDF files are not meant to be displayed to a human. It doesn't really >> matter if it's parsed as XML, or if the raw XML is displayed, Non- >> geeks will not be able to understand either of those. Look at how >> links to RSS and Atom feeds are usually handled, they are hidden away >> behind [RSS] buttons or <link> elements in the HTML head, human >> readers will usually not see it, and RSS clients know where to look >> for it. I think the same approach should be used for RDF. >> >> Yours, >> Richard >> >> [1] http://www.w3.org/TR/xml-stylesheet/ >> >>> Or configure firefox not to parse rdf file. But I can't find a way >>> to add rdf file type to firefox download manager. >>> Thanks, >>> -- >>> AJ Chen, PhD >>> Palo Alto, CA >>> http://web2express.org >>> --------------------------------------------------------------------=20= >>> -- >>> --- >>> Take Surveys. Earn Cash. Influence the Future of IT >>> Join SourceForge.net's Techsay panel and you'll get the chance to >>> share your >>> opinions on IT & business topics through brief surveys - and earn =20= >>> cash >>> http://www.techsay.com/default.php? >>> page=3Djoin.php&p=3Dsourceforge&CID=3DDEVDEV__________________________= ____=20 >>> __ >>> _______________ >>> Rdfapi-php-interest mailing list >>> Rdf...@li... >>> https://lists.sourceforge.net/lists/listinfo/rdfapi-php-interest >> >> ---------------------------------------------------------------------=20= >> ---- >> Take Surveys. Earn Cash. Influence the Future of IT >> Join SourceForge.net's Techsay panel and you'll get the chance to =20 >> share >> your opinions on IT & business topics through brief surveys - and =20 >> earn cash >> http://www.techsay.com/default.php?=20 >> page=3Djoin.php&p=3Dsourceforge&CID=3DDEVDEV >> _______________________________________________ >> Rdfapi-php-interest mailing list >> Rdf...@li... >> https://lists.sourceforge.net/lists/listinfo/rdfapi-php-interest > > --=20 > Markus Kr=F6tzsch > Institute AIFB, University of Karlsruhe, D-76128 Karlsruhe > ma...@ai... phone +49 (0)721 608 7362 > www.aifb.uni-karlsruhe.de/WBS/ fax +49 (0)721 693 717 |