<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Sparna Blog &#187; alignment</title>
	<atom:link href="https://blog.sparna.fr/tag/alignment/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.sparna.fr</link>
	<description>Web de données &#124; Architecture de l&#039;information &#124; Accès aux connaissances</description>
	<lastBuildDate>Tue, 03 Jun 2025 10:30:27 +0000</lastBuildDate>
	<language>fr-FR</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>SKOS Play : alignments, SKOS-XL, autocomplete search fields, and more !</title>
		<link>https://blog.sparna.fr/2015/01/05/skos-play-thesaurus-alignments-skos-xl-autocomplete-search-fields/</link>
		<comments>https://blog.sparna.fr/2015/01/05/skos-play-thesaurus-alignments-skos-xl-autocomplete-search-fields/#comments</comments>
		<pubDate>Mon, 05 Jan 2015 11:16:56 +0000</pubDate>
		<dc:creator><![CDATA[Thomas Francart]]></dc:creator>
				<category><![CDATA[SKOS]]></category>
		<category><![CDATA[SKOS Play]]></category>
		<category><![CDATA[Thesaurus]]></category>
		<category><![CDATA[alignment]]></category>
		<category><![CDATA[skos play]]></category>
		<category><![CDATA[skos-xl]]></category>
		<category><![CDATA[thesaurus]]></category>

		<guid isPermaLink="false">http://blog.sparna.fr/?p=855</guid>
		<description><![CDATA[<p>There have been a lot of improvements and news on SKOS Play recently, since the last time I took the time to write about it. Here is what you can do with the latest version of the application. Print thesaurus alignments The major enhancement recently added is the ability to generate tables to display thesaurus&#8230;</p>
<p>Cet article <a rel="nofollow" href="https://blog.sparna.fr/2015/01/05/skos-play-thesaurus-alignments-skos-xl-autocomplete-search-fields/">SKOS Play : alignments, SKOS-XL, autocomplete search fields, and more !</a> est apparu en premier sur <a rel="nofollow" href="https://blog.sparna.fr">Sparna Blog</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p style="text-align: justify;">There have been a lot of improvements and news on <strong><a href="http://labs.sparna.fr/skos-play" target="_blank">SKOS Play</a></strong> recently, since <a title="New version of SKOS Play for taxonomy visualization" href="http://blog.sparna.fr/new-version-of-skos-play-for-taxonomy-visualization/">the last time I took the time to write about it</a>. Here is what you can do with the latest version of the application.</p>
<p style="text-align: justify;"><span id="more-855"></span></p>
<h2>Print thesaurus alignments</h2>
<p style="text-align: justify;">The major enhancement recently added is the ability to generate tables to display thesaurus alignments (declared using the <a href="http://www.w3.org/TR/skos-reference/#mapping" target="_blank">mapping properties</a> skos:exactMatch, skos:broadMatch, skos:narrowMatch or skos:relatedMatch). Here is an<strong> <a href="http://blog.sparna.fr/wp-content/uploads/2014/12/architecture-alignement.pdf">example of printing a thesaurus alignment in PDF</a></strong> :</p>
<p><a href="http://blog.sparna.fr/wp-content/uploads/2015/01/alignements.png"><img class="aligncenter wp-image-875 size-large" src="http://blog.sparna.fr/wp-content/uploads/2015/01/alignements-1024x585.png" alt="alignements" width="650" height="371" /></a></p>
<p style="text-align: justify;">This architecture thesaurus from french Ministry of Culture (published in <a href="http://data.culture.fr/thesaurus/" target="_blank">data.culture.fr</a> using <a href="https://github.com/culturecommunication/ginco-diff" target="_blank">GINCO</a>) is aligned with <a href="http://www.getty.edu/research/tools/vocabularies/lod/" target="_blank">Getty AAT</a>, <a href="http://fr.dbpedia.org/" target="_blank">french DBPedia</a> and <a href="http://rameau.bnf.fr/informations/projint.htm#macs" target="_blank">Rameau</a> (published in <a href="http://data.bnf.fr" target="_blank">data.bnf.fr</a>). The table is listing source concepts, and for each of them, the mappings to the other thesauri. It is also possible to generate a slightly different output by grouping the mappings by target thesaurus rather than with an alphabetical listing of the source concepts.</p>
<p style="text-align: justify;">Note that <strong>this is real Linked Data here</strong> : SKOS Play doesn&rsquo;t simply display the URIs of the target concepts (e.g. <a href="http://data.bnf.fr/11936410/abattoirs/" target="_blank">http://data.bnf.fr/11936410/abattoirs/</a>), but rather their labels by <strong>following the URIs and fetching the labels dynamically.</strong> This can obviously take a long time if the alignement is large. Of course, each target concept label is clickable so that you can navigate to the corresponding page.</p>
<h2>Print OWL files, too !</h2>
<p style="text-align: justify;">In some cases, people working on large ontologies with lots of classes (e.g. medical ontologies, like <a href="http://bioportal.bioontology.org/ontologies/HRDO" target="_blank">HRDO</a> with &gt; 13000 classes) also have a need to print them, much like people working on thesauri. This is why <strong>SKOS Play now includes an option to convert an <a href="http://www.w3.org/TR/owl-features/" target="_blank">OWL</a> class hierarchy to SKOS</strong>, to be able to print it. Of course by doing so we lose the rest of the ontology structure; here is exactly what this conversion does :</p>
<ul style="text-align: justify;">
<li>the OWL Ontology becomes a SKOS concept scheme;</li>
<li>every OWL class becomes a SKOS concept, and is declared &laquo;&nbsp;skos:inScheme&nbsp;&raquo; of the generated concept scheme;</li>
<li>the rdfs:subClassOf links yields skos:narrower and skos:broader relations;</li>
<li>rdfs:labels on OWL classes generate skos:prefLabel;</li>
</ul>
<p style="text-align: justify;">While this remains pretty basic, it gives a nice a easy path to <strong>use SKOS Play to display OWL classes hierarchies</strong>.</p>
<h2>Use data expressed using SKOS-XL</h2>
<p style="text-align: justify;">SKOS comes with the optional extension <a href="http://www.w3.org/TR/2009/REC-skos-reference-20090818/#xl" target="_blank">SKOS-XL</a>, that allows to declare the labels themselves as separate resources. Until now SKOS Play was not compatible with this extension. It is now the case, with an additionnal option (activated by default) that will apply simple inference rules to regenerate internally plain SKOS labels (pref, alt or hidden) from their SKOS-XL equivalent.</p>
<h2>Generate autocomplete field with the thesaurus terms</h2>
<p style="text-align: justify;">A  typical usage of a thesaurus in a search system is to guide the user typing queries in an input field. While this functionnaly is usually achieved using search engines autocomplete features (see <a href="https://wiki.apache.org/solr/Suggester" target="_blank">SolR suggester</a>), it is sometimes desirable to be able to do the same entirely on the client side when no search engine is available. And this is what SKOS Play does :</p>
<p>1. You see a page with an input field saying &laquo;&nbsp;search 1234 terms in thesaurus Y&nbsp;&raquo; :</p>
<p><a href="http://blog.sparna.fr/wp-content/uploads/2015/01/autocomplete-0.png"><img class="aligncenter wp-image-866 size-large" src="http://blog.sparna.fr/wp-content/uploads/2015/01/autocomplete-0-1024x585.png" alt="autocomplete-0" width="650" height="371" /></a></p>
<p>2. When you start typing, you get suggestions from the thesaurus, with definition and scope note displayed for each of them :</p>
<p><a href="http://blog.sparna.fr/wp-content/uploads/2015/01/autocomplete-2.png"><img class="aligncenter wp-image-867 size-large" src="http://blog.sparna.fr/wp-content/uploads/2015/01/autocomplete-2-1024x585.png" alt="autocomplete-2" width="650" height="371" /></a></p>
<p>3. When clicking on a suggested term, the corresponding concept URI is selected and can be sent to a search index to fetch resources indexed on that concept.</p>
<p style="text-align: justify;">This is implemented using <a href="http://jqueryui.com/autocomplete/" target="_blank">JQuery UI autocomplete widget</a> and everything is on the client side &#8211; no server required ! the page can be saved locally and adapted to an existing search portal. The terms fueling the completion list are written in JSON in the page :</p>
<pre id="line1">{
<span id="line111"></span>    "uri" : "http://skos.um.es/unescothes/C00007",
<span id="line112"></span>    "label" : "Abstract journals",
<span id="line113"></span>    "pref" : "Abstracts",
<span id="line114"></span>    "type" : "alt"
<span id="line115"></span>  }, {
<span id="line116"></span>    "uri" : "http://skos.um.es/unescothes/C03290",
<span id="line117"></span>    "label" : "Abstract reasoning",
<span id="line118"></span>    "pref" : "Reasoning",
<span id="line119"></span>    "type" : "alt"
<span id="line120"></span>  }, {
<span id="line121"></span>    "uri" : "http://skos.um.es/unescothes/C00007",
<span id="line122"></span>    "label" : "Abstracts",
<span id="line123"></span>    "scopeNote" : "The usually non-critical indication of the subject contents of a document, aiming to permit the user a decision about the relevance of the document.",
<span id="line124"></span>    "type" : "pref"
<span id="line125"></span>  }</pre>
<h2>Generate professional-looking PDF documents for your thesauri</h2>
<p style="text-align: justify;">SKOS Play is used by french Ministry of Culture to generate professional-looking PDF documents, in their effort to structure, align and publish controlled vocabularies on <a href="http://data.culture.fr/thesaurus/" target="_blank">http://data.culture.fr/thesaurus/</a> (using <a href="https://github.com/culturecommunication/ginco" target="_blank">GINCO</a> and <a href="https://github.com/culturecommunication/ginco-diff" target="_blank">GINCO Diffusion</a>). SKOS Play was used to generate the final PDF rendering of the &laquo;&nbsp;<a href="http://www.inventaire.culture.gouv.fr/telechar/thesaurus_architecture_2013.pdf" target="_blank">Thesaurus de la désignation des oeuvres architecturales et des espaces aménagés</a>&nbsp;&raquo; and the &laquo;&nbsp;<a href="http://www.inventaire.culture.gouv.fr/telechar/thesaurus_objets_mobiliers_2014.pdf" target="_blank">Thesaurus de la désignation des objets mobiliers</a>&laquo;&nbsp;.</p>
<p><a href="http://blog.sparna.fr/wp-content/uploads/2015/01/alpha-index-1.png"><img class="aligncenter wp-image-871 size-large" src="http://blog.sparna.fr/wp-content/uploads/2015/01/alpha-index-1-1024x561.png" alt="alpha-index-1" width="650" height="356" /></a></p>
<p style="text-align: justify;">These PDFs include :</p>
<ul>
<li style="text-align: justify;">an alphabetical index containing for each term :
<ul>
<li style="text-align: justify;">the corresponding preferred term, if the term is non-preferred;</li>
<li style="text-align: justify;">if the term is a preferred term :
<ul>
<li style="text-align: justify;">its broader, narrowers, related and top term (clickable to navigate in the PDF);</li>
<li style="text-align: justify;">a scope note and a definition (if available);</li>
</ul>
</li>
</ul>
</li>
<li style="text-align: justify;">a hierarchical display, with each entry being clickable to navigate to the alphabetical index;</li>
<li style="text-align: justify;">translation tables, when the thesaurus is multilingual;</li>
</ul>
<p>An effort as been made on the page layout and design to achieve optimal readability.</p>
<h2>Generate permuted indexes (KWIC)</h2>
<p>SKOS Play also allows you to generate <a href="http://en.wikipedia.org/wiki/Key_Word_in_Context" target="_blank">permuted indexes</a> from the labels of the thesaurus :</p>
<p><a href="http://blog.sparna.fr/wp-content/uploads/2015/01/kwic.png"><img class="wp-image-872 size-large aligncenter" src="http://blog.sparna.fr/wp-content/uploads/2015/01/kwic-1024x585.png" alt="kwic" width="650" height="371" /></a></p>
<p>This can be used to easily search a term in the thesaurus, or check in which label a given word appear. Note that the computed permutations are correctly excluding stopwords based on the chosen language.</p>
<p>As usual, the output is available in HTML or PDF.</p>
<h2>More to come in 2015 !</h2>
<p>Probably new enhancements will come in 2015 :</p>
<ul>
<li>display images associated with each concepts, if they are available;</li>
<li>handle right-to-left languages (arabic);</li>
</ul>
<p>and more, based on your feedback, most welcomed as usual !</p>
<p>Cet article <a rel="nofollow" href="https://blog.sparna.fr/2015/01/05/skos-play-thesaurus-alignments-skos-xl-autocomplete-search-fields/">SKOS Play : alignments, SKOS-XL, autocomplete search fields, and more !</a> est apparu en premier sur <a rel="nofollow" href="https://blog.sparna.fr">Sparna Blog</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://blog.sparna.fr/2015/01/05/skos-play-thesaurus-alignments-skos-xl-autocomplete-search-fields/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
