Skip to content

Commit

Permalink
more rdfa
Browse files Browse the repository at this point in the history
  • Loading branch information
ed@hammer.lisforge.net committed Sep 1, 2009
1 parent b6e4744 commit 2120700
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 8 deletions.
2 changes: 1 addition & 1 deletion index.yaml
Expand Up @@ -18,7 +18,7 @@ indexes:
- name: name
direction: desc

# Used 11 times in query history.
# Used 13 times in query history.
- kind: MediaType
properties:
- name: type
Expand Down
13 changes: 8 additions & 5 deletions templates/home.html
Expand Up @@ -5,8 +5,10 @@
<div id="wrap">

<div id="left_column">
<table>
<th>Content Types</th>
<table>
<tr>
<th>Content Types</th>
</tr>
{% for t in types %}
<tr class="{% cycle a,b %}">
<td><a href="/{{ t }}">{{ t }}</a></td>
Expand All @@ -21,13 +23,14 @@
mints <a href="http://www.w3.org/DesignIssues/LinkedData.html">Linked Data</a>
URIs for <a rel="dct:source" href="http://www.iana.org/assignments/media-types/">MIME Media Types</a>
that are registered with the
<a rel="dct:creator" href="http://www.iana.org/">Internet Assigned Numbers Authority</a>. URIs for
Media Types come in handy when using vocabulary like <a
<a rel="dct:creator" href="http://www.iana.org/">Internet Assigned Numbers
Authority</a>.
A URI for a <span about="mediatypes:MediaType" typeof="rdfs:Class" property="rdfs:label">Media Type</span> come in handy when using vocabulary like <a
href="http://dublincore.org/documents/dcmi-terms/#terms-hasFormat">dcterms:hasFormat</a>:
</p>

<p style="text-align: center;">
<img src="/static/graph.png" />
<img alt="example graph" src="/static/graph.png" />
</p>

<p>
Expand Down
4 changes: 3 additions & 1 deletion templates/site.html
@@ -1,4 +1,6 @@
<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN"
"http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:dct="http://purl.org/dc/terms/"
Expand All @@ -21,7 +23,7 @@
<div id="footer">
<p>
<img alt="rdfa" src="/static/rdfa.png" />
<a href="http://code.google.com/p/mediatypes/"><img alt="mediatypes Google Code project" src="/static/google_code.png" border="0"></a>
<a href="http://code.google.com/p/mediatypes/"><img alt="mediatypes Google Code project" src="/static/google_code.png" style="border:0" /></a>
</p>
</div>
</body>
Expand Down
4 changes: 3 additions & 1 deletion templates/type.html
Expand Up @@ -7,7 +7,9 @@
</tr>
{% for mt in media_types %}
<tr class="{% cycle a,b %}">
<td><a href="{{ mt.relative_uri }}">{{ mt.name }}</a></td>
<td>
<a href="{{ mt.relative_uri }}"><span about="{{ mt.uri }}" property="dct:title" typeof="mediatypes:MediaType">{{ mt.name }}</span></a>
</td>
</tr>
{% endfor %}
</table>
Expand Down

0 comments on commit 2120700

Please sign in to comment.