<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>16. Enabling Web Searches: Sitemaps — Metacat 2.8.4 documentation</title> <link rel="stylesheet" href="_static/bootstrap.min.css" type="text/css" /> <link rel="stylesheet" href="_static/font-awesome/css/font-awesome.min.css" type="text/css" /> <link rel="stylesheet" href="_static/pygments.css" type="text/css" /> <link rel="stylesheet" href="_static/metacatui.css" type="text/css" /> <script type="text/javascript"> var DOCUMENTATION_OPTIONS = { URL_ROOT: './', VERSION: '2.8.4', COLLAPSE_MODINDEX: false, FILE_SUFFIX: '.html', HAS_SOURCE: true }; </script> <script type="text/javascript" src="_static/jquery.js"></script> <script type="text/javascript" src="_static/underscore.js"></script> <script type="text/javascript" src="_static/doctools.js"></script> <link rel="index" title="Index" href="genindex.html" /> <link rel="search" title="Search" href="search.html" /> <link rel="top" title="Metacat 2.8.4 documentation" href="index.html" /> <link rel="prev" title="15. Event Logging" href="event-logging.html" /> <link rel="next" title="17. Appendix: Metacat Properties" href="metacat-properties.html" /> </head> <body> <div id="metacatDocs"> <div class="banner"> <a href="index.html"><img class="logo" src="_static/metacat-logo-white.png" /></a> <a href="index.html"><h1 class="title">Metacat: Metadata and Data Management Server</h1></a> <img class="logo-right" src="_static/nceas-logo-white.png" /> </div> <div class="related"> <h3>Navigation</h3> <ul> <li class="right"> <span id="searchbox" style="display: none;"> <form class="search" action="search.html" method="get"> <input type="text" name="q" size="18" /> <input type="submit" value="Go" class="icon-search"/> <input type="hidden" name="check_keywords" value="yes" /> <input type="hidden" name="area" value="default" /> </form> </span> </li> <script type="text/javascript">$('#searchbox').show(0);</script> <li class="right"> <a href="genindex.html" title="General Index" accesskey="I">index</a> </li> <li class="right"> <a href="metacat-properties.html" title="17. Appendix: Metacat Properties" accesskey="N">next</a> </li> <li class="right"> <a href="event-logging.html" title="15. Event Logging" accesskey="P">previous</a> </li> <li class="breadcrumb first"><a href="index.html">Metacat 2.8.4 documentation</a> »</li> </ul> </div> <div class="document"> <div class="documentwrapper"> <div class="bodywrapper"> <div class="body"> <div class="section" id="enabling-web-searches-sitemaps"> <h1>16. Enabling Web Searches: Sitemaps<a class="headerlink" href="#enabling-web-searches-sitemaps" title="Permalink to this headline">¶</a></h1> <p>Sitemaps are XML files that tell search engines - such as Google, which is discussed in this section - which URLs on your websites are available for crawling. Currently, the only way for a search engine to crawl and index Metacat so that individual metadata entries are available via Web searches is with a sitemap. Metacat automatically creates sitemaps for all public documents in the repository. However, you must register the sitemaps with the search engine before it will take effect.</p> <div class="section" id="creating-a-sitemap"> <h2>16.1. Creating a Sitemap<a class="headerlink" href="#creating-a-sitemap" title="Permalink to this headline">¶</a></h2> <p>Metacat automatically generates a sitemap file for all public documents in the repository on a daily basis. The sitemap file(s) must be available via the Web on your server, and must be registered with Google before they take effect. For information on the sitemap protocol, please refer to the Google page on using the sitemap protocol. You can view Metacat’s sitemap files at:</p> <div class="highlight-default"><div class="highlight"><pre><span></span><span class="o"><</span><span class="n">webapps_dir</span><span class="o">>/</span><span class="n">sitemaps</span> </pre></div> </div> <p>The directory contains one or more XML files named:</p> <div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">metacat</span><span class="o"><</span><span class="n">X</span><span class="o">>.</span><span class="n">xml</span> </pre></div> </div> <p>where <code class="docutils literal"><span class="pre"><X></span></code> is a number (e.g., 1 or 2) used to increment each sitemap file. Because Metacat limits the number of sitemap entries in each sitemap file to 25,000, the servlet creates an additional sitemap file for each group of 25,000 entries.</p> <p>Verify that your sitemap files are available to the Web by browsing to:</p> <div class="highlight-default"><div class="highlight"><pre><span></span><span class="o"><</span><span class="n">your_web_context</span><span class="o">>/</span><span class="n">sitemaps</span><span class="o">/</span><span class="n">metacat</span><span class="o"><</span><span class="n">X</span><span class="o">>.</span><span class="n">xml</span> <span class="p">(</span><span class="n">e</span><span class="o">.</span><span class="n">g</span><span class="o">.</span><span class="p">,</span> <span class="n">your</span><span class="o">.</span><span class="n">server</span><span class="o">.</span><span class="n">org</span><span class="o">/</span><span class="n">metacat</span><span class="o">/</span><span class="n">sitemaps</span><span class="o">/</span><span class="n">metacat1</span><span class="o">.</span><span class="n">xml</span><span class="p">)</span> </pre></div> </div> </div> <div class="section" id="registering-a-sitemap"> <h2>16.2. Registering a Sitemap<a class="headerlink" href="#registering-a-sitemap" title="Permalink to this headline">¶</a></h2> <p>Before Google will begin indexing the public files in your Metacat, you must register the sitemaps. To register your sitemaps and ensure that they are up to date:</p> <ol class="arabic simple"> <li>Register for a Google Webmaster Tools account, and add your Metacat site to the Dashboard.</li> <li>From your Google Webmaster Tools site account, register your sitemaps. See the Google help site for more information about how to register sitemaps. Note: Register the full URL path to your sitemap files, including the <a class="reference external" href="http://">http://</a> (or <a class="reference external" href="https://">https://</a>) headers.</li> </ol> <p>Once the sitemaps are registered, Google will begin to index the public documents in your Metacat repository.</p> <p>NOTE: As you add more publicly accessible data to Metacat, you will need to periodically revisit the Google Webmaster Tools utility to refresh your sitemap registration.</p> </div> </div> </div> </div> </div> <div class="clearer"></div> </div> <div class="footer"> <div class="footerNav"> <div class="related"> <h3>Navigation</h3> <ul> <li class="right"> <span id="searchbox" style="display: none;"> <form class="search" action="search.html" method="get"> <input type="text" name="q" size="18" /> <input type="submit" value="Go" class="icon-search"/> <input type="hidden" name="check_keywords" value="yes" /> <input type="hidden" name="area" value="default" /> </form> </span> </li> <script type="text/javascript">$('#searchbox').show(0);</script> <li class="right"> <a href="genindex.html" title="General Index" >index</a> </li> <li class="right"> <a href="metacat-properties.html" title="17. Appendix: Metacat Properties" >next</a> </li> <li class="right"> <a href="event-logging.html" title="15. Event Logging" >previous</a> </li> <li class="breadcrumb first"><a href="index.html">Metacat 2.8.4 documentation</a> »</li> </ul> </div> </div> <div class="small-print"> © Copyright 2012, Regents of the University of California. Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.5.2. </div> </div> </div> </body> </html>