Mark library & flowcell as a type in RDF.
authorDiane Trout <diane@caltech.edu>
Thu, 22 Sep 2011 21:51:11 +0000 (14:51 -0700)
committerDiane Trout <diane@caltech.edu>
Thu, 22 Sep 2011 21:51:11 +0000 (14:51 -0700)
htsworkflow/frontend/templates/base.html
htsworkflow/frontend/templates/experiments/flowcell_header.html
htsworkflow/frontend/templates/sample_header.html

index 7691c58aba2861c457c7e88e04689f2fe6e4f9ec..e623d0d6f6672640f9afff19d418566cc6f5025f 100644 (file)
@@ -4,6 +4,8 @@
 <html xmlns="http://www.w3.org/1999/xhtml"
       version="XHTML+RDFa 1.0"
       xmlns:xml="http://www.w3.org/1999/xhtml"
+      xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+      xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
       xmlns:dc="http://purl.org/dc/elements/1.1/"
       xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
       xmlns:libns="http://jumpgate.caltech.edu/wiki/LibraryOntology#"
index abca499242c4a92b26f3b3faa8349e5ef367d4cd..15ccdae05e5cd0eae02476fe8d36d193c5832c15 100644 (file)
@@ -1,13 +1,14 @@
   <div class="flowcell_identity">
   <h2>About this Flowcell</h2>
-  <b>Flowcell</b>: 
-    <a href="{{flowcell.get_absolute_url}}" property="libns:flowcell_id">{{flowcell.flowcell_id}}</a>{% if user.is_staff %}<a href="{{flowcell.get_admin_url}}"><img class="icon_button" src="/media/img/admin/icon_changelink.gif" alt="Edit"/></a>{% endif%}<br/>
+  <b>Flowcell</b>:
+    <a href="{{flowcell.get_absolute_url}}" property="libns:flowcell_id">{{flowcell.flowcell_id}}</a>{% if user.is_staff %}<a href="{{flowcell.get_admin_url}}"><img class="icon_button" src="/media/img/admin/icon_changelink.gif" alt="Edit"/></a>{% endif%}
+  <br property="rdf:type" content="libns:illumina_flowcell"/>
   <b>Run Date</b>:
     <span property="libns:date" content="{{flowcell.run_date|date:'Y-m-d\TH:i:s'}}" datatype="xsd:dateTime">{{ flowcell.run_date }}</span><br/>
-  <b>Type</b>: 
+  <b>Type</b>:
     <span property="libns:flowcell_type">{{flowcell.flowcell_type}}</span><br/>
   <b>Read Length</b>:
-    <span property="libns:read_length">{{flowcell.read_length}}</span><br/>
+    <span property="libns:read_length" datatype="xsd:decimal">{{flowcell.read_length}}</span><br/>
   <b>Control Lane</b>:
     <span property="libns:control_lane">{{flowcell.control_lane}}</span><br/>
 
index 1800fe54f2ab8219aa138cb06399e351ea22fcf2..e3cbeb18ce1e1c04d7f2228503097fd9589024eb 100644 (file)
@@ -4,7 +4,7 @@
     <b>Library ID</b>:
        <a href="{{lib.get_absolute_url}}"><span property="libns:library_id">{{ lib.id }}</span></a>
        {% if user.is_staff %}<a href="{{lib.get_admin_url}}"><img class="icon_button" src="/media/img/admin/icon_changelink.gif"/></a>{% endif %}
-       <br/>
+       <br property="rdf:type" content="libns:library"/>
     <b>Name</b>:
       <span property="libns:name">{{ lib.library_name }}</span>
     <br/>