<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="4.3.4">Jekyll</generator><link href="http://egonw.github.io/blog/feed/by_tag/skos.xml" rel="self" type="application/atom+xml" /><link href="http://egonw.github.io/blog/" rel="alternate" type="text/html" /><updated>2026-11-19T06:09:00+00:00</updated><id>http://egonw.github.io/blog/feed/by_tag/skos.xml</id><title type="html">chem-bla-ics</title><subtitle>Chemblaics (pronounced chem-bla-ics) is the science that uses open science and computers to solve problems in chemistry, biochemistry and related fields.</subtitle><author><name>Egon Willighagen</name></author><entry><title type="html">MetWare screenshot: propagating XML Schema data types</title><link href="http://egonw.github.io/blog/2008/08/26/metware-screenshot-propagating-xml.html" rel="alternate" type="text/html" title="MetWare screenshot: propagating XML Schema data types" /><published>2008-08-26T00:00:00+00:00</published><updated>2008-08-26T00:00:00+00:00</updated><id>http://egonw.github.io/blog/2008/08/26/metware-screenshot-propagating-xml</id><content type="html" xml:base="http://egonw.github.io/blog/2008/08/26/metware-screenshot-propagating-xml.html"><![CDATA[<p>Just a quick screenshot. Remember our use of <a href="http://chem-bla-ics.blogspot.com/2008/05/metware-status-report.html">SKOS in MetWare</a>?
<a href="https://chem-bla-ics.blogspot.com/2008/08/metware-screenshot-propagating-xml.html">Steffen</a> has been working on creating integrated
<a href="http://en.wikipedia.org/wiki/JavaServer_Faces">JSF pages</a>, while I am focusing on autogeneration of blobs. The below screenshot is
such a blob, called a UI component in JSF, which allows easy embedding the the aggregations Steffen is working on.</p>

<p>Autogeneration of web content benefits greatly from well defined input, including data types.
<a href="http://www.metware.org/">MetWare</a> uses <a href="http://en.wikipedia.org/wiki/XML_Schema_(W3C)#Data_Types">XML Schema Data Types</a>
for this, as <a href="http://chem-bla-ics.blogspot.com/2008/08/metware-screenshot-spectrum-support-2.html">mentioned ealier</a> when I briefly
mentioned generation of search pages. That example showed the creation of range input on <code class="language-plaintext highlighter-rouge">xsd:integer</code> types. The below screenshot
shows the different output for <code class="language-plaintext highlighter-rouge">xsd:string</code> (input text box) and <code class="language-plaintext highlighter-rouge">xsd:boolean</code>:</p>

<p><img src="/blog/assets/images/boolDataType.png" alt="" /></p>

<p>Now, this example is not really shocking, but MetWare defines additional types, for example an InChI data type:</p>

<div class="language-xml highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nt">&lt;simpleType</span> <span class="na">name=</span><span class="s">"inchi"</span><span class="nt">&gt;</span>
  <span class="nt">&lt;restriction</span> <span class="na">base=</span><span class="s">"string"</span><span class="nt">&gt;</span>
    <span class="nt">&lt;pattern</span> <span class="na">value=</span><span class="s">"InChI=1/.*"</span><span class="nt">/&gt;</span>
  <span class="nt">&lt;/restriction&gt;</span>
<span class="nt">&lt;/simpleType&gt;</span>
</code></pre></div></div>

<p>This allows me to tweak the HTML output created by the JSF pages to include <a href="http://microformats.org/">microformats</a> to support
the <a href="http://chem-bla-ics.blogspot.com/2007/05/cb-comments-for-inchis.html">Sechemtic</a> userscript (see also
doi:<a href="https://doi.org/10.1186/1471-2105-8-487">10.1186/1471-2105-8-487</a>).</p>

<p>Or, to provide a drop down box, listing the allowed values:</p>

<div class="language-xml highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nt">&lt;simpleType</span> <span class="na">name=</span><span class="s">"deviceVendor"</span><span class="nt">&gt;</span>
  <span class="nt">&lt;restriction</span> <span class="na">base=</span><span class="s">"string"</span><span class="nt">&gt;</span>
    <span class="nt">&lt;enumeration</span> <span class="na">value=</span><span class="s">"BioCrates"</span><span class="nt">/&gt;</span>
    <span class="nt">&lt;enumeration</span> <span class="na">value=</span><span class="s">"Bruecker"</span><span class="nt">/&gt;</span>
  <span class="nt">&lt;/restriction&gt;</span>
<span class="nt">&lt;/simpleType&gt;</span>
</code></pre></div></div>]]></content><author><name>Egon Willighagen</name></author><category term="metware" /><category term="xml" /><category term="skos" /><category term="doi:10.1186/1471-2105-8-487" /><summary type="html"><![CDATA[Just a quick screenshot. Remember our use of SKOS in MetWare? Steffen has been working on creating integrated JSF pages, while I am focusing on autogeneration of blobs. The below screenshot is such a blob, called a UI component in JSF, which allows easy embedding the the aggregations Steffen is working on.]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://egonw.github.io/blog/blog/assets/images/boolDataType.png" /><media:content medium="image" url="http://egonw.github.io/blog/blog/assets/images/boolDataType.png" xmlns:media="http://search.yahoo.com/mrss/" /></entry><entry><title type="html">MetWare screenshot: spectrum support #2</title><link href="http://egonw.github.io/blog/2008/08/21/metware-screenshot-spectrum-support-2.html" rel="alternate" type="text/html" title="MetWare screenshot: spectrum support #2" /><published>2008-08-21T00:00:00+00:00</published><updated>2008-08-21T00:00:00+00:00</updated><id>http://egonw.github.io/blog/2008/08/21/metware-screenshot-spectrum-support-2</id><content type="html" xml:base="http://egonw.github.io/blog/2008/08/21/metware-screenshot-spectrum-support-2.html"><![CDATA[<p>As <a href="http://chem-bla-ics.blogspot.com/2008/08/metware-screenshot-spectrum-support.html">promised yesterday</a>, here’s the pretty
visualization of the mass spectrum, using JavaScript from the <a href="http://www.ebi.ac.uk/pride/#soft">PRIDE project</a>:</p>

<p><img src="/blog/assets/images/msGUI.png" alt="" /></p>

<p>Note the manual adding of peaks at 10 and 100 m/z to get the real peaks somewhere in the middle instead of on the left and right border of the graph.</p>

<p>Meanwhile, the search page is now autogenerated too, and the types of searches allowed (min, max in the picture) again depends on the
XML Scheme data type defined in the <a href="http://metware.svn.sourceforge.net/viewvc/metware/BigMet/trunk/src/main/onto/metware.skos?content-type=text%2Fxml&amp;revision=HEAD">MetWare SKOS</a>:</p>

<p><img src="/blog/assets/images/mwSearch.png" alt="" /></p>]]></content><author><name>Egon Willighagen</name></author><category term="metware" /><category term="metabolomics" /><category term="xml" /><category term="skos" /><summary type="html"><![CDATA[As promised yesterday, here’s the pretty visualization of the mass spectrum, using JavaScript from the PRIDE project:]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://egonw.github.io/blog/blog/assets/images/msGUI.png" /><media:content medium="image" url="http://egonw.github.io/blog/blog/assets/images/msGUI.png" xmlns:media="http://search.yahoo.com/mrss/" /></entry></feed>