From: <rv...@us...> - 2009-06-28 10:35:21
|
Revision: 150 http://treebase.svn.sourceforge.net/treebase/?rev=150&view=rev Author: rvos Date: 2009-06-28 10:35:18 +0000 (Sun, 28 Jun 2009) Log Message: ----------- Now emits RSS1.0 Modified Paths: -------------- trunk/treebase-web/src/main/webapp/WEB-INF/pages/anyObjectAsRDF.jsp Modified: trunk/treebase-web/src/main/webapp/WEB-INF/pages/anyObjectAsRDF.jsp =================================================================== --- trunk/treebase-web/src/main/webapp/WEB-INF/pages/anyObjectAsRDF.jsp 2009-06-28 10:33:46 UTC (rev 149) +++ trunk/treebase-web/src/main/webapp/WEB-INF/pages/anyObjectAsRDF.jsp 2009-06-28 10:35:18 UTC (rev 150) @@ -1,35 +1,60 @@ <%@ include file="/common/taglibs.jsp"%> -<% response.setContentType("application/rdf+xml"); %> +<% response.setContentType("application/rss+xml"); %> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dcterms="http://purl.org/dc/terms/" - xmlns:dc="http://purl.org/dc/elements/1.1/"> - <rdf:Description rdf:about="${baseURL}/${namespacedGUID}"> - <dc:identifier>${namespacedGUID}</dc:identifier> - <c:if test="${hasWebPage}"><dc:relation rdf:resource="${baseURL}/${namespacedGUID}.html"/></c:if> - <c:if test="${hasNeXML}"><dc:relation rdf:resource="${baseURL}/${namespacedGUID}.xml"/></c:if> - <c:if test="${hasNexus}"><dc:relation rdf:resource="${baseURL}/${namespacedGUID}.nex"/></c:if> - <c:if test="${hasRdf}"><dc:relation rdf:resource="${baseURL}/${namespacedGUID}.rdf"/></c:if> - </rdf:Description><c:if test="${hasWebPage}"> - <rdf:Description rdf:about="${baseURL}/${namespacedGUID}.html"> - <dcterms:format>text/html</dcterms:format> - <dc:language>EN-US</dc:language> - <dc:description>A Web page</dc:description> - </rdf:Description></c:if><c:if test="${hasNeXML}"> - <rdf:Description rdf:about="${baseURL}/${namespacedGUID}.xml"> - <dcterms:format>application/xml</dcterms:format> - <dc:description>A NeXML serialization</dc:description> - </rdf:Description></c:if><c:if test="${hasNexus}"> - <rdf:Description rdf:about="${baseURL}/${namespacedGUID}.nex"> - <dcterms:format>text/plain</dcterms:format> - <dc:description>A Nexus serialization</dc:description> - </rdf:Description></c:if><c:if test="${hasRdf}"> - <rdf:Description rdf:about="${baseURL}/${namespacedGUID}.rdf"> - <dcterms:format>application/rdf+xml</dcterms:format> - <dc:description>RDF/XML metadata about the resource</dc:description> - </rdf:Description></c:if><%--c:if test="${hasJSON}"> - <rdf:Description rdf:about="${baseURL}/${namespacedGUID}.js"> - <dcterms:format>text/javascript</dcterms:format> - <dc:description>A JSON mapping of a NeXML serialization</dc:description> - </rdf:Description></c:if--%> + xmlns:dc="http://purl.org/dc/elements/1.1/" + xmlns="http://purl.org/rss/1.0/"> + <channel rdf:about="${baseURL}/${phyloWSPath}"> + <title>${phyloWSPath}</title> + <link>${baseURL}/${phyloWSPath}</link> + <description>Serializations for ${phyloWSPath}</description> + <image rdf:resource="${domainAddress}<fmt:message key="icons.treebase.16px"/>"/> + <items> + <rdf:Seq> + <c:if test="${hasWebPage}"><rdf:li rdf:resource="${baseURL}/${phyloWSPath}?format=html"/></c:if> + <c:if test="${hasNeXML}"><rdf:li rdf:resource="${baseURL}/${phyloWSPath}?format=nexml"/></c:if> + <c:if test="${hasNexus}"><rdf:li rdf:resource="${baseURL}/${phyloWSPath}?format=nexus"/></c:if> + <c:if test="${hasRdf}"><rdf:li rdf:resource="${baseURL}/${phyloWSPath}?format=rdf"/></c:if> + </rdf:Seq> + </items> + </channel> + <image rdf:about="${domainAddress}<fmt:message key="icons.treebase.16px"/>"> + <title>${phyloWSPath}</title> + <link>${baseURL}/${phyloWSPath}</link> + <url>${domainAddress}<fmt:message key="icons.treebase.16px"/></url> + </image> + <c:if test="${hasWebPage}"> + <item rdf:about="${baseURL}/${phyloWSPath}?format=html"> + <title>Web page</title> + <link>${baseURL}/${phyloWSPath}?format=html</link> + <description>A human-readable version of the resource</description> + <!--dcterms:format>text/html</dcterms:format--> + <dc:language>EN-US</dc:language> + </item> + </c:if> + <c:if test="${hasNeXML}"> + <item rdf:about="${baseURL}/${phyloWSPath}?format=nexml"> + <title>NeXML file</title> + <link>${baseURL}/${phyloWSPath}?format=nexml</link> + <description>A NeXML serialization of the resource</description> + <!--dcterms:format>application/xml</dcterms:format--> + </item> + </c:if> + <c:if test="${hasNexus}"> + <item rdf:about="${baseURL}/${phyloWSPath}?format=nexus"> + <title>Nexus file</title> + <link>${baseURL}/${phyloWSPath}?format=nexus</link> + <description>A Nexus serialization of the resource</description> + <!--dcterms:format>text/plain</dcterms:format--> + </item> + </c:if> + <c:if test="${hasRdf}"> + <item rdf:about="${baseURL}/${phyloWSPath}?format=rdf"> + <title>RDF file</title> + <link>${baseURL}/${phyloWSPath}?format=rdf</link> + <description>An RDF/XML serialization of the resource</description> + <!--dcterms:format>application/rdf+xml</dcterms:format--> + </item> + </c:if> </rdf:RDF> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |