Suport schema.org Event metadata
Open, Needs TriagePublic

Description

Add data to website for automatic detection of metadata by search engines and KItinery

https://schema.org/Event

duffus created this task.Aug 26 2019, 7:37 AM
ognarb added a subscriber: ognarb.Aug 26 2019, 2:14 PM

Here is something that could be included in https://akademy.kde.org/2019. Feel free to add, edit or remove field.

<script type="application/ld+json">
{
  "@context": "http://schema.org",
  "@type": "Event",
  "location": {
    "@type": "Place",
    "address": {
      "@type": "PostalAddress",
      "addressCountry": "IT",
      "addressLocality": "Milan",
      "addressRegion": "Lombardy",
      "postalCode": "20126",
      "streetAddress": "Piazza dell'Ateneo Nuovo, 1"
    },
    "name": "University of Milano-Bicocca"
  },
  "name": "Akademy 2019",
  "startDate": "2019-09-07T09:30",
  "endDate": "2019-07-14T16:30",
  "inLanguage":  {
    "@type": "Language",
    "name": "English"
  },
  "isAccessibleForFree": true,
  "organizer": [
    {
      "@type": "Organization",
      "legalName": "KDE e.V.",
      "alternatename": "KDE"
    },
    {
      "@type": "Organization",
      "legalName": "unixMiB"
    }
  ],
  "sponsor": [
    {
      "@type": "Organization",
      "legalName": "The Qt Company",
      "url": "https://www.qt.io/"
    },
    {
      "@type": "Organization",
      "legalName": "Blue System"
    },
    {
      "@type": "Organization",
      "legalName": "Canonical",
      "url": "https://www.canonical.com/"
    },
    {
      "@type": "Organization",
      "legalName": "KDAB",
      "url": "https://www.kdab.com/"
    },
    {
      "@type": "Organization",
      "legalName": "The openSUSE Project",
      "url": "https://www.opensuse.org/"
    },
    {
      "@type": "Organization",
      "legalName": "GitLab",
      "url": "https://gitlab.com"
    }
  ],
  "image": "https://akademy.kde.org/sites/akademy.kde.org/files/2019/milanpanoramic.jpg",
  "description": "For most of the year, KDE—one of the largest free and open software communities in the world — works on-line by email, IRC, forums and mailing lists. Akademy provides all KDE contributors the opportunity to meet in person to foster social bonds, work on concrete technology issues, consider new ideas, and reinforce the innovative, dynamic culture of KDE. Akademy brings together artists, designers, developers, translators, users, writers, sponsors and many other types of KDE contributors to celebrate the achievements of the past year and help determine the direction for the next year. Hands-on sessions offer the opportunity for intense work bringing those plans to reality. The KDE community welcomes companies building on KDE technology, and those that are looking for opportunities. For more information, please contact the Akademy Team.",
  "url": "https://akademy.kde.org/2019"
}
</script>

added that thanks

is it something that should be on just the one page or all (2019)?

The code that I send is only for 2019, but I could probably create one for 2018 and 2017 and one general for Akademy. And then use "superEvent" and "subEvent" to bind all the events together.

interesting about the super event

i was more meaning should it be on /2019/* or just /2019 ?

I should be just /2019

Hi I looked at the generated code with https://search.google.com/structured-data/testing-tool#url=https%3A%2F%2Fakademy.kde.org%2F2019. And it isn't detected, because the content is in a <meta name="description" content="..."> instead of a <script type="application/ld+json">..</script>

It is inside the <script> tag, just that the content generated by drupal puts everything inside <div>s

@ognarb if you login at https://akademy.kde.org/user you can then see what i put in the page https://akademy.kde.org/2019 looks like something might be mangling it a bit from viewing the generated html

In fact it looks like something has gone and commented out everything in the <script> tag in the rendered html (not in the page content)

Ok it looks like it's drupal security feature to completely. I changed it to the more verbose html version

<div itemscope itemtype="http://schema.org/Event">
<meta itemprop="name" content="Akademy 2019">
<meta itemprop="startDate" content="2019-09-07T09:30">
<meta itemprop="endDate" content="2019-07-14T16:30">
<span itemprop="location" itemscope itemtype="http://schema.org/Place">
<meta itemprop="name" content="University of Milano-Bicocca">
<span class="address" itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">
<meta itemprop="addressCountry" content="IT">
<meta itemprop="addressLocality" content="Milan">
<meta itemprop="addressRegion" content="Lombardy">
<meta itemprop="postalCode" content="20126">
<meta itemprop="streetAddress" content="Piazza dell'Ateneo Nuovo, 1">
</span>
</span>
<span itemprop="inLanguage" itemscope itemtype="http://schema.org/Language">
<meta itemprop="name" content="English">
</span>
<meta itemprop="isAccessibleForFree" content="isAccessibleForFree">
<span itemprop="organizer" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="legalName" content="KDE e.V.">
<meta itemprop="alternatename" content="KDE">
</span>
<span itemprop="organizer" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="legalName" content="unixMiB">
</span>
<meta itemprop="image" content="https://akademy.kde.org/sites/akademy.kde.org/files/2019/milanpanoramic.jpg">
<meta itemprop="description" content="For most of the year, KDE—one of the largest free and open software communities in the world — works on-line by email, IRC, forums and mailing lists. Akademy provides all KDE contributors the opportunity to meet in person to foster social bonds, work on concrete technology issues, consider new ideas, and reinforce the innovative, dynamic culture of KDE. Akademy brings together artists, designers, developers, translators, users, writers, sponsors and many other types of KDE contributors to celebrate the achievements of the past year and help determine the direction for the next year. Hands-on sessions offer the opportunity for intense work bringing those plans to reality. The KDE community welcomes companies building on KDE technology, and those that are looking for opportunities. For more information, please contact the Akademy Team.">
<meta itemprop="url" content="https://akademy.kde.org/2019">
</div

and because Drupal tried to insert some space changed to this ugly line

<div itemscope itemtype="http://schema.org/Event"> <meta itemprop="name" content="Akademy 2019"> <meta itemprop="startDate" content="2019-09-07T09:30"> <meta itemprop="endDate" content="2019-07-14T16:30"> <span itemprop="location" itemscope itemtype="http://schema.org/Place"> <meta itemprop="name" content="University of Milano-Bicocca"> <span class="address" itemprop="address" itemscope itemtype="http://schema.org/PostalAddress"> <meta itemprop="addressCountry" content="IT"> <meta itemprop="addressLocality" content="Milan"> <meta itemprop="addressRegion" content="Lombardy"> <meta itemprop="postalCode" content="20126"> <meta itemprop="streetAddress" content="Piazza dell'Ateneo Nuovo, 1"> </span> </span> <span itemprop="inLanguage" itemscope itemtype="http://schema.org/Language"> <meta itemprop="name" content="English"> </span> <meta itemprop="isAccessibleForFree" content="isAccessibleForFree"> <span itemprop="organizer" itemscope itemtype="http://schema.org/Organization"> <meta itemprop="legalName" content="KDE e.V."> <meta itemprop="alternatename" content="KDE"> </span> <span itemprop="organizer" itemscope itemtype="http://schema.org/Organization"> <meta itemprop="legalName" content="unixMiB"> </span> <meta itemprop="image" content="https://akademy.kde.org/sites/akademy.kde.org/files/2019/milanpanoramic.jpg"> <meta itemprop="description" content="For most of the year, KDE—one of the largest free and open software communities in the world — works on-line by email, IRC, forums and mailing lists. Akademy provides all KDE contributors the opportunity to meet in person to foster social bonds, work on concrete technology issues, consider new ideas, and reinforce the innovative, dynamic culture of KDE. Akademy brings together artists, designers, developers, translators, users, writers, sponsors and many other types of KDE contributors to celebrate the achievements of the past year and help determine the direction for the next year. Hands-on sessions offer the opportunity for intense work bringing those plans to reality. The KDE community welcomes companies building on KDE technology, and those that are looking for opportunities. For more information, please contact the Akademy Team."> <meta itemprop="url" content="https://akademy.kde.org/2019"></div>

This is quite ugly but this works https://search.google.com/structured-data/testing-tool#url=https%3A%2F%2Fakademy.kde.org%2F2019