SpecialAnnouncement
This term is proposed for full integration into Schema.org
https://schema.org/SpecialAnnouncement
A SpecialAnnouncement combines a simple date-stamped textual information update with contextualized Web links and other structured data. It represents an information update made by a locally-oriented organization, for example schools, pharmacies, healthcare providers, community groups, police, local government.
Example:
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "SpecialAnnouncement",
"name": "School Closure information for Eastergate School",
"text": "School closure information has been published.",
"datePosted": "2020-03-17",
"expires": "2020-03-24",
"category": "https://www.wikidata.org/wiki/Q81068910",
"schoolClosuresInfo": "http://example.org/schools/school/eastergate-cofe-primary-school/closures",
"webFeed": {
"@type": "DateFeed",
"@url": "http://example.org/schools/school/eastergate-cofe-primary-school/closures",
"encodingFormat": "application/rss+atom"
},
"about" : {
"@type": "School",
"name": "Eastergate School",
"url": "http://example.org/schools/school/eastergate-cofe-primary-school/",
"location": "..."
}
}
</script>
Noticed in the Schema for Coronavirus special announcements, Covid-19 Testing Facilities and more
Tim Berners-Lee @timberners_lee
If you are putting special announcements on your web site, here is also how to make them up so search engines know what they are.
https://twitter.com/timberners_lee/status/1240021668518604810?s=20
| Comment | File | Size | Author |
|---|---|---|---|
| #32 | 3120412-32-special-announcements.patch | 20.86 KB | karens |
| #30 | 3120412-30-special-announcements.patch | 20.84 KB | karens |
| #29 | 3120412-29-special-announcements.patch | 20.6 KB | karens |
| #26 | 3120412-26-special-announcements.patch | 40.15 KB | karens |
| #24 | 3120412-24-special-announcements.patch | 40.15 KB | karens |
Comments
Comment #2
rajab natshahComment #3
nickdickinsonwildeIn progress 😉
Comment #4
nickdickinsonwildeReady for review.
Comment #5
nickdickinsonwildeError appears unrelated to this patch - syntax error in file untouched by patch.
Comment #6
nickdickinsonwildeComment #7
phernand42 commentedThanks so much for creating this patch! Seems to be working for the most part. However it may be missing the announcementLocation property. When I run my page through googles structured data testing tool I received the following warning.
One of announcementLocation or spatialCoverage must be provided.
Comment #8
damienmckennaYeah, that'd be useful, though the specifications don't say it's required.
Putting it back to "needs work" for this to be added.
Comment #9
jrglasgow commentedhere is my attempt at adding spatialCoverage and announcementLocation to the specialAnnouncement
Comment #10
rajab natshahComment #11
phernand42 commentedThanks for adding. Tested out patch in #9 and it worked out ok. The order of the fields seems to have to been changed a bit. The text, category, and date fields is now below new announcementLocation and spatialCoverage properties.
Comment #12
jrglasgow commentedI updated the patch from #9 so the SpatialCoverage and AnnouncementLocation have the same weight (11) as most of the rest of the items so they fall below the text (1) and category (2)
Comment #13
snaik commentedHello,
Are there plans to port this feature into the D7 version of the module?
Thanks!
Comment #14
jrglasgow commentedI know of a couple of folks who have been working on a port of this patch for D7 and have asked them to upload it here.
Comment #15
snaik commentedThank You!
Comment #16
snaik commentedHello,
Could you please let me know if there has been any update on the D7 version? I am happy to help with any testing if required.
Thanks!
Comment #17
snaik commentedI have created a module for the Drupal 7 version. It has the basic SpecialAnnouncement tags available. You can add more tags to the "schema_special_announcement.metatag.inc" file if required.
Comment #18
craigcollinsyoung commentedCurious if there has been any update on the work for the Special Announcement schema patch for Drupal 8. At this point, is it just testing that needs to be done to flip this over to "complete"? I'm not much of a developer, but would be happy to help in any way possible!
Thanks.
Comment #19
karens commentedI am working with this and wondering why we have the complicated SchemaUrlWebContentBase, SchemaWebContentBase, and SchemaUrlWebContentTrait. That adds a ton of complication to something that in the Google examples is just a url. I would have done this just using SchemaNameBase. That is also consistent with the way all the other elements work. I don't see any discussion in this thread about that decision so I can't tell if there is a reason for that. The only reason I can see is that https://SpecialAnnouncement has elements that could be provided using multiple objects, which is true for many other elements throughout Schema.org. In those cases, we have just made the decision to pick one that will provide the output in Google's examples and use it.
I am going to try to simplify this down to something more like what we've done elsewhere and post a patch. I'll also pull in the spacialCoverage (which looks like SchemaPlaceBase).
Comment #20
karens commentedI'm guessing the web content configuration is just a misunderstanding of how the rest of the code works. I also see a number of other suggested fields. I'll try to add them in too.
Comment #21
karens commentedComment #22
karens commentedComment #23
karens commentedComment #24
karens commentedComment #26
karens commentedComment #28
karens commentedCommitted D8, now switching to D7.
Comment #29
karens commentedComment #30
karens commentedComment #32
karens commentedComment #34
karens commentedBoth D8 and D7 committed now. Thanks for the help!
Comment #36
DanielRemnant commentedHi! I use some of schema markups on my website. Do i need to add CreativeWork in the SpecialAnnouncement type?