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 |