Skip to main content

Trust MVP Markup Code Examples

Note: All markup examples on this page are in JSON-LD format. The examples are for illustration only.

Best Practices Indicator

This indicator is ready for markup on your website when the individual policy pages for each of the BP policies are ready and you have collected the URLs for each of the pages.

Markup 1: General example

Where should the markup be added? 

Your news website's home page and/or about page.

Note: The links on this markup are examples for illustration only. Empty quotes ("") values for BP policy attributes signal that the policy is absent for this newsroom. 

<script type="application/ld+json">
{
<!-- TRUST PROTOCOL: BEST PRACTICES INDICATOR -->
"@context"   : "http://schema.org",
"@type"   : "NewsMediaOrganization",
"name"   : "Economist",
"ethicsPolicy"                    : "http://www.economistgroup.com/results_and_governance/governance/guiding_principles.html",
"masthead"              : "http://mediadirectory.economist.com/",
"missionCoveragePrioritiesPolicy"   : "http://www.economistgroup.com/what_we_do/our_mission.html",
"diversityPolicy"                    : "",
"correctionsPolicy"              : "",
"verificationFactCheckingPolicy"  : "",
"unnamedSourcesPolicy"               : "",
"actionableFeedbackPolicy"          : "",
 "foundingDate"                       : "1917-07-25",

"ownershipFundingGrants"          : "http://www.economistgroup.com/results_and_governance/ownership.html",

"diversityStaffingReport"            : "",

"refLocalNationalRequirements"       : "",
}
</script>

View/Validate this snippet using Google's structured data tool

 

Markup 2: How do I show that a policy is absent?

The Trust Protocol requires newsrooms to signal both policies that are present (i.e. in use) and that are absent. Use empty quotes (""). 

<!-- NULL STRING VALUES mean no policy exists to signal out -->

"diversityPolicy"                    : "",

"correctionsPolicy"                : "",

"verificationFactCheckingPolicy"  : "",

"unnamedSourcesPolicy"               : "",

"actionableFeedbackPolicy"         : "",

 

Relevant Schema.org specifications:

NewsMediaOrganization, actionableFeedbackPolicy, correctionsPolicy,diversityPolicy, ethicsPolicy, masthead, missionCoveragePrioritiesPolicy,unnamedSourcesPolicy, verificationFactCheckingPolicy

 

Type of Work Indicator

 

Markup 1: General

This indicator will be ready for markup on your website when you have mapped the types of content in your CMS to the Trust Protocol Type of Work indicator types and sub-types.

Where should the markup be added?

To the Article or Piece of Work (PoW).

Note: This markup offers examples for illustration only. The highlighted line is the type.

<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "ReportageNewsArticle",
 "url": "http://www.bbc.com/news/world-us-canada-39324587",
 "publisher": {
"@type": "NewsMediaOrganization",
"name": "BBC News",
"logo":     "http://www.bbc.co.uk/news/special/2015/newsspec_10857/bbc_news_logo.png?cb=1"
},
"headline": "Trump Russia claims: FBI's Comey confirms investigation of election 'interference'",
"mainEntityOfPage": "http://www.bbc.com/news/world-us-canada-39324587",
"articleBody": "Director Comey says the probe into last year's US election would assess if crimes were committed."
   <!-- Note: more properties/key-value pairs follow as per your existing markup -->
}
</script>

View/Validate this snippet using Google's structured data tool 

 

Markup 2: Dual-typing or sub-typing (for occasional use only)

When an article is more than one type (e.g., News and Analysis), slap multiple types on it as below.


<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": ["ReportageNewsArticle", "AnalysisNewsArticle"],
 "url": "http://www.bbc.com/news/world-us-canada-39324587",
 "publisher": {
"@type": "NewsMediaOrganization",
"name": "BBC News",
"logo":     "http://www.bbc.co.uk/news/special/2015/newsspec_10857/bbc_news_logo.png?cb=1"
},
"headline": "Trump Russia claims: FBI's Comey confirms investigation of election 'interference'",
"mainEntityOfPage": "http://www.bbc.com/news/world-us-canada-39324587",
"articleBody": "Director Comey says the probe into last year's US election would assess if crimes were committed."
   <!-- Note: more properties/key-value pairs follow as per your existing markup -->
}
</script>

