Web Structured Page - PageMaps

What is pagemaps ?

PageMaps is a web markup format that adds arbitrary metadata to a web page.

They are useful to add any data to a web page that make sense only to your web application and that you might not want to display to users.

PageMaps supports arbitrary data as it does not require to follow a schema

Example

They are blocks of XML that can be added to:

Web Page

PageMaps metadata are invisible blocks of XML included in the head section of the HTML page (not in the body of the HTML)

<html>
  <head>
  <!--
  <PageMap>
     <DataObject type="document">
        <Attribute name="title">What is pagesmap</Attribute>
        <Attribute name="author">Nicolas GERARD</Attribute>
        <Attribute name="description">Pagesmap add structure to your web page in order to extract meaningful information (ie structured)</Attribute>
        <Attribute name="rating">10</Attribute>
        <Attribute name="last_update">28/05/2020</Attribute>
     </DataObject>
     <DataObject type="thumbnail">
        <Attribute name="src" value="https://gerardnico.com/favicon.png" />
        <Attribute name="width" value="28" />
        <Attribute name="height" value="28" />
     </DataObject>
  </PageMap>
  -->
  </head>
<body>
<!-- The content of the web page -->
</body>
</html>

Sitemap

Sitemap example (Ref)

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
 <url>
   <loc>http://www.example.com/foo</loc>
   <PageMap xmlns="http://www.google.com/schemas/sitemap-pagemap/1.0">
     <DataObject type="document" id="hibachi">
       <Attribute name="name">Dragon</Attribute>
       <Attribute name="review">3.5</Attribute>
     </DataObject>
   </PageMap>
 </url>
 <url>
   <loc>http://www.example.com/bar</loc>
   <PageMap xmlns="http://www.google.com/schemas/sitemap-pagemap/1.0">
     <DataObject type="document" id="biggreenegg">
       <Attribute name="name">Ribs</Attribute>
       <Attribute name="review">4.0</Attribute>
     </DataObject>
   </PageMap>
 </url>
</urlset>

Documentation / Reference





Discover More
Resource (Web Page) - Type (Structured Data | Metadata )

HTML element HTML link tag for relation between document and the canonical url PageMaps: invisible blocks of XML that add metadata to pages. Microformats: tags used to mark up visible page content...



Share this page:
Follow us:
Task Runner