Skip to main content

OARepo rdm records data model

Project description

OARepo sitemaps

image image image image

Instalation

    pip install oarepo-sitemaps

Usage

OARepo module that creates sitemap for a repository. Sitemap includes only records, that are in state "published" and can be viewed by public. Created sitemap is accessible on server/sitemap.xml url.

Configuration

Default number of record per one sitemap is 10000, this can be changed in configuration with 'SITEMAP_MAX_URL_COUNT set to a different number.

Example

<?xml version="1.0" encoding="utf-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
 <url>
  <loc>http://localhost:5000/cesnet/records/1</loc>
  <lastmod>2021-05-24</lastmod>
  <changefreq>weakly</changefreq>
  <priority>1</priority>
 </url>
 <url>
  <loc>http://localhost:5000/cesnet/records/2</loc>
  <lastmod>2021-05-24</lastmod>
  <changefreq>weakly</changefreq>
  <priority>1</priority>
 </url>
</urlset>

Changes

Version 1.0.0

  • Initial public release.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

oarepo_sitemaps-1.0.0.tar.gz (12.7 kB view hashes)

Uploaded Source

Built Distribution

oarepo_sitemaps-1.0.0-py3-none-any.whl (5.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page