Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jronallo/1780916 to your computer and use it in GitHub Desktop.
Save jronallo/1780916 to your computer and use it in GitHub Desktop.
An HTML5+RDFa1.1 version of an example article by Jason Ronallo
<!-- An RDFa 1.1 version of the data presented in the article
"HTML5 Microdata and Schema.org" at
<http://journal.code4lib.org/articles/6400>.
The article is licensed under a Creative Commons Attribution 3.0 United
States License. This example code should be consired a remix thereof. -->
<div id="main" role="main" class="container_12" vocab="http://schema.org/" resource="" typeof="ItemPage">
<h2 id="page_name" property="name">
Students jumping in front of Memorial Bell Tower
</h2>
<div class="grid_5" resource="http://www.freebase.com/m/026twjv">
<img property="image" id="main_image" alt="Students jumping in front of Memorial Bell Tower" src="/images/bell_tower.png">
</div>
<div id="metadata" class="grid_7" property="about" resource="/images/bell_tower.png" typeof="Photograph">
<div id="object" class="info">
<h2>Photograph Information</h2>
<dl>
<dt>Created Date</dt>
<dd>
<time property="dateCreated" datetime="1981">circa 1981</time>
</dd>
<dt>Subjects</dt>
<dd>
<span property="keywords"><a href="/s/buildings">Buildings</a></span><br>
<span property="keywords"><a href="/s/students">Students</a></span><br>
</dd>
<dt>Genre</dt>
<dd>
<span property="genre"><a href="/g/architectural_photos">Architectural photographs</a></span><br>
<span property="genre"><a href="/g/publicity_photos">Publicity photographs</a></span>
</dd>
<dt>Digital Collection</dt>
<dd><a href="/c/uapc">University Archives Photographs</a></dd>
</dl>
</div><!-- item -->
<div id="building" class="info" property="about" resource="http://www.freebase.com/m/026twjv" typeof="LandmarksOrHistoricalBuildings">
<h2>Building Information</h2>
<dl>
<dt>Building Name</dt>
<dd><span property="name"><a href="/b/memorial_tower">Memorial Tower</a></span></dd>
<dt>Description</dt>
<dd property="description">Memorial Tower honors those alumni who were killed in World War I.
The cornerstone was laid in 1922 and the Tower was dedicated on
November 11, 1949.</dd>
<dt>Address</dt>
<dd property="address" typeof="PostalAddress">
<span property="streetAddress">2701 Sullivan Drive</span><br>
<span property="addressLocality">Raleigh</span>, <span property="addressLocality">NC</span> <span property="postalCode">26707</span>
</dd>
<dt>Latitude, Longitude</dt>
<dd property="geo" typeof="GeoCoordinates">
<span property="latitude" datatype="xsd:decimal">35.786098</span>,
<span property="longitude" datatype="xsd:decimal">-78.663498</span>
</dd>
</dl>
</div><!-- building -->
<div id="source" class="info">
<h2>Source Information</h2>
<dl>
<!-- ... -->
<dt>Rights</dt>
<dd property="dc:rights">
Reproduction and use of this material requires permission from
North Carolina State University.</dd>
</dl>
</div><!-- source -->
</div>
</div>
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rdfa: <http://www.w3.org/ns/rdfa#> .
@prefix dc: <http://purl.org/dc/terms/> .
@prefix : <http://schema.org/> .
<> a :ItemPage;
:about </images/bell_tower.png>;
:name "Students jumping in front of Memorial Bell Tower";
dc:rights "Reproduction and use of this material requires permission from North Carolina State University.";
rdfa:usesVocabulary : .
</images/bell_tower.png> a :Photograph;
:about <http://www.freebase.com/m/026twjv>;
:dateCreated "1981"^^xsd:gYear;
:genre "Architectural photographs",
"Publicity photographs";
:keywords "Buildings",
"Students" .
<http://www.freebase.com/m/026twjv> a :LandmarksOrHistoricalBuildings;
:address [ a :PostalAddress;
:addressLocality "NC",
"Raleigh";
:postalCode "26707";
:streetAddress "2701 Sullivan Drive" ];
:description "Memorial Tower honors those alumni who were killed in World War I. The cornerstone was laid in 1922 and the Tower was dedicated on November 11, 1949.";
:geo [ a :GeoCoordinates;
:latitude 35.786098;
:longitude -78.663498 ];
:image </images/bell_tower.png>;
:name "Memorial Tower" .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment