From: <rv...@us...> - 2009-06-25 02:33:05
|
Revision: 102 http://treebase.svn.sourceforge.net/treebase/?rev=102&view=rev Author: rvos Date: 2009-06-25 02:33:04 +0000 (Thu, 25 Jun 2009) Log Message: ----------- Adding anyObjectAsRDF.jsp, a template to generate a simple RDF representation of a treebase resource (i.e. any persistable treebase object) Added Paths: ----------- trunk/treebase-web/src/main/webapp/WEB-INF/pages/anyObjectAsRDF.jsp Added: trunk/treebase-web/src/main/webapp/WEB-INF/pages/anyObjectAsRDF.jsp =================================================================== --- trunk/treebase-web/src/main/webapp/WEB-INF/pages/anyObjectAsRDF.jsp (rev 0) +++ trunk/treebase-web/src/main/webapp/WEB-INF/pages/anyObjectAsRDF.jsp 2009-06-25 02:33:04 UTC (rev 102) @@ -0,0 +1,35 @@ +<%@ include file="/common/taglibs.jsp"%> +<% response.setContentType("application/rdf+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--%> +</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. |
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. |
From: <rv...@us...> - 2009-07-06 08:43:01
|
Revision: 176 http://treebase.svn.sourceforge.net/treebase/?rev=176&view=rev Author: rvos Date: 2009-07-06 08:43:00 +0000 (Mon, 06 Jul 2009) Log Message: ----------- Added xml header. 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-07-06 08:41:02 UTC (rev 175) +++ trunk/treebase-web/src/main/webapp/WEB-INF/pages/anyObjectAsRDF.jsp 2009-07-06 08:43:00 UTC (rev 176) @@ -1,3 +1,4 @@ +<?xml version="1.0" encoding="UTF-8"?> <%@ include file="/common/taglibs.jsp"%> <% response.setContentType("application/rss+xml"); %> <rdf:RDF This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <rv...@us...> - 2010-03-12 23:23:17
|
Revision: 558 http://treebase.svn.sourceforge.net/treebase/?rev=558&view=rev Author: rvos Date: 2010-03-12 23:23:11 +0000 (Fri, 12 Mar 2010) Log Message: ----------- Removed superfluous feed image (we can't really compute its absolute path here, unless we hardcode things), removed superfluous forward slashes in URLs. 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 2010-03-12 23:22:09 UTC (rev 557) +++ trunk/treebase-web/src/main/webapp/WEB-INF/pages/anyObjectAsRDF.jsp 2010-03-12 23:23:11 UTC (rev 558) @@ -6,54 +6,54 @@ xmlns:dcterms="http://purl.org/dc/terms/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns="http://purl.org/rss/1.0/"> - <channel rdf:about="${baseURL}/${phyloWSPath}"> + <channel rdf:about="${baseURL}${phyloWSPath}"> <title>${phyloWSPath}</title> <link>${baseURL}</link> <description>Serializations for ${phyloWSPath}</description> - <image rdf:resource="${domainAddress}<fmt:message key="icons.treebase.16px"/>"/> + <%--image rdf:resource="<c:url value="/images/logo16px.png"/>"/--%> <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> + <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"/>"> + <%--image rdf:about="<c:url value="/images/logo16px.png"/>"> <title>${phyloWSPath}</title> <link>${baseURL}</link> - <url>${domainAddress}<fmt:message key="icons.treebase.16px"/></url> - </image> + <url><c:url value="/images/logo16px.png"/></url> + </image--%> <c:if test="${hasWebPage}"> - <item rdf:about="${baseURL}/${phyloWSPath}?format=html"> + <item rdf:about="${baseURL}${phyloWSPath}?format=html"> <title>Web page</title> - <link>${baseURL}/${phyloWSPath}?format=html</link> + <link>${baseURL}${phyloWSPath}?format=html</link> <description>A human-readable version of the resource</description> <dc:format>text/html</dc:format> <dc:language>EN-US</dc:language> </item> </c:if> <c:if test="${hasNeXML}"> - <item rdf:about="${baseURL}/${phyloWSPath}?format=nexml"> + <item rdf:about="${baseURL}${phyloWSPath}?format=nexml"> <title>NeXML file</title> - <link>${baseURL}/${phyloWSPath}?format=nexml</link> + <link>${baseURL}${phyloWSPath}?format=nexml</link> <description>A NeXML serialization of the resource</description> <dc:format>application/xml</dc:format> </item> </c:if> <c:if test="${hasNexus}"> - <item rdf:about="${baseURL}/${phyloWSPath}?format=nexus"> + <item rdf:about="${baseURL}${phyloWSPath}?format=nexus"> <title>Nexus file</title> - <link>${baseURL}/${phyloWSPath}?format=nexus</link> + <link>${baseURL}${phyloWSPath}?format=nexus</link> <description>A Nexus serialization of the resource</description> <dc:format>text/plain</dc:format> </item> </c:if> <c:if test="${hasRdf}"> - <item rdf:about="${baseURL}/${phyloWSPath}?format=rdf"> + <item rdf:about="${baseURL}${phyloWSPath}?format=rdf"> <title>RDF file</title> - <link>${baseURL}/${phyloWSPath}?format=rdf</link> + <link>${baseURL}${phyloWSPath}?format=rdf</link> <description>An RDF/XML serialization of the resource</description> <dc:format>application/rdf+xml</dc:format> </item> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <rv...@us...> - 2010-03-16 16:51:07
|
Revision: 602 http://treebase.svn.sourceforge.net/treebase/?rev=602&view=rev Author: rvos Date: 2010-03-16 16:51:01 +0000 (Tue, 16 Mar 2010) Log Message: ----------- Added context link and annotations. 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 2010-03-16 16:50:12 UTC (rev 601) +++ trunk/treebase-web/src/main/webapp/WEB-INF/pages/anyObjectAsRDF.jsp 2010-03-16 16:51:01 UTC (rev 602) @@ -3,13 +3,21 @@ <% response.setContentType("application/rss+xml"); %> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" + xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns="http://purl.org/rss/1.0/"> <channel rdf:about="${baseURL}${phyloWSPath}"> - <title>${phyloWSPath}</title> + <title><c:out value="${theObject.label}"/></title> <link>${baseURL}</link> <description>Serializations for ${phyloWSPath}</description> + <c:if test="${theObject.context != null}"> + <rdfs:isDefinedBy rdf:resource="${baseURL}<c:out value="${theObject.context.phyloWSPath}"/>"/> + </c:if> + <c:forEach var="anno" items="${theObject.annotations}" varStatus="annoStatus"> + <<c:out value="${anno.property}"/> + xmlns:<c:out value="${anno.prefix}"/>="<c:out value="${anno.URI}"/>"><c:out value="${anno.value}" escapeXml="true"/></<c:out value="${anno.property}"/>> + </c:forEach> <%--image rdf:resource="<c:url value="/images/logo16px.png"/>"/--%> <items> <rdf:Seq> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <rv...@us...> - 2010-05-28 07:59:21
|
Revision: 698 http://treebase.svn.sourceforge.net/treebase/?rev=698&view=rev Author: rvos Date: 2010-05-28 07:59:14 +0000 (Fri, 28 May 2010) Log Message: ----------- Specified content-type (utf-8) in http header 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 2010-05-24 16:54:27 UTC (rev 697) +++ trunk/treebase-web/src/main/webapp/WEB-INF/pages/anyObjectAsRDF.jsp 2010-05-28 07:59:14 UTC (rev 698) @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <%@ include file="/common/taglibs.jsp"%> -<% response.setContentType("application/rss+xml"); %> +<% response.setContentType("application/rss+xml; charset=UTF-8"); %> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |