<?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; Sparnatural</title>
	<atom:link href="https://blog.sparna.fr/category/outils/sparnatural/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>Sparnatural as a simple data federation facade</title>
		<link>https://blog.sparna.fr/2025/06/03/sparnatural-data-federation-sparql/</link>
		<comments>https://blog.sparna.fr/2025/06/03/sparnatural-data-federation-sparql/#comments</comments>
		<pubDate>Tue, 03 Jun 2025 10:30:27 +0000</pubDate>
		<dc:creator><![CDATA[Thomas Francart]]></dc:creator>
				<category><![CDATA[Sparnatural]]></category>
		<category><![CDATA[SPARQL]]></category>

		<guid isPermaLink="false">https://blog.sparna.fr/?p=1995</guid>
		<description><![CDATA[<p>Together with the FAIR-data-evangelists of the MSH Val-de-Loire, we rencently worked on the v2 of the OpenArchaeo portal that uses Sparnatural as its core visual data exploration component (the v2 is not yet visible, but hopefully will be finalized and announced soon !) It uses a new feature of Sparnatural : the ability to act&#8230;</p>
<p>Cet article <a rel="nofollow" href="https://blog.sparna.fr/2025/06/03/sparnatural-data-federation-sparql/">Sparnatural as a simple data federation facade</a> est apparu en premier sur <a rel="nofollow" href="https://blog.sparna.fr">Sparna Blog</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>Together with the FAIR-data-evangelists of the MSH Val-de-Loire, we rencently worked on the v2 of the OpenArchaeo portal that uses <a href="https://sparnatural.eu/">Sparnatural</a> as its core visual data exploration component (the v2 is not yet visible, but hopefully will be finalized and announced soon !)</p>
<p>It uses a new feature of Sparnatural : the ability to act as a <strong>single UI facade to multiple SPARQL endpoints</strong>. The user visually writes a single query, the query is sent to multiple data sources, and results are aggregated to be presented to the user in a single result set, that includes each result provenance.</p>
<p>This is depicted in the diagram below:</p>
<p>&nbsp;</p>
<p><a href="https://blog.sparna.fr/wp-content/uploads/2025/06/Capture-d’écran-du-2025-06-02-07-52-39.png"><img class="aligncenter wp-image-2004 size-full" src="https://blog.sparna.fr/wp-content/uploads/2025/06/Capture-d’écran-du-2025-06-02-07-52-39.png" alt="" width="851" height="720" /></a></p>
<p>The user writes his query visually in Sparnatural, here <em>&laquo;&nbsp;All archaelogical sites where burials have been found, with the name of their discoverer, if known&nbsp;&raquo; :</em></p>
<p><a href="https://blog.sparna.fr/wp-content/uploads/2025/06/Capture-d’écran-du-2025-06-01-21-04-25.png"><img class="aligncenter size-full wp-image-1997" src="https://blog.sparna.fr/wp-content/uploads/2025/06/Capture-d’écran-du-2025-06-01-21-04-25.png" alt="Capture d’écran du 2025-06-01 21-04-25" width="1225" height="340" /></a></p>
<p>The visual query is translated into SPARQL, and that <strong>SPARQL query is sent to each data source</strong> in the federation (actually, the user can select the ones he wants to query). This is depicted by the green arrows in the diagram, numbered &laquo;&nbsp;1&nbsp;&raquo;.</p>
<p>The SPARQL query looks like the following; note how it uses complex CIDOC-CRM property paths, such as the highlighted one, while the visual user query was simple:</p>
<p><a href="https://blog.sparna.fr/wp-content/uploads/2025/06/Capture-d’écran-du-2025-06-02-07-58-49.png"><img class="aligncenter size-full wp-image-2007" src="https://blog.sparna.fr/wp-content/uploads/2025/06/Capture-d’écran-du-2025-06-02-07-58-49.png" alt="Capture d’écran du 2025-06-02 07-58-49" width="1228" height="326" /></a></p>
<p><strong>Each SPARQL service returns a result</strong>. This is depicted by the orange arrows in the diagram, numbered &laquo;&nbsp;2&nbsp;&raquo;.</p>
<p>When every endpoint have answered, their <strong>results are aggregated into a single result set</strong>. This is number &laquo;&nbsp;3&nbsp;&raquo; in the diagram. During this aggregation, an extra column is added in the result set, containing the name of the source from which the result was retrieved.</p>
<p>The user sees the aggregated result; here, the name of the site, the name of its discovered when known, and the source in which the result was found:</p>
<p><a href="https://blog.sparna.fr/wp-content/uploads/2025/06/Capture-d’écran-du-2025-06-01-21-05-24.png"><img class="aligncenter size-full wp-image-1998" src="https://blog.sparna.fr/wp-content/uploads/2025/06/Capture-d’écran-du-2025-06-01-21-05-24.png" alt="Capture d’écran du 2025-06-01 21-05-24" width="1274" height="1025" /></a></p>
<p>This is possible thanks to the <a href="https://docs.sparnatural.eu/Querying-multiple-endpoints.html"><strong>catalog configuration of Sparnatural</strong></a><strong>.</strong></p>
<p>Sparnatural can be passed a catalog of SPARQL endpoints in a federation, and in this case, it will send the same SPARQL query to each, and will aggregate the results. This happens for the final query of course, but also <a href="https://docs.sparnatural.eu/Querying-multiple-endpoints.html#sparnatural-behavior">during selection of values in the query UI</a>.</p>
<p>There are two main limits of this approach:</p>
<ul>
<li>Limit 1 : <strong>all sources in the federation must share the same data model</strong>, as the same query is sent to every source</li>
<li>Limit 2 : each source must be independant : there should be <strong>no links from one source to another source</strong> so that the query can be solved by each endpoint independantly (so actually, no truly distributed linked data)</li>
</ul>
<p>Those are the reasons I have entitled the post &laquo;&nbsp;<em>simple</em> federation facade&nbsp;&raquo;. Those 2 hypothesis are met in OpenArchaeo, and they were also met in the case of the (never released) prototype of the <a href="https://pro.europeana.eu/project/linked-data-task-force">Europeana Linked Data taskforce</a>. If you know other cases of data federation in which this is also true, tell us ! (we could actually try the same on a few DBPedia endpoints using the <a href="https://dbpedia.org/ontology/">dbo ontology</a> as a pivot model)</p>
<p>Now guess what ? in Sparnatural we have a &laquo;&nbsp;query UI to SPARQL&nbsp;&raquo; transformation step, thanks to the <a href="https://docs.sparnatural.eu/how-to-configure-shacl/How-to-configure-Sparnatural-shacl.html">SHACL configuration of Sparnatural</a>. Basically we can map a UI property on an underlying property path. Then it would not be too difficult to do this mapping on a source-by-source basis, to have different queries sent to each source, from a single query in the UI. The result set structure would be the same, and result set aggregation can still happen. We would then overcome the first limit described above. <strong>That&rsquo;s the next step !</strong></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Cet article <a rel="nofollow" href="https://blog.sparna.fr/2025/06/03/sparnatural-data-federation-sparql/">Sparnatural as a simple data federation facade</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/2025/06/03/sparnatural-data-federation-sparql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Genesis of Sparnatural in the context of the OpenArchaeo platform</title>
		<link>https://blog.sparna.fr/2025/03/28/the-genesis-of-sparnatural-in-the-context-of-the-openarchaeo-platform/</link>
		<comments>https://blog.sparna.fr/2025/03/28/the-genesis-of-sparnatural-in-the-context-of-the-openarchaeo-platform/#comments</comments>
		<pubDate>Fri, 28 Mar 2025 14:54:53 +0000</pubDate>
		<dc:creator><![CDATA[Marie Muller]]></dc:creator>
				<category><![CDATA[FAIR]]></category>
		<category><![CDATA[Linked Data]]></category>
		<category><![CDATA[Ontologies]]></category>
		<category><![CDATA[Open Data]]></category>
		<category><![CDATA[Recherche d'informations]]></category>
		<category><![CDATA[Sparnatural]]></category>
		<category><![CDATA[SPARQL]]></category>
		<category><![CDATA[Triplestores]]></category>
		<category><![CDATA[CIDOC-CRM]]></category>
		<category><![CDATA[Huma-Num]]></category>
		<category><![CDATA[ResearchSpace]]></category>
		<category><![CDATA[thesaurus]]></category>
		<category><![CDATA[Triplestore]]></category>

		<guid isPermaLink="false">https://blog.sparna.fr/?p=1949</guid>
		<description><![CDATA[<p>The OpenArchaeo platform, developed by French consortium Huma-Num MASAplus (Mémoire des Archéologues et des Sites Archéologiques) together with SPARNA, is a platform dedicated to archaeological data interoperability. This semantic interoperability objective relies on the strong conceptual foundations offered by the CIDOC-CRM data model. Paired with the CIDOC-CRM in a federated way, OpenArchaeo aims at :&#8230;</p>
<p>Cet article <a rel="nofollow" href="https://blog.sparna.fr/2025/03/28/the-genesis-of-sparnatural-in-the-context-of-the-openarchaeo-platform/">The Genesis of Sparnatural in the context of the OpenArchaeo platform</a> est apparu en premier sur <a rel="nofollow" href="https://blog.sparna.fr">Sparna Blog</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>The <a href="http://openarchaeo.huma-num.fr">OpenArchaeo</a> platform, developed by French <a href="https://www.huma-num.fr/les-consortiums-hn/#MASAplus">consortium Huma-Num MASAplus</a> (Mémoire des Archéologues et des Sites Archéologiques) together with SPARNA, is a platform dedicated to archaeological data interoperability. This semantic interoperability objective relies on the strong conceptual foundations offered by the <a href="https://blog.sparna.fr/2019/03/26/le-cidoc-crm-ne-nous-arrachons-plus-les-cheveux/">CIDOC-CRM</a> data model.</p>
<p>Paired with the CIDOC-CRM in a federated way, OpenArchaeo aims at :</p>
<ul>
<li>making available the archaeological datasets produced by the MASAplus consortium’s partners on the semantic web, in the form of a triplestore with data aligned with the ontology and its extensions dedicated to archaeology ;</li>
<li>providing an intuitive query interface for archaeological data.</li>
</ul>
<p>The latter query interface integrates the Sparnatural knowledge graph exploration component. The UI of this component was heavily inspired by the British Museum&rsquo;s ResearchSpace semantic search feature, as the system proposes the user to build his own queries based on the CIDOC-CRM model underlying the data.</p>
<h2>About ResearchSpace platform</h2>
<p>Initiated in 2009 by a cross-disciplinary team at the British Museum, ResearchSpace is « A full CIDOC-CRM authoring and search system, based on an exhaustive collection of forms that reflects all applicable relationships from the CIDOC CRM ontology. »</p>
<p>Among a wide range of semantic tools to create, manipulate, analyse and visualise data, the platform provides a s<a href="https://documentation.researchspace.org/resource/Help:SemanticSearch">emantic structured search component</a> based on categories and relations.</p>
<p>While open source, ResearchSpace’s code didn’t fit our architecture : we just chose to follow the simple visual elements of ResearchSpace’s query interface to develop our own Sparnatural query builder for OpenArchaeo, and set up a system of icons to identify the main components of the archaeological data.</p>
<p>ResearchSpace has recently (december 2024) released a brand new <a href="https://github.com/researchspace/researchspace/blob/master/release-notes.md">4.0.0 version</a>. This latest can be installed easily and now comes with a default setup of forms based on the CIDOC-CRM. It enables image annotations, knowledge maps creations, semantic narratives writing, timeline productions, and more <a href="https://researchspace.org/semantic-tools/">semantic tools</a>.</p>
<h2>Sparnatural’s first use-case was OpenArchaeo’s CIDOC-CRM model !</h2>
<p><a href="http://openarchaeo.huma-num.fr/explorateur/home">The structure of the knowledge graph of OpenArchaeo</a> relies on the CIDOC-CRM and some of its extension (CRMarchaeo, CRMsci and CRMba). It is a generic model that covers the basic concepts found in most archaeological corpuses (site, operation, structure, feature, wall, burial, stratigraphic unit and artifact).</p>
<p>Here a focus on Class S19 :</p>
<p><a href="https://blog.sparna.fr/wp-content/uploads/2025/03/modeleOpenArchaeoEn_base.png"><img class="aligncenter size-full wp-image-1950" src="https://blog.sparna.fr/wp-content/uploads/2025/03/modeleOpenArchaeoEn_base.png" alt="modeleOpenArchaeoEn_base" width="898" height="416" /></a><br />
Several external thesauri were added too for querying the datasets : <a href="https://pactols.frantiq.fr/">PACTOLS thesaurus for archaelogy</a>, but also <a href="https://www.geonames.org/ontology/documentation.html">Geonames</a> and <a href="https://perio.do/technical-overview/">Periodo</a> for spatial and temporal searches.</p>
<p>This way, when users wish to connect two elements (artifact and site for example), the interface automatically suggests the available relationships between these entities, enabling users to formulate their request in a simple way without having to know either the entities and properties of CIDOC CRM, or the structure of the system : the SPARQL queries that correspond to the sentences visually built by users will be automatically computed. In addition, the usage of thesauri allows the users to cross-reference easily multiple datasets through the different widgets proposed in Sparnatural.</p>
<h2><a href="https://github.com/sparna-git/Sparnatural/releases">Get the latest release of Sparnatural !</a></h2>
<p>Since it was created for OpenArchaeo in 2019, Sparnatural UI has been fully redesigned. It now offers a large panel of features, from different <a href="https://docs.sparnatural.eu/widgets.html">widgets for value selection</a> (dropdown lists, ordered by occurrence count or alphabetically, autocomplete search fields, date pickers, tree widgets&#8230;) to brand new <a href="https://docs.sparnatural.eu/result-display.html">result display plugins</a> : the default visualisation is a table of results, but if the results are geolocalized they can be shown in a map. Also grid, stats, pie or bar charts, and a timeline plugin have been made available and documented.</p>
<h2>To go further on OpenArchaeo’s platform &#8230;</h2>
<p><a href="https://www.youtube.com/watch?v=8GW5sirwHJs">See a presentation of the project on the CIDOC Museum Documentation Channel</a><br />
(« Semantic modelling of archaeological data online workshop series »)</p>
<p>The platform : <a href="http://openarchaeo.huma-num.fr/">http://openarchaeo.huma-num.fr/</a></p>
<p>The project : <a href="https://masa.hypotheses.org/openarchaeo">https://masa.hypotheses.org/openarchaeo</a></p>
<p>Read full research paper about the project : <a href="https://ceur-ws.org/Vol-2375/paper1.pdf">https://ceur-ws.org/Vol-2375/paper1.pdf</a></p>
<p><em>Image : Vestiges of a large villa in Courbehaye &laquo;&nbsp;les Deux Muids / le Moulin de Mongé&nbsp;&raquo;, photo Alain Lelong (2003), <a href="https://aerba.huma-num.fr/fiche.html?id=2811401">Atlas des Établissements Ruraux de Beauce Antique</a>, licence </em><a href="https://creativecommons.org/licenses/by-nc-sa/4.0/">CC BY-NC-SA</a></p>
<p>Cet article <a rel="nofollow" href="https://blog.sparna.fr/2025/03/28/the-genesis-of-sparnatural-in-the-context-of-the-openarchaeo-platform/">The Genesis of Sparnatural in the context of the OpenArchaeo platform</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/2025/03/28/the-genesis-of-sparnatural-in-the-context-of-the-openarchaeo-platform/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Retour sur &#8230; Le déploiement de Sparnatural pour FranceArchives</title>
		<link>https://blog.sparna.fr/2025/02/14/retour-sur-le-deploiement-de-sparnatural-pour-francearchives/</link>
		<comments>https://blog.sparna.fr/2025/02/14/retour-sur-le-deploiement-de-sparnatural-pour-francearchives/#comments</comments>
		<pubDate>Fri, 14 Feb 2025 17:35:50 +0000</pubDate>
		<dc:creator><![CDATA[Marie Muller]]></dc:creator>
				<category><![CDATA[Linked Data]]></category>
		<category><![CDATA[Non classé]]></category>
		<category><![CDATA[Ontologies]]></category>
		<category><![CDATA[RDF]]></category>
		<category><![CDATA[Recherche d'informations]]></category>
		<category><![CDATA[Sparnatural]]></category>
		<category><![CDATA[SPARQL]]></category>
		<category><![CDATA[Visualisation de données]]></category>
		<category><![CDATA[archives]]></category>
		<category><![CDATA[EAC]]></category>
		<category><![CDATA[EAD]]></category>
		<category><![CDATA[EAG]]></category>
		<category><![CDATA[RiC-O]]></category>
		<category><![CDATA[schema.org]]></category>

		<guid isPermaLink="false">https://blog.sparna.fr/?p=1860</guid>
		<description><![CDATA[<p>Voilà maintenant près d’un an et demi que FranceArchives, le Portail national des Archives de France, a annoncé le déploiement de l’outil « Supernatural » (comprendre Sparnatural) via ses réseaux, dans l’optique de proposer à ses usagers « un accès nouveau aux métadonnées archivistiques, complémentaire de la recherche classique par le moteur du portail ».&#8230;</p>
<p>Cet article <a rel="nofollow" href="https://blog.sparna.fr/2025/02/14/retour-sur-le-deploiement-de-sparnatural-pour-francearchives/">Retour sur &#8230; Le déploiement de Sparnatural pour FranceArchives</a> est apparu en premier sur <a rel="nofollow" href="https://blog.sparna.fr">Sparna Blog</a>.</p>
]]></description>
				<content:encoded><![CDATA[<h1></h1>
<p><span style="font-weight: 400;">Voilà maintenant près d’un an et demi que FranceArchives, le Portail national des Archives de France, <a href="https://francearchives.gouv.fr/fr/requeteurnaturel">a annoncé le déploiement de l’outil « Supernatural »</a> (comprendre <u><a href="https://sparnatural.eu/">Sparnatural</a></u>) via ses réseaux, dans l’optique de proposer à ses usagers « <em>un accès nouveau aux métadonnées archivistiques, complémentaire de la recherche classique par le moteur du portail</em> ».</span></p>
<p><span style="font-weight: 400;"><a href="https://x.com/FranceArchives/status/1706286558385463319"><img class="aligncenter wp-image-1897 size-full" src="https://blog.sparna.fr/wp-content/uploads/2025/02/Supernatural-e1739532443130.jpg" alt="Supernatural" width="400" height="392" /></a></span></p>
<p><span style="font-weight: 400;">Porté par le Service interministériel des Archives de France, le portail FranceArchives offre une recherche fédérée dans près de 26 millions de métadonnées archivistiques produites par près de 170 institutions et entièrement sémantisées en RDF par le biais de l&rsquo;ontologie RiC-O version 0.2 publiée en février 2021.</span></p>
<p>C’est une des premières utilisations de RiC-O à grande échelle (même s’il faudra à l’avenir qu’il se mette à jour sur la <u><a href="https://www.ica.org/resource/records-in-contexts-ontology/">version 1.0 de RiC-O publiée depuis</a></u> !), et c’est également l&rsquo;un des premiers entrepôts de données archivistiques de cette taille sur le Linked Open Data.</p>
<p><span style="font-weight: 400;">&#8230; Un graphe de données qui a tout pour être « Supernaturalisé » <img src="https://blog.sparna.fr/wp-includes/images/smilies/simple-smile.png" alt=":)" class="wp-smiley" style="height: 1em; max-height: 1em;" /></span></p>
<h2><b><i>Des données de qualité à une recherche augmentée</i></b></h2>
<p><span style="font-weight: 400;">&#8230; Enfin, il va surtout s’agir de ses « données de qualité », autrement dit les :</span></p>
<ul>
<li style="font-weight: 400;"><span style="font-weight: 400;">inventaires avec leurs composants,</span></li>
<li style="font-weight: 400;"><span style="font-weight: 400;">notices descriptives de producteurs d’archives,</span></li>
<li style="font-weight: 400;"><span style="font-weight: 400;">fiches signalétiques des services d’archives,</span></li>
</ul>
<p><span style="font-weight: 400;"> </span><span style="font-weight: 400;">… tous objets liés à une autorité « </span><a href="https://francearchives.gouv.fr/fr/agents"><span style="font-weight: 400;">personnes et institutions</span></a><span style="font-weight: 400;"> »</span><span style="font-weight: 400;">, </span><span style="font-weight: 400;">« </span><a href="https://francearchives.gouv.fr/fr/locations"><span style="font-weight: 400;">lieux</span></a><span style="font-weight: 400;"> »</span><span style="font-weight: 400;"> et </span><span style="font-weight: 400;">« </span><a href="https://francearchives.gouv.fr/fr/subjects"><span style="font-weight: 400;">thèmes</span></a><span style="font-weight: 400;"> » de qualité (soit moins de 5% des métadonnées du portail avant conversion&#8230; et plus de 70% de l’ensemble du réservoir en RDF !</span><span style="font-weight: 400;">), autorités de qualité elles-mêmes</span><a href="https://francearchives.gouv.fr/fr/article/213604642"> <span style="font-weight: 400;">harmonisées et alignées vers des référentiels nationaux et internationaux</span></a><span style="font-weight: 400;">.</span></p>
<p><span style="font-weight: 400;">M</span><span style="font-weight: 400;">odèle particulièrement adapté à la description des archives en RDF</span><span style="font-weight: 400;">, c’est l’ontologie </span><span style="font-weight: 400;">RiC-O (v0.2</span><span style="font-weight: 400;">) qui a été utilisée pour la sémantisation des données </span><span style="font-weight: 400;">XML EAD</span><span style="font-weight: 400;"> &#8211; </span><span style="font-weight: 400;">XML EAC-CPF</span><span style="font-weight: 400;"> vers RDF, complétée de</span><a href="https://schema.org/"> <span style="font-weight: 400;">schema.org</span></a><span style="font-weight: 400;"> pour les fiches signalétiques des services de l’annuaire au format </span><span style="font-weight: 400;">XML EAG</span><span style="font-weight: 400;">.</span></p>
<p><span style="font-weight: 400;">Les informations relatives aux archives et à leurs producteurs étant décrites dans des fichiers différents, la recherche avancée via SPARQL rend désormais possible une interrogation fédérée plus fine d’un vaste corpus de notices en « traversant » le graphe structuré selon le modèle RiC-O. </span><span style="font-weight: 400;">En effet, l’intérêt de l’interrogation via SPARQL est de casser les silos entre types de métadonnées : il permet de faire une recherche transversale entre données provenant de fichiers EAD et de fichier EAC-CPF.</span></p>
<p>Les notices affichées en résultats de recherche montrent les alignements existants vers les notices de producteurs externes, Wikidata, data.bnf, GeoNames ou encore le Thesaurus pour l&rsquo;indexation matières des archives locales. C’est ainsi dans l’onglet Personnes/indexations liées que sont exploités les résultats de la conversion en RDF, par le biais de suggestions de recherches complémentaires sur le portail classique.</p>
<p>Une façon de faire bénéficier le grand public du RDF de manière complètement transparente pour lui !</p>
<p><a href="https://blog.sparna.fr/wp-content/uploads/2025/02/VictorHugo.jpg"><img class="aligncenter size-large wp-image-1904" src="https://blog.sparna.fr/wp-content/uploads/2025/02/VictorHugo-1024x547.jpg" alt="VictorHugo" width="650" height="347" /></a></p>
<h2><b><i>Quelques exemples de requêtes&#8230;</i></b></h2>
<p><span style="font-weight: 400;">On accède à l’outil via le menu « Recherche SPARQL » <a href="https://francearchives.gouv.fr/fr/requeteurnaturel">en haut à droite du site du portail</a> :</span></p>
<p><span style="font-weight: 400;"> <a href="https://blog.sparna.fr/wp-content/uploads/2025/02/QueriesFA.jpg"><img class="aligncenter size-large wp-image-1905" src="https://blog.sparna.fr/wp-content/uploads/2025/02/QueriesFA-1024x504.jpg" alt="QueriesFA" width="650" height="320" /></a></span></p>
<p><span style="font-weight: 400;">Plusieurs exemples de requêtes sont à disposition pour explorer les données :</span></p>
<p><span style="font-weight: 400;">De la requête la plus simple :</span></p>
<h5><em><b>Personne est membre de Institution</b></em></h5>
<p><a href="https://blog.sparna.fr/wp-content/uploads/2025/02/SampleFA.jpg"><img class="aligncenter size-large wp-image-1906" src="https://blog.sparna.fr/wp-content/uploads/2025/02/SampleFA-1024x422.jpg" alt="SampleFA" width="650" height="268" /></a></p>
<p><span style="font-weight: 400;"> </span><span style="font-weight: 400;"> </span></p>
<p><img class="aligncenter size-large wp-image-1928" src="https://blog.sparna.fr/wp-content/uploads/2025/02/query11-1024x375.jpg" alt="query1" width="650" height="238" /></p>
<p><span style="font-weight: 400;">À des requêtes de plus en plus élaborées et complexes, comme ici :</span></p>
<h5><em><b>Lieux qui sont le sujet des archives reliées au fonds « Fabrique de berlingot Eysséric »</b></em></h5>
<p><span style="font-weight: 400;"> <a href="https://blog.sparna.fr/wp-content/uploads/2025/02/SampleFA2.jpg"><img class="aligncenter size-large wp-image-1907" src="https://blog.sparna.fr/wp-content/uploads/2025/02/SampleFA2-1024x717.jpg" alt="SampleFA2" width="650" height="455" /></a></span></p>
<p><span style="font-weight: 400;"> <a href="https://blog.sparna.fr/wp-content/uploads/2025/02/query2.jpg"><img class="aligncenter size-large wp-image-1929" src="https://blog.sparna.fr/wp-content/uploads/2025/02/query2-1024x461.jpg" alt="query2" width="650" height="293" /></a></span></p>
<p><span style="font-weight: 400;">Où l’on voit que l’on peut retracer le cheminement de la requête à travers le graphe de l’ontologie RiC-O en cliquant sur </span><i><span style="font-weight: 400;">« </span></i><i><span style="font-weight: 400;">Afficher/masquer l’éditeur SPARQL</span></i><span style="font-weight: 400;"> ».</span></p>
<h2><b><i>Des archives à la page…</i></b></h2>
<p><span style="font-weight: 400;">À noter que le projet, qui avait fait l’objet d’une présentation à l’occasion de</span><a href="https://swib.org/swib23/slides/07_Fabien%20Amarger_Slides.pdf"> <span style="font-weight: 400;">SWIB (</span><span style="font-weight: 400;">Semantic Web in Libraries</span><span style="font-weight: 400;">)</span></a><span style="font-weight: 400;"> et de</span><a href="https://web.archive.org/web/20240715083647/https://semweb.pro/conference/2023/presentation/francearchives-portail-de-reference-pour-les-archives-francaises/"> <span style="font-weight: 400;">SemWebPro 2023</span></a><span style="font-weight: 400;"> a été entièrement déployé (et configuré !) à partir de la documentation disponible sur le site web de Sparnatural.</span></p>
<p><span style="font-weight: 400;">N’hésitez pas à aller la consulter !</span></p>
<p><a href="https://docs.sparnatural.eu/hello-sparnatural/Hello-Sparnatural.html"><span style="font-weight: 400;">Hello Sparnatural</span></a></p>
<p><a href="https://docs.sparnatural.eu/how-to-configure-shacl/How-to-configure-Sparnatural-shacl.html"><span style="font-weight: 400;">How-to configure in SHACL</span></a></p>
<p><a href="https://docs.sparnatural.eu/widgets.html"><span style="font-weight: 400;">Reference documentation of Sparnatural widgets</span></a></p>
<h2><strong>Pour aller plus loin sur la sémantisation des archives…</strong></h2>
<p>Le déploiement de Sparnatural sur FranceArchives fait suite à une autre réalisation de l&rsquo;année précédente, le <a href="https://sparna-git.github.io/sparnatural-demonstrateur-an/">démonstrateur Sparnatural des Archives nationales</a>. Celui-ci avait permis de faire évoluer Sparnatural et de le déployer sur un graphe sémantique en RiC-O de 20 millions de triplets (hors inférence), alimenté avec le contenu de 1577 instruments de recherche décrivant les archives de 40 des 122 études notariales de Paris conservées aux Archives nationales, de 1120 notices décrivant ces études et les notaires qui y ont exercé, et d&rsquo;autres référentiels des Archives nationales notamment sur les lieux de Paris. La réalisation de ce démonstrateur a été <a href="https://sparna-git.github.io/sparnatural-demonstrateur-an/presentation-fr.html">entièrement documentée en français</a> et en <a href="https://sparna-git.github.io/sparnatural-demonstrateur-an/presentation-en.html">anglais</a>. Ce démonstrateur et ses interfaces évolueront d&rsquo;ailleurs bientôt.</p>
<p>Depuis, Sparna s&rsquo;est impliqué dans le domaine de la sémantisation des archives puisque nous développons également, pour les comptes des Archives Nationales, l’outil <u><a href="https://github.com/ArchivesNationalesFR/rico-converter">Ric-O converter</a></u>.</p>
<p>Celui-ci permet la conversion de notices EAD et EAC vers du RDF exprimé en RiC-O. Nous finalisons actuellement une nouvelle version du convertisseur pour le rendre compatible RiC-O 1.0 (et même 1.1 dont la sortie est imminente).</p>
<p><a href="https://blog.sparna.fr/2020/04/20/rico-records-in-contexts-archives-modele-conceptuel/">Un nouvel article à paraître ici sur RiC-O ?</a> &#8230; Stay tuned !</p>
<p>&nbsp;</p>
<p>Cet article <a rel="nofollow" href="https://blog.sparna.fr/2025/02/14/retour-sur-le-deploiement-de-sparnatural-pour-francearchives/">Retour sur &#8230; Le déploiement de Sparnatural pour FranceArchives</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/2025/02/14/retour-sur-le-deploiement-de-sparnatural-pour-francearchives/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nakala : from an RDF dataset to a query UI in minutes &#8211; SHACL automated generation and Sparnatural</title>
		<link>https://blog.sparna.fr/2025/02/06/nakala-from-an-rdf-dataset-to-a-query-ui-in-minutes-shacl-automated-generation-and-sparnatural/</link>
		<comments>https://blog.sparna.fr/2025/02/06/nakala-from-an-rdf-dataset-to-a-query-ui-in-minutes-shacl-automated-generation-and-sparnatural/#comments</comments>
		<pubDate>Thu, 06 Feb 2025 10:38:25 +0000</pubDate>
		<dc:creator><![CDATA[Marie Muller]]></dc:creator>
				<category><![CDATA[Linked Data]]></category>
		<category><![CDATA[Ontologies]]></category>
		<category><![CDATA[Recherche d'informations]]></category>
		<category><![CDATA[SHACL]]></category>
		<category><![CDATA[Sparnatural]]></category>
		<category><![CDATA[SPARQL]]></category>
		<category><![CDATA[Visualisation de données]]></category>
		<category><![CDATA[dcterms]]></category>
		<category><![CDATA[digital humanities]]></category>
		<category><![CDATA[EDM]]></category>
		<category><![CDATA[endpoint]]></category>
		<category><![CDATA[RDF]]></category>
		<category><![CDATA[UI]]></category>

		<guid isPermaLink="false">https://blog.sparna.fr/?p=1867</guid>
		<description><![CDATA[<p>Here is a usecase of an automated version of Sparnatural submitted as an example for Veronika Heimsbakk&#8217;s SHACL for the Practitioner upcoming book about the Shapes Constraint Language (SHACL). “ The Sparnatural knowledge graph explorer leverages SHACL specifications to drive a user interface (UI) that allows end users to easily discover the content of an RDF graph. What&#8230;</p>
<p>Cet article <a rel="nofollow" href="https://blog.sparna.fr/2025/02/06/nakala-from-an-rdf-dataset-to-a-query-ui-in-minutes-shacl-automated-generation-and-sparnatural/">Nakala : from an RDF dataset to a query UI in minutes &#8211; SHACL automated generation and Sparnatural</a> est apparu en premier sur <a rel="nofollow" href="https://blog.sparna.fr">Sparna Blog</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>Here is a usecase of an automated version of Sparnatural submitted as an example for Veronika Heimsbakk&rsquo;s <em><a href="https://veronahe.wordpress.com/shacl-for-the-practitioner/">SHACL for the Practitioner</a></em> upcoming book about the Shapes Constraint Language (SHACL).</p>
<h1></h1>
<h1>“</h1>
<p>The <a href="https://sparnatural.eu/">Sparnatural knowledge graph explorer</a> leverages SHACL specifications to drive a user interface (UI) that allows end users to easily discover the content of an RDF graph. What is the best way to make this UI-oriented SHACL specification ? if a SHACL specification for the knowledge graph structure already exists, can it be used directly ? does it require customization ? or is the Sparnatural SHACL spec completely decoupled from an existing knowledge graph spec ? and what if no SHACL spec exists at all ?</p>
<p>We faced all these different situations while deploying Sparnatural, and used various approaches to produce a satisfying end-user oriented specification. In particular, <a href="https://www.nakala.fr/">the Nakala repository</a> is one of the latest graph <a href="https://www.nakala.fr/sparnatural/">for which Sparnatural was deployed</a>. Nakala is a data repository that aims to preserve and disseminate data produced by French research projects in the Humanities and Social Sciences, in compliance with the FAIR principles. Nakala is a service offered by <a href="https://www.huma-num.fr/">Huma-Num</a>, a research infrastructure dedicated to the digital humanities. The Nakala knowledge graph contains `dcterms` metadata provided by researchers to describe the resources they upload. Additional non-dcterms metadata can also be provided. The metadata varies in quality and quantity depending on the researcher. When exposed <a href="https://www.nakala.fr/sparql">in a SPARQL endpoint</a>, resources, collections of resources and agents are described using <a href="https://pro.europeana.eu/page/edm-documentation">the Europeana Data Model (EDM)</a>.</p>
<p>As the EDM dissemination channel for Nakala was new, no SHACL specification existed for it. We could have designed one for Sparnatural from scratch, but the choice was make to generate it automatically, with no human intervention. This was for three reasons : ease of configuration, flexibility in maintenance over time, and pedagogical reason, as it was important to explain the structure of the graph to target users.</p>
<h2>Sparnatural UI</h2>
<p>Let&rsquo;s first have a look at what the Sparnatural UI looks like on an example from Nakala:</p>
<p><a href="https://blog.sparna.fr/wp-content/uploads/2025/02/SHACLNAKALA11.png"><img class="aligncenter size-large wp-image-1883" src="https://blog.sparna.fr/wp-content/uploads/2025/02/SHACLNAKALA11-1024x365.png" alt="SHACLNAKALA1" width="650" height="232" /></a></p>
<p>Once you know that &laquo;&nbsp;ProvidedCHO&nbsp;&raquo; stands for &laquo;&nbsp;Provided Cultural Heritage Object&nbsp;&raquo;, and that &laquo;&nbsp;asWKT&nbsp;&raquo; encodes the location of a Place, you will be able to understand that the query searches for all ProvidedCHO entries gathered into a certain collection (&laquo;&nbsp;Cartes Université Bordeaux Montaigne&nbsp;&raquo; &#8211; a collection of maps), and selects their location and an optional description (and yes, the results of this query are displayed on a map, but that&rsquo;s out of scope).</p>
<h2>SHACL is derived automatically</h2>
<p>In this project we wanted the shortest path from the graph to the query UI. Hence we used <a href="https://shacl-play.sparna.fr/play/generate#documentation">a SHACL generation algorithm, available in SHACL Play</a>. By issuing SPARQL queries on an RDF graph, the algorithm determines the NodeShapes (targeting the classes used as values of `rdf:type`), and PropertyShapes (from all predicates used on instances on each class) of the model, with their node kinds, datatypes, class range, and cardinalities. It generates `sh:or` constraints when multiple datatypes or ranges are found. Note that in the case of Nakala a large variety of ranges are used, since the data comes from very open user inputs : the same `dcterms` property can be either an IRI or a Literal, with varying datatypes.</p>
<p>In addition, the algorithm computes some statistics on the dataset : the number of targets of each NodeShapes, the number of occurrences and the number of distinct values for each property shapes. The statistics are expressed using the `void` vocabulary, and `dcterms:conformsTo` is used to link void partitions to the corresponding shapes.</p>
<p><a href="https://shacl-play.sparna.fr/play/doc">The SHACL Play documentation tool</a> was then used to generate a report of the generated SHACL combined with the statistics. A few errors were spotted in the exported data, and fixed. We also saw that around 70 properties were present only a few times out of 700.000+ ProvidedCHO records. These properties were applied by probably a single or very few researchers when describing their data. It was decided to filter them out to keep the final UI simple, with an extra filtering step : based on statistics, property shapes used less than 0.1% of the number of targets of their node shapes are removed.</p>
<p>Here is a screenshot of the report : the right column shows the number of distinct values, and the column before is the number of total occurrences; we can immediately see that `dct:isReplacedBy` occurs only once, and `dct:isRequiredBy` occurs 81 times. They will be filtered out.</p>
<p><a href="https://blog.sparna.fr/wp-content/uploads/2025/02/SHACLNAKALA21.png"><img class="aligncenter size-large wp-image-1882" src="https://blog.sparna.fr/wp-content/uploads/2025/02/SHACLNAKALA21-1024x481.png" alt="SHACLNAKALA2" width="650" height="305" /></a></p>
<h2>Sparnatural reads SHACL</h2>
<p>Sparnatural can then read <a href="https://docs.sparnatural.eu/SHACL-based-configuration.html">the SPARQL specification</a>, together with the dataset statistics. When designing a query, value selection widgets for literal properties are determined by looking at the `sh:datatype` constraint (for number, dates, boolean, or map widgets). For IRI properties, statistics are used to distinguish between list and autocomplete widgets. Predicates with less than 500 distinct values will use a dropdown list, and those with more will use an autocomplete search field. The range is determined by reading `sh:class` or `sh:node`. The label to show in dropdown lists or to search on autocomplete field is determined by looking at a `dash:propertyRole = dash:LabelRole` annotation.</p>
<p>How about labels ? Sparnatural can read them from classes and properties of the original OWL file, if provided with it. Otherwise local names of target classes or predicates are used.</p>
<h2>Other configuration techniques</h2>
<p>Other Sparnatural deployments, such as <a href="https://sparnatural.eu/demos/demo-dbpedia-en/">the DBPedia demo</a> are designed in SHACL from scratch, <a href="https://docs.sparnatural.eu/how-to-configure-shacl/How-to-configure-Sparnatural-shacl.html">using spreadsheets</a>. This requires more manual work, but has the advantage of tailoring the UI to exactly what needs to be shown, including user-oriented labels/tooltips/icons, hiding some properties, taking shortcuts or declaring inverses using property paths, etc. In the case of DBPedia, no SHACL spec exists, and deriving it automatically for the entire graph would probably not make a lot of sense, hence the necessity for a manual design.</p>
<p>For other projects we are working on a third configuration technique : a SHACL spec that describes the exact content of the graph is first built. It is used to publish the documentation of the model and to validate the data. A separate shapes file containing a Sparnatural-specific configuration layer is then added on top of it. That layer can hide shapes by applying an `sh:deactivated` annotation on them, can specify the UI widgets to use, add additional `dash:LabelRole` flags, add shortcut or inverse properties, etc.</p>
<p>The 3 configuration paths are shown in the following diagram:</p>
<p><a href="https://blog.sparna.fr/wp-content/uploads/2025/02/SHACLNAKALA31.png"><img class="aligncenter size-large wp-image-1881" src="https://blog.sparna.fr/wp-content/uploads/2025/02/SHACLNAKALA31-1024x569.png" alt="SHACLNAKALA3" width="650" height="361" /></a></p>
<h2>Your query UI in minutes</h2>
<p>We combined 4 tools (all open-source) : an algorithm to generate a &laquo;&nbsp;profile&nbsp;&raquo; in SHACL of an RDF dataset, a statistical report generator, a SHACL filter based on statistics, and the Sparnatural query UI. The ability to generate the SHACL profile and review it in the report provided a way to understand the structure of the data in a matter of minutes, while hours would have been necessary with SPARQL queries, without a guarantee of completeness. The provision of the query UI was made by dropping the SHACL file and the statistics to Sparnatural, without manual intervention. This shows the pivotal role of SHACL for data quality and model-driven approaches for knowledge graphs projects.</p>
<h1>”</h1>
<p>We look forward to reading Veronika&rsquo;s book, and you ?</p>
<p>Cet article <a rel="nofollow" href="https://blog.sparna.fr/2025/02/06/nakala-from-an-rdf-dataset-to-a-query-ui-in-minutes-shacl-automated-generation-and-sparnatural/">Nakala : from an RDF dataset to a query UI in minutes &#8211; SHACL automated generation and Sparnatural</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/2025/02/06/nakala-from-an-rdf-dataset-to-a-query-ui-in-minutes-shacl-automated-generation-and-sparnatural/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sparnatural SHACL configuration : manual, automated, off-the-shelf</title>
		<link>https://blog.sparna.fr/2025/01/21/sparnatural-shacl-configuration-manual-automated-off-the-shelf/</link>
		<comments>https://blog.sparna.fr/2025/01/21/sparnatural-shacl-configuration-manual-automated-off-the-shelf/#comments</comments>
		<pubDate>Tue, 21 Jan 2025 07:00:35 +0000</pubDate>
		<dc:creator><![CDATA[Thomas Francart]]></dc:creator>
				<category><![CDATA[SHACL]]></category>
		<category><![CDATA[Sparnatural]]></category>
		<category><![CDATA[SPARQL]]></category>

		<guid isPermaLink="false">https://blog.sparna.fr/?p=1844</guid>
		<description><![CDATA[<p>Sparnatural is a knowledge graph visual browser made for end-users. The user is guided in the creation of her graph traversal query by selecting the kind of entities she is searching, how these entities are connected to other entities in the graph, and which properties she would like to have in her result columns. The&#8230;</p>
<p>Cet article <a rel="nofollow" href="https://blog.sparna.fr/2025/01/21/sparnatural-shacl-configuration-manual-automated-off-the-shelf/">Sparnatural SHACL configuration : manual, automated, off-the-shelf</a> est apparu en premier sur <a rel="nofollow" href="https://blog.sparna.fr">Sparna Blog</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p><strong><a href="https://sparnatural.eu" target="_blank">Sparnatural</a></strong> is a knowledge graph visual browser made for end-users. The user is guided in the creation of her graph traversal query by selecting the kind of entities she is searching, how these entities are connected to other entities in the graph, and which properties she would like to have in her result columns.</p>
<p>The possible entities, connections and properties that are shown to the user need to be specified to Sparnatural. This configuration is written in a <a href="https://docs.sparnatural.eu/how-to-configure-shacl/How-to-configure-Sparnatural-shacl.html" target="_blank">SHACL specification</a>. This specification encodes both the structure of the knowledge graph (as we want it to be presented to the user), plus some additionnal UI-oriented information, like icons, order of entries, or value selection widgets to use.</p>
<p><a href="https://blog.sparna.fr/wp-content/uploads/2025/01/sparnatural-dbpedia-2.webm.gif"><img class="aligncenter size-full wp-image-1853" src="https://blog.sparna.fr/wp-content/uploads/2025/01/sparnatural-dbpedia-2.webm.gif" alt="sparnatural-dbpedia-2.webm" /></a></p>
<p>How can the SHACL configuration of Sparnatural be produced ? we faced 3 different situations : either we do it manually, or (semi-)automatically, or with an off-the-shelf specification complemented with manual annotations. We will give you a brief description of each possibility below.</p>
<p><a href="https://blog.sparna.fr/wp-content/uploads/2025/01/image-20241013221653603.png"><img class="aligncenter wp-image-1845 size-large" src="https://blog.sparna.fr/wp-content/uploads/2025/01/image-20241013221653603-1024x576.png" alt="image-20241013221653603" width="650" height="366" /></a></p>
<h3>Write your SHACL manually (in Excel)</h3>
<p>SHACL has one main disadvantage : there is no widely available, free-to-use SHACL editor to create/edit these specs (while <a href="https://protege.stanford.edu/" target="_blank">Protégé</a>, for example, allows anyone to edit an OWL ontology). To overcome this lack of tool, we are using an Excel-to-SHACL conversion tool, xls2rdf. We (and our users) write the specification in an <a href="https://docs.google.com/spreadsheets/d/1lduSARo-zyL8qxObwPVD4Z2m8iKQpye-" target="_blank">Excel template</a>, that is then turned in SHACL by an API call to <a href="https://xls2rdf.sparna.fr/rest/" target="_blank">xls2rdf</a>. This is what we described in a <a href="https://blog.sparna.fr/2024/10/15/sparnatural-say-it-with-shacl/" target="_blank">previous post</a>.</p>
<p>We have a good documentation on <a href="https://docs.sparnatural.eu/how-to-configure-shacl/How-to-configure-Sparnatural-shacl.html" target="_blank">how to design your Sparnatural documentation in Excel</a>, if you want to try it (but see the <a href="https://docs.sparnatural.eu/hello-sparnatural/Hello-Sparnatural.html" target="_blank">Hello Sparnatural tutorial</a> first to setup your working test page). And we are here to help if you need to ! (ask questions on the <a href="https://github.com/sparna-git/Sparnatural" target="_blank">Github repository</a>).</p>
<p>If you are looking for a general-purpose SHACL Excel template, there is <a href="https://shacl-play.sparna.fr/play/shaclexcel">one in SHACL Play</a>.</p>
<h3>Get your SHACL automatically (statistics included)</h3>
<p>SHACL is machine-readable and also writable, so we can use our <a href="https://shacl-play.sparna.fr/play/generate#documentation">SHACL generation algorithm</a> to produce a SHACL &laquo;&nbsp;profile&nbsp;&raquo; of an RDF dataset. The algorithm sends SPARQL queries to identify all classes and properties, with their range, cardinalities, datatype, etc. This SHACL profile can be fed to Sparnatural directly. With an additionnal bonus : it is also very useful to gather <strong>statistics</strong> of the dataset at this stage. Number of instances of each class, number of occurrences of each property and number of distinct values. Why is it useful ? first because Sparnatural is able to show them in the UI, giving a hint to the user on how many entities of each type exist in the dataset:</p>
<p><a href="https://blog.sparna.fr/wp-content/uploads/2025/01/Capture-d’écran-du-2025-01-18-15-18-31.png"><img class="aligncenter size-full wp-image-1847" src="https://blog.sparna.fr/wp-content/uploads/2025/01/Capture-d’écran-du-2025-01-18-15-18-31.png" alt="Capture d’écran du 2025-01-18 15-18-31" width="695" height="460" /></a></p>
<p>second because by knowing how many distinct values exist for a given property, Sparnatural can show either a dropdown list (if there are less than 500) or an autocomplete search field (if there are more).</p>
<p>Also, as a side effect, seeing the profile and statistics of your dataset can help you spot errors (<em>&laquo;&nbsp;why does the statistics tells me that this identifier is not always present ? it should be mandatory !&nbsp;&raquo;</em>).</p>
<p>You can also provide the OWL ontology to Sparnatural along with the SHACL specification. Simply pass the 2 files in the configuration of the component. The ontology can be leveraged for 2 things : the hierarchy of classes and properties from the ontology can be used in the Sparnatural UI, and all labels and comments of classes and properties can be read to be displayed in the UI, giving nice defaults if they are not present in the SHACL spec.<br />
This automated SHACL generation was the one used for the <a href="https://www.nakala.fr/sparnatural/">Nakala Sparnatural query interface</a>, and here is how the properties look like, you can see it is organized according to the DublinCore properties hierarchy:</p>
<h3><a href="https://blog.sparna.fr/wp-content/uploads/2025/01/sparnatural-hierarchy.gif"><img class="aligncenter size-full wp-image-1848" src="https://blog.sparna.fr/wp-content/uploads/2025/01/sparnatural-hierarchy.gif" alt="sparnatural-hierarchy" width="640" height="343" /></a>Grab an off-the-shelf SHACL specification</h3>
<p>Some clients do write and publish SHACL specifications. Yes. This is the case for example for the <a href="https://data.europarl.europa.eu/en/developer-corner">European Parliament in their open-data portal</a>. They publish the documentation of their data-model with our <a href="https://shacl-play.sparna.fr/play/doc">SHACL Play documentation generator</a>. The specification existed long before we tried Sparnatural on their data. We simply took their specification, loaded it in Sparnatural and&#8230; voilà ! it worked seamlessly, but to make it nicer we added in a separate file additionnal icons and tooltips information.</p>
<h3>SHACL Synergies</h3>
<p>There is a lot of synergies to find with a SHACL configuration in a model-driven perspective. You can publish the documentation, validate data, power your Sparnatural UI, and generate your API JSON schema from the same specification file. And probably much more &#8211; what would YOU do with a SHACL specification of your knowledge graph ?</p>
<p>&nbsp;</p>
<p>Cet article <a rel="nofollow" href="https://blog.sparna.fr/2025/01/21/sparnatural-shacl-configuration-manual-automated-off-the-shelf/">Sparnatural SHACL configuration : manual, automated, off-the-shelf</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/2025/01/21/sparnatural-shacl-configuration-manual-automated-off-the-shelf/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sparnatural : say it with SHACL !</title>
		<link>https://blog.sparna.fr/2024/10/15/sparnatural-say-it-with-shacl/</link>
		<comments>https://blog.sparna.fr/2024/10/15/sparnatural-say-it-with-shacl/#comments</comments>
		<pubDate>Tue, 15 Oct 2024 16:02:59 +0000</pubDate>
		<dc:creator><![CDATA[Marie Muller]]></dc:creator>
				<category><![CDATA[SHACL]]></category>
		<category><![CDATA[Sparnatural]]></category>
		<category><![CDATA[DBpedia]]></category>
		<category><![CDATA[endpoint]]></category>
		<category><![CDATA[SPARQL]]></category>

		<guid isPermaLink="false">https://blog.sparna.fr/?p=1800</guid>
		<description><![CDATA[<p>Do you Sparnatural ? If you follow us here, you may be familiar with our most well-known Sparnatural visual query builder. If not, have a look at the website and give us your impressions on it ! To make it short, Sparnatural is a client-side component that allows non-expert users to explore an RDF Knowledge Graph&#8230;</p>
<p>Cet article <a rel="nofollow" href="https://blog.sparna.fr/2024/10/15/sparnatural-say-it-with-shacl/">Sparnatural : say it with SHACL !</a> est apparu en premier sur <a rel="nofollow" href="https://blog.sparna.fr">Sparna Blog</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p><span style="font-weight: 400;">Do you Sparnatural ? If you follow us here, you may be familiar with our most well-known Sparnatural visual query builder. If not, have a look <a href="https://sparnatural.eu/">at the website</a></span><span style="font-weight: 400;"> and give us your impressions on it !</span></p>
<p><span style="font-weight: 400;">To make it short, Sparnatural is a client-side component that allows non-expert users to explore an RDF Knowledge Graph by building SPARQL queries with little effort.</span><span style="font-weight: 400;"> </span></p>
<p><span style="font-weight: 400;">Fully configurable &#8211; and </span><span style="font-weight: 400;">customizable</span><span style="font-weight: 400;"> &#8211; it </span><span style="font-weight: 400;">can be plugged to any existing SPARQL endpoint, without additional server required</span><span style="font-weight: 400;"> to adapt to your knowledge graph ontology.</span><span style="font-weight: 400;"> </span></p>
<p><span style="font-weight: 400;">Innovative and intuitive, it aims at bringing your knowledge graph to your end-users in a visual way that &laquo;&nbsp;gamifies&nbsp;&raquo; the knowledge graph experience.</span><span style="font-weight: 400;"> </span></p>
<p><span style="font-weight: 400;">Nb : Sparnatural is open source, under a LGPL-3.0 license.</span></p>
<p><a href="https://blog.sparna.fr/wp-content/uploads/2024/10/sparnaturaleu.png"><img class="aligncenter size-large wp-image-1808" src="https://blog.sparna.fr/wp-content/uploads/2024/10/sparnaturaleu-1024x521.png" alt="sparnaturaleu" width="650" height="331" /></a></p>
<p><span style="font-weight: 400;">So far, the configuration was made through an OWL ontology&#8230;</span></p>
<p>&nbsp;</p>
<p><strong><em>Sparnatural in SHACL !</em></strong><span style="font-weight: 400;"> </span></p>
<p><span style="font-weight: 400;">&#8230; until now,</span></p>
<p><em><span style="font-weight: 400;">But </span><span style="font-weight: 400;">the times they are a-changin&rsquo;</span><span style="font-weight: 400;"> &#8230;</span></em></p>
<p><span style="font-weight: 400;">You can now configure Sparnatural starting <a href="https://docs.sparnatural.eu/#31-shacl-configuration">from a SHACL configuration spreadsheet</a> !</span></p>
<p><span style="font-weight: 400;"> </span><span style="font-weight: 400;"> </span></p>
<p><em><strong>SHACL in a nutshell</strong></em><span style="font-weight: 400;"> </span></p>
<p><span style="font-weight: 400;">Defined by a </span><a href="http://www.w3.org/2014/data-shapes/wiki/Main_Page"><span style="font-weight: 400;">W3C Working Group</span></a><span style="font-weight: 400;">, <a href="https://www.w3.org/TR/shacl/">SHACL, as for « Shapes Constraint Language »</a>,</span><span style="font-weight: 400;"> is </span><span style="font-weight: 400;">« </span><em><span style="font-weight: 400;">a language for validating RDF graphs against a set of conditions. These conditions are provided as shapes and other constructs expressed in the form of an RDF graph.</span></em><span style="font-weight: 400;"> »</span><span style="font-weight: 400;"> </span></p>
<p><span style="font-weight: 400;">First published in 2017, it has become a widely used standard to :</span></p>
<ul>
<li style="font-weight: 400;"><span style="font-weight: 400;">describe structural constraints on data graphs ;</span></li>
<li style="font-weight: 400;"><span style="font-weight: 400;">validate that data graphs satisfy a set of conditions ;</span></li>
<li style="font-weight: 400;"><span style="font-weight: 400;">but also build </span><span style="font-weight: 400;">user interface, generate code and integrate data</span><span style="font-weight: 400;"> !</span></li>
</ul>
<p><span style="font-weight: 400;">The latter we will leverage for our brand new Sparnatural SHACL configuration.</span></p>
<p>&nbsp;</p>
<p><em><strong>Yes, in a spreadsheet !</strong></em></p>
<p><span style="font-weight: 400;">SHACL may be quite unfamiliar for our users.</span></p>
<p><span style="font-weight: 400;">A good thing is you don’t need to be a SHACL expert to build your SHACL-shaped Sparnatural configuration.</span></p>
<p><span style="font-weight: 400;">Indeed ! the entire configuration is done <a href="https://github.com/sparna-git/sparnatural.eu/raw/refs/heads/main/demos/demo-dbpedia-en/sparnatural-config.xlsx">via a spreadsheet</a> whose columns correspond to the SHACL model.</span></p>
<p><a href="https://blog.sparna.fr/wp-content/uploads/2024/10/configxlsx.png"><img class="aligncenter size-large wp-image-1807" src="https://blog.sparna.fr/wp-content/uploads/2024/10/configxlsx-1024x415.png" alt="configxlsx" width="650" height="263" /></a></p>
<p><span style="font-weight: 400;">Still, you can observe that all the Sparnatural features are here :</span></p>
<ul>
<li style="font-weight: 400;"><span style="font-weight: 400;">the nodes &amp; the edges of the knowledge graph, of course ;</span></li>
<li style="font-weight: 400;"><span style="font-weight: 400;">its labels and literal attributes (different kind of notes) ;</span></li>
<li style="font-weight: 400;"><span style="font-weight: 400;">but also the Sparnatural search widgets, icons, etc.</span></li>
</ul>
<p>&nbsp;</p>
<p><em><strong>Give it a try !</strong></em><span style="font-weight: 400;"> </span></p>
<p><span style="font-weight: 400;">Go to</span> <span style="font-weight: 400;">the <a href="https://sparnatural.eu/demos/demo-dbpedia-en/index.html?lang=en">DBpedia Museums demo</a></span><span style="font-weight: 400;"> :</span></p>
<p><a href="https://blog.sparna.fr/wp-content/uploads/2024/10/start.png"><img class="aligncenter size-large wp-image-1806" src="https://blog.sparna.fr/wp-content/uploads/2024/10/start-1024x556.png" alt="start" width="650" height="353" /></a></p>
<p>&nbsp;</p>
<p><em><strong>Navigate the graph</strong></em><span style="font-weight: 400;"> </span></p>
<p><span style="font-weight: 400;">Start with picking up a class from the list and navigate through the properties to another class of the graph, search for a value&#8230;</span></p>
<p><a href="https://blog.sparna.fr/wp-content/uploads/2024/10/navigate.png"><img class="aligncenter size-large wp-image-1805" src="https://blog.sparna.fr/wp-content/uploads/2024/10/navigate-1024x768.png" alt="navigate" width="650" height="488" /></a></p>
<p><span style="font-weight: 400;">&#8230; then click on the arrow to launch the query </span>▶️</p>
<p><a href="https://blog.sparna.fr/wp-content/uploads/2024/10/launch-query.png"><img class="aligncenter size-large wp-image-1804" src="https://blog.sparna.fr/wp-content/uploads/2024/10/launch-query-1024x733.png" alt="launch query" width="650" height="465" /></a></p>
<p>&nbsp;</p>
<p><span style="font-weight: 400;">Click on « </span><i><span style="font-weight: 400;">Toggle SPARQL editor</span></i><span style="font-weight: 400;"> »</span><span style="font-weight: 400;"> below the query builder to display the </span><span style="font-weight: 400;">corresponding SPARQL query :</span></p>
<p><img class="aligncenter size-large wp-image-1803" src="https://blog.sparna.fr/wp-content/uploads/2024/10/SPARQL-1024x1000.png" alt="SPARQL" width="650" height="635" /></p>
<p>&nbsp;</p>
<p><span style="font-weight: 400;">&#8230; no need to say that you can create even more elaborate queries, just by adding new parameters when navigating through the knowledge graph !</span></p>
<p>&nbsp;</p>
<p><em><strong>Sample queries </strong></em></p>
<p><span style="font-weight: 400;">To give you a quick overview of it, you can also try to launch one of the sample queries we added to the demo.</span></p>
<p><span style="font-weight: 400;">On the screenshot below we can observe this one is a quite more complex query, using an optional parameter as we noticed that some values happen to be missing on DBpedia, either for Movements or Artworks&#8230;</span></p>
<p>Can we deduce that 19th-Century French women artists records are rather incomplete in English DBpedia ? <img src="https://s.w.org/images/core/emoji/72x72/1f609.png" alt="😉" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
<p><a href="https://sparnatural.eu/demos/demo-dbpedia-en/index.html?query=XQAAAAJ9BgAAAAAAAABtAYrNc5EUmvX8DWAhQM_bO-RQtw8eLv5AfYUbHEHKg8akAeq81XRpWDKqgPFC6wFYkF9uefA_M1YPtUEFzqfNkOzRoORdqJdSqPunlpPDRtYOdThL-Rrlj29P6MGeLGpCE6d9GUG95msHusjvbvBBcy3M5V6BQh29xB3VKbXXDqKH_thv6xoP64-p5Xtke6piQ_O25w_Puab4_OglI3gIdGC_6WUL91vh_5fgu9FXp38b7j2alfs8tQia6zFJOy8m9sdWC_wpMlXxpZL8PhuceKyNSwN7RmNsX1ogUfiUVlV1GG3CjySXEKxJU_xzrDmAX4Y4nRw2M2kw0SlMQ-cud_iCp-OPwaMy2r95of-gKzQJOXI6sKIa56rWrweIiOIsL6elNaQhGDgVKEFd3fgQxTqz-WRRMaqzLmWbeq0YW7gFLczxOy1lkXLO-8KEpGVCG_5ZINJ2warZKFmrGfBbG6Du2jpBvD9pBnUfs36GmmMKlDxSplRdInD6fL1coq5Gvs2U6qQwMKfGv5YXCIH-nHBHut2GvZsi9-X9__LER9o">We&rsquo;ll let you investigate on this point</a>.</p>
<p><a href="https://blog.sparna.fr/wp-content/uploads/2024/10/sample.png"><img class="aligncenter size-large wp-image-1836" src="https://blog.sparna.fr/wp-content/uploads/2024/10/sample-1024x942.png" alt="sample" width="650" height="598" /></a></p>
<p>&nbsp;</p>
<p><em><strong>Multilingual</strong></em><span style="font-weight: 400;"> </span></p>
<p><span style="font-weight: 400;">It is also possible to translate (and display) your configuration in any language of your choice, so that you can showcase your knowledge graph in different languages &#8211; even if the graph itself does not contain labels or values with this language&#8230;</span><span style="font-weight: 400;"> </span></p>
<p><span style="font-weight: 400;">Here translated in French :</span></p>
<p><a href="https://blog.sparna.fr/wp-content/uploads/2024/10/multilingual1.png"><img class="aligncenter size-large wp-image-1824" src="https://blog.sparna.fr/wp-content/uploads/2024/10/multilingual1-1024x630.png" alt="multilingual" width="650" height="400" /></a></p>
<p>&nbsp;</p>
<p><em><strong>Fully documented</strong></em><span style="font-weight: 400;"> </span></p>
<p><span style="font-weight: 400;">This new version of Sparnatural comes with </span><a href="https://docs.sparnatural.eu/"><span style="font-weight: 400;">an extensive documentation of all the features that can be used to date</span></a><span style="font-weight: 400;">, from basic installation to more advanced configuration of the tool.</span></p>
<p><a href="https://docs.sparnatural.eu/hello-sparnatural/Hello-Sparnatural.html"><b><i>Get started with Hello Sparnatural !</i></b></a></p>
<p>&nbsp;</p>
<p>Cet article <a rel="nofollow" href="https://blog.sparna.fr/2024/10/15/sparnatural-say-it-with-shacl/">Sparnatural : say it with SHACL !</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/2024/10/15/sparnatural-say-it-with-shacl/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Sparnatural à SemWeb.pro 2022 le 8 novembre</title>
		<link>https://blog.sparna.fr/2022/10/31/sparnatural-a-semweb-pro-2022-le-8-novembre/</link>
		<comments>https://blog.sparna.fr/2022/10/31/sparnatural-a-semweb-pro-2022-le-8-novembre/#comments</comments>
		<pubDate>Mon, 31 Oct 2022 08:57:34 +0000</pubDate>
		<dc:creator><![CDATA[Thomas Francart]]></dc:creator>
				<category><![CDATA[Sparnatural]]></category>
		<category><![CDATA[RDF SPARQL Sparnatural]]></category>

		<guid isPermaLink="false">http://blog.sparna.fr/?p=1536</guid>
		<description><![CDATA[<p>Le 8 novembre prochain se tient l&#8217;évènement semweb.pro 2022. J&#8217;y présenterai Sparnatural et les démonstrateurs des Archives Nationales de France et de la Bibliothèque Nationale de France réalisés en 2022. Ce sera un plaisir de vous y voir ! Après la conférence les supports seront à retrouver sur la section &#171;&#160;bibliographie&#160;&#187; du site. J&#8217;en profite&#8230;</p>
<p>Cet article <a rel="nofollow" href="https://blog.sparna.fr/2022/10/31/sparnatural-a-semweb-pro-2022-le-8-novembre/">Sparnatural à SemWeb.pro 2022 le 8 novembre</a> est apparu en premier sur <a rel="nofollow" href="https://blog.sparna.fr">Sparna Blog</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>Le 8 novembre prochain se tient l&rsquo;évènement <a href="https://2022.semweb.pro/"><strong>semweb.pro 2022</strong></a>. J&rsquo;y présenterai <a href="https://sparnatural.eu">Sparnatural</a> et les <a href="https://sparna-git.github.io/sparnatural-demonstrateur-an/">démonstrateurs des Archives Nationales de France</a> et de la <a href="https://data.bnf.fr/sparnatural/">Bibliothèque Nationale de France</a> réalisés en 2022. Ce sera un plaisir de vous y voir !</p>
<p>Après la conférence les supports seront à retrouver sur la <a href="https://sparnatural.eu/#bibliography">section &laquo;&nbsp;bibliographie&nbsp;&raquo; du site</a>.</p>
<p>J&rsquo;en profite pour vous indiquer les 2 dernières démos mises au point avec Sparnatural :</p>
<ul>
<li><a href="https://sparnatural.eu/demos/demo-partitions/">Recherche sur les partitions musicales</a> de la <a href="https://www.citedelamusique.fr">Cité de la Musique / Philharmonie de Paris</a>, modélisées avec FRBRoo + Doremus, pour le projet <em>ScoreBot</em> (chatbot de recherche sur des partitions musicales)</li>
<li><a href="https://sparnatural.eu/demos/demo-smt-med/">Recherche/navigation sur la maquette du référentiel d&rsquo;interopérabilité du médicament</a>. Ce référentiel est <a href="https://smt.esante.gouv.fr/explorer-les-concepts/terminologie-ref_interop_med/">publié sur le SMT de l&rsquo;ANS</a>.</li>
</ul>
<p>Cet article <a rel="nofollow" href="https://blog.sparna.fr/2022/10/31/sparnatural-a-semweb-pro-2022-le-8-novembre/">Sparnatural à SemWeb.pro 2022 le 8 novembre</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/2022/10/31/sparnatural-a-semweb-pro-2022-le-8-novembre/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
