Widgets Wednesday !

Have you heard about #Sparnatural ?
Sparnatural is a UI component that allows users to explore an RDF #KnowledgeGraph by building SPARQL queries intuitively, based on your graph ontology.

https://sparnatural.eu/

🧵 Let's discover Sparnatural's widgets ⤵️

Sparnatural - Visual SPARQL query builder

1. Introducing #Sparnatural list widget 📜

The list widget is useful to show all possible values that a property can have. It can even show the number of occurrences of each. Users immediately see all possible values in the graph.

See the documentation :
https://docs.sparnatural.eu/widgets.html#list-widget

Sparnatural

Sparnatural : visual knowledge graph explorer with SPARQL, in the browser, configurable with SHACL

Sparnatural

2. Widgets Wednesday #2 :
#Sparnatural autocomplete widget 🤖

The autocomplete widget allows to select a URI by typing a few letters and selecting a value from a list. The search is triggered when 3 characters at least have been entered.

See the documentation :
https://docs.sparnatural.eu/widgets.html#autocomplete-widget

Sparnatural

Sparnatural : visual knowledge graph explorer with SPARQL, in the browser, configurable with SHACL

Sparnatural

3. Widgets Wednesday #3 :
#Sparnatural tree widget 🌳

The tree widget allows to select entities from a tree of values, typically a #SKOS ConceptScheme. Max. 3 values can be selected. Tree widget is implemented using the JS tree library.

See the documentation :
https://docs.sparnatural.eu/widgets.html#tree-widget

Sparnatural

Sparnatural : visual knowledge graph explorer with SPARQL, in the browser, configurable with SHACL

Sparnatural

4. Widgets Wednesday #4 :
#Sparnatural date, year & number widgets 🔢

Allows to express a date, year range & number to search on. Date & year using begin date - end date selected from calendars 📆 number with a lower bound and upper bound.

See the documentation :
https://docs.sparnatural.eu/widgets.html#date-range-widget

Sparnatural

Sparnatural : visual knowledge graph explorer with SPARQL, in the browser, configurable with SHACL

Sparnatural

5. Widgets Wednesday #5 :
#Sparnatural map widget 🗺️

Allows to select a rectangle on a map to generate a corresponding #GeoSPARQL query. The data in the triplestore must be encoded with literal values using the #wktLiteral datatype.

See the documentation :
https://docs.sparnatural.eu/widgets.html#map-widget

Sparnatural

Sparnatural : visual knowledge graph explorer with SPARQL, in the browser, configurable with SHACL

Sparnatural

6. Widgets Wednesday - finale !

To close this thread about #Sparnatural widgets, let's focus on the #SPARQL aggregate functions & the #YASGUI plugins that allow even more cool uses of your #knowledgegraph 👀 ⤵️

The aggregate functions are hidden in the bar, just below the query builder. As you can see, #Sparnatural supports all of them :

COUNT, CONCAT, MAX, MIN, SAMPLE, SUM, AVG

https://en.wikibooks.org/wiki/SPARQL/Aggregate_functions

SPARQL/Aggregate functions - Wikibooks, open books for an open world

Here an example with the « COUNT » feature.

The COUNT aggregate function returns a number of results (instead of a list), i.e. Sparnatural will « count » the number of times a given expression has a value within the aggregate group of results.

Which gives in Nakala :
https://www.nakala.fr/sparnatural/

Sparnatural Nakala

The #YASGUI plugins allow to display the query results in various ways...

See the documentation :
https://docs.sparnatural.eu/result-display.html

⬇️⬇️⬇️⬇️⬇️⬇️

Sparnatural

Sparnatural : visual knowledge graph explorer with SPARQL, in the browser, configurable with SHACL

Sparnatural

The example below shows the pie chart we can obtain with the stats plugin, based on the COUNT aggregation query we described above (here with the https://sparnatural.eu/demos/demo-dbpedia-en/index.html?lang=en demo).

See the documentation :
https://docs.sparnatural.eu/result-display.html#stats-plugin

Sparnatural Museums & Painters

Back to Nakala's query builder,
https://www.nakala.fr/sparnatural/

... here's how you can display on a map the points and polygons results from a query using either geo:wktLiteral or columns that contain respectively lat and long in their URI.

See the documentation :
https://docs.sparnatural.eu/result-display.html#map-plugin--points-and-polygons

Sparnatural Nakala

... and voilà !

Which one is your fav feature ? Do you have a #knowledgegraph you could query this way ?

Tell us more and pass it on !
https://github.com/sparna-git/Sparnatural

GitHub - sparna-git/Sparnatural: Sparnatural : visual knowledge graph explorer with SPARQL, in the browser, configurable with SHACL

Sparnatural : visual knowledge graph explorer with SPARQL, in the browser, configurable with SHACL - sparna-git/Sparnatural

GitHub