JSON-LD And You: �A Guide to Structured Metadata for Journalism
#KleinCamp18
Aram Zucker-Scharff - @Chronotope
JSON-LD ��So What?
The Semantic Web
“The Semantic Web will bring structure to the meaningful content of Web pages, creating an environment where software agents roaming from page to page can readily carry out sophisticated tasks for users.”
Previously:
The hCard
“hCard is a simple, open format for publishing people, companies, organizations on the web”
http://microformats.org/wiki/hcard
Link Markup
rel= follow | nofollow | ...���
title=”where we’re going”
RDF and Triples
RDF and Triples
Subject:Predicate:Object
Open Graph - More Social Heds and Descriptions
Open Graph - Categorization of Content
Defining Webpages as Objects
Music
Video
Article
Profile
And more… http://ogp.me
Explore Open Graph in Action�
http://aramzs.me/ogd
Building One to One for Social
From: https://www.recode.net/2018/2/12/16998750/facebooks-teen-users-decline-instagram-snap-emarketer
Metadata but structured for us
Schema.org
Schema: a representation of a plan or theory in the form of an outline or model.
Who are we building for?
DAI
JSON-LD��JavaScript Object Notation for Linked Data
“It is a way to create a network of standards-based, machine-readable data across Web sites. It allows an application to start at one piece of Linked Data, and follow embedded links to other pieces of Linked Data that are hosted on different sites across the Web.”
https://schema.org/CreativeWork
Schema.org organizes pages as objects
@type - tells us what the object is. Could be Article, BlogPost, ReportageNewsArticle
headline - like title
description - same as in SEO
image - optional and can contain more than one image
datePublished/dateModified - for helping to determine relevance
Schema.org has editorially significant data
Linked objects:
https://pending.schema.org/NewsMediaOrganization
Schema.org makes editorial policies transparent
"@type":"NewsMediaOrganization"
https://schema.org/Person
Schema.org has data useful for describing credibility
Linked objects:
Schema.org can create an ownership connection for authors
From: https://theoutline.com/post/2780/new-york-times-copy-editor-layoffs-aftermath?zd=1&zi=bun4yw7b
Consider our content’s value as journalism
So what goes into JSON-LD?
<script type="application/ld+json"> {
} </script>
<script type="application/ld+json"> {
"@context": "http://schema.org",
} </script>
<script type="application/ld+json"> {
"@context": "http://schema.org",
“@type”: “ReportageNewsArticle”
} </script>
<script type="application/ld+json"> {
"hasPart": {...},
“isPartOf”: {...}
} </script>
Objects inside Objects
"author": {
"@type": "Person",
}
"author": {
"@type": "Person",
"name": "Aram Zucker-Scharff"
}
"author": {
"@type": "Person",
"name": "Aram Zucker-Scharff"� "sameAs": "http://aramzs.github.io/aramzs/",
}
"author": {
"@type": "Person",� "sameAs": "http://aramzs.github.io/aramzs/",
"image": {� "@type": "ImageObject",� "url": "https://pbs.twimg.com/img.jpeg"� }
}
Let’s build a Schema.org object!��http://aramzs.me/iddemo�
http://aramzs.me/schemags��https://json-ld.org/playground/
This presentation:��http://aramzs.me/jldu��Ask me questions: @Chronotope