View/Validate this snippet using Google's structured data tool 

 

Schema.org background on the new News types:News overview document.

 

Author/Reporter Expertise Indicator  

Note: As of July 2017, Author/Reporter Info attributes for Languages and Expertise are pending review at Schema.org. The rest of the attributes for the tech MVP are illustrated here.


Markup 1:
For the Author/Reporter home page, or the publisher profile page. 

<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type"   : "Person",
"name"    : "Maggie Haberman",
"image"   : "URL to author image on the publisher's website",
"workLocation" : {
"@type": "Place",
"name" : "New York, New York, USA"
},
"description" : "Maggie Lindsy Haberman is an American journalist who is a White House correspondent for The New York Times and a political analyst for CNN. She previously worked for Politico and the New York Daily News, where she was a political reporter.",
"contactPoint"     : {
"@type"        : "ContactPoint",
"telephone"    : "+1-425-123-4567",
"contactType"  : "Public Engagement",
"email"        : "mhaberman@nytimes.com",
"url"          : "http://www.nytimes.com/help/index.html"

},
"sameAs" : ["https://twitter.com/maggieNYT", "https://www.nytimes.com/by/maggie-haberman"],
"jobTitle" : "Reporter"    
}
</script>

View/Validate this snippet using Google's structured data tool

 

Markup 2: On the Article or PoW pages by an author. 

This is the very limited markup that goes on any and all pages that have content produced or authored by this reporter or author.

<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "ReportageNewsArticle",
"mainEntityOfPage": "https://www.nytimes.com/2017/07/31/us/politics/anthony-scaramucci-white-house.html",
"author": {
"@type"   : "Person",
"name"    : "Maggie Haberman",
"sameAs" : "https://www.nytimes.com/by/maggie-haberman"
}
}
</script>

View/Validate this snippet using Google's structured data tool

 

Relevant Schema.org specifications:

Person, CreativeWork

  

Citations and References indicator

This indicator primarily leveages the 'citation' property of 'CreativeWork' in schema.org. 

Markup 1: Basic snippet, where all citation links are marked up as 'CreativeWork' links. 

<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "ReportageNewsArticle",
"url": "http://www.cnn.com/2017/07/26/politics/trump-military-transgender/index.html",
"publisher": {
"@type": "NewsMediaOrganization",
"name": "CNN",
"logo": "http://i.cdn.cnn.com/cnn/.e/img/3.0/global/misc/cnn-logo.png"
},
"headline": "Trump to reinstate US military ban on transgender people",
"mainEntityOfPage": "http://www.cnn.com/2017/07/26/politics/trump-military-transgender/index.html",

"citation": [
{
"@type": "CreativeWork",
"url": "http://www.rand.org/pubs/research_reports/RR1530.html"
},
{
"@type": "CreativeWork",
"url": "http://www.tandfonline.com/doi/abs/10.108/1059924X.2015.1000104?journalCode=wagr20"
},
{
"@type": "CreativeWork", // or just "@type": "CreativeWork"
"url": "http://www.orlandosentinel.com/news/politics/political-pulse/os-transgender-military-trump-reaction-20170726-story.html"
}
]
}
</script>

 

 

Relevant Schema.org specifications:

CreativeWorkcitation

 

Tech Development and UX Working Groups

Americas 

Hearst Television
Independent Journal Review
Institute for Nonprofit News
Mic
New York Times
Washington Post
The Globe and Mail
USA Today Network

Europe 

BBC
dpa
The Economist
La Stampa
La Repubblica
Haymarket Media
Trinity Mirror