Re: Schema for a Collection of Links?

Thank you for your reply, Richard.
Could you or someone please guide me how microdata markup should look like,
here is how I currently try to do it:

<head>
    ...
    <script type="application/ld+json">

{"description":"...","author":"...","@type":"CollectionPage","url":"...",...}
// This was generated by a static site generator.
    </script>
</head>
<body>
    <main>
        <a href="https://springfield-xxxx.us" itemtype="
https://schema.org/WebSite">Official site of Springfield</a>
        <a href="https://facebook.com/group/XXXX" itemtype="
https://schema.org/WebPage">Local events in Springfield</a>
        <a href="https://news.us/city/springfield-xxxx" itemtype="
https://schema.org/WebPage">Latest news in Springfield</a>
    </main>
</body>

I use https://schema.org/WebPage instead of http://schema.org/WebPage
(httpS over http), I hope it's ok.
I also don't define CollectionPage on <main>, <body> or <html>, because
it's already defined in the JSON-LD script, I hope it's also ok.

If this mail-list is not a place for such questions, please, let me know.

Thank you for your help,
Ilya.

On Fri, Jun 1, 2018 at 9:34 PM, Richard Wallis <
richard.wallis@dataliberate.com> wrote:

> Hi Ilya,
>
> I would use CollectionPage <http://schema.org/CollectionPage>.  However I
> would describe each ‘link’ as a WebPage <http://schema.org/WebPage> or
> WebSite <http://schema.org/WebSite> with its *url* being the link.
>
> ~Richard.
>
> Richard Wallis
> Founder, Data Liberate
> http://dataliberate.com
> Linkedin: http://www.linkedin.com/in/richardwallis
> Twitter: @rjw
>
> On 31 May 2018 at 09:55, Ilya Petrov <ilyaigpetrov@gmail.com> wrote:
>
>> Hello.
>>
>> What is the best schema for a page <https://sukhoylog.github.io/sites>
>> that contains a categorized list of local sites/urls of my small town?
>>
>> Best regards,
>> Ilya.
>>
>
>

Received on Saturday, 2 June 2018 18:22:21 UTC