On Tue, Mar 11, 2008 at 12:07 PM, Rzepa, Henry <[EMAIL PROTECTED]> wrote:
> I forgot to mention that the above is currently not displaying properly in
> Firefox
> because the MIME types on the server are not set correctly (they will be
> hopefully
> very shortly). Safari on Mac does not use MIME types, hence it DOES
> display
> correctly.
You could use PHP for that... it allows overwriting the MIME type...
below is part of the PHP code being rdf.openmolecules.net
<?php header("Content-type: text/xml"); print "<?xml version=\"1.0\"?>\n";?>
<?php print "<?xml-stylesheet type=\"text/xsl\"
href=\"http://rdf.openmolecules.net/html.xsl\"?>\n"; ?>
<?php
$inchi = substr($_SERVER['REQUEST_URI'],2);
$pos = strpos($inchi, 'info:inchi/');
if ($pos === 0) {
$inchi = substr($inchi, 11);
}
if (strlen($inchi) === 0) {
$inchi = "InChI=1/CH4/h1H4";
}
?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:iupac="http://www.iupac.org/"
xmlns:rdfomn="http://rdf.openmolecules.net/#">
Note the header() command on the first line...
BTW, the FOAFDigger code (the Strigi-based miner) is available from:
http://blueobelisk.svn.sourceforge.net/viewvc/blueobelisk/foafdigger/
Egon
--
----
http://chem-bla-ics.blogspot.com/
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Blueobelisk-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/blueobelisk-discuss