<!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 &mdash; Metacat 2.8.1 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.1',
        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="top" title="Metacat 2.8.1 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.1 documentation</a> &raquo;</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&#8217;s sitemap files at:</p>
<div class="highlight-python"><div class="highlight"><pre>&lt;webapps_dir&gt;/sitemaps
</pre></div>
</div>
<p>The directory contains one or more XML files named:</p>
<div class="highlight-python"><div class="highlight"><pre>metacat&lt;X&gt;.xml
</pre></div>
</div>
<p>where <code class="docutils literal"><span class="pre">&lt;X&gt;</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-python"><div class="highlight"><pre>&lt;your_web_context&gt;/sitemaps/metacat&lt;X&gt;.xml
(e.g., your.server.org/metacat/sitemaps/metacat1.xml)
</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.1 documentation</a> &raquo;</li> 
      </ul>
      
    </div>
			</div>
	    	<div class="small-print">
			      &copy; Copyright 2012, Regents of the University of California.
			      Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.3.1.
			</div>
	    </div>
	</div>
  </body>
</html>