Sam Adams avatar Sam Adams committed 44c8be4

Fix RDF link in crystal template

Comments (0)

Files changed (2)

crystallography-common/src/main/java/net/chempound/crystal/rdf/impl/CrystalStructureImpl.java

 
     @Override
     public URI getRdfXmlFile() {
-        for (final Resource r : getResourceMaps()) {
+        for (final Resource r : getAggregatedResources()) {
             if (r.getURI().endsWith("rdf")) {
                 return URI.create(r.getURI());
             }

crystallography-handler/src/main/resources/net/chempound/crystal/templates/crystal.ftl

         <ul class="files">
             <li><a href="${_.cmlFile}">Chemical Markup Language</a></li>
             <li><#if cifOriginal??><a href="${cifOriginal}" title="CIF file - original">CIF file</a> [<a href="${_.cifFile}" title="CIF file - local cache">local cache</a>]<#else><a href="${_.cifFile}" title="CIF file">CIF File</a></#if> </li>
-            <li><a href="${_.rdfXmlFile}">RDF XML</a> / <a href="${_.rdfN3File}">RDF N3</a></li>
+            <li><a href="${_.rdfXmlFile}">RDF XML File</a></li>
         </ul>
 
     </div>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.