Skip to content

Instantly share code, notes, and snippets.

@ericmoritz
Last active August 29, 2015 13:56
Show Gist options
  • Save ericmoritz/9280868 to your computer and use it in GitHub Desktop.
Save ericmoritz/9280868 to your computer and use it in GitHub Desktop.
<html
xmlns:gannett="http://api.gannett.com/vocab/core#">
<head>
<link about="." rel="gannett:section" href="/news/" />
<link about="." rel="gannett:section" href="/life/" />
<title about="." property="schema:name">USA Today</title>
</head>
<body>
<div about="/news/">
<a href="/news/">
<span property="schema:name">News</span>
</a>
</div>
<div about="/news/">
<a href="/news/">
<span property="schema:name">News</span>
</a>
</div>
</body>
</html>
{
"name": "USA Today",
"sections": [
{
"url": "/news/",
"name": "News"
},
{
"url": "/life/",
"name": "Life"
}
]
}
{
"@context": {
"name": "http://schema.org/name",
"sections": "http://api.gannett.com/vocab/core#section"
},
"@id": "/",
"name": "USA Today",
"sections": [
{
"@id": "/news/",
"url": "/news/",
"name": "News"
},
{
"@id": "/life/",
"url": "/life/",
"name": "Life"
}
]
}
@prefix gannett: <http://api.gannett.com/vocab/core#> .
@prefix schema: <http://schema.org/> .
<.> rdf:type gannett:Homepage ;
schema:name "USA Today"@en ;
gannett:section </news/> ;
gannett:section </life/> .
</news/>
schema:name "News"@en ;
rdf:type gannett:Section .
</life/>
schema:name "Life"@en ;
rdf:type gannett:Section .
<html>
<body class="Homepage" id="homepage" data-name="USA Today">
<h1>USA Today</h1>
<div class="Section">
<a href="/news/">
<span data-name="News">News</span>
</a>
</div>
<div class="Section">
<a href="/news/">
<span data-name="News">News</span>
</a>
</div>
</body>
<page
xmlns="http://api.gannett.com/vocab/core#"
xmlns:schema="http://schema.org/"
id="/">
<section id="/news/">
<schema:name>News</schema:name>
</section>
<section id="/life/">
<schema:name>Life</schema:name>
</section>
</page>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment