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.
🧵 Let's discover Sparnatural's widgets ⤵️
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.
🧵 Let's discover Sparnatural's widgets ⤵️
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
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
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
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
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
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
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/
The #YASGUI plugins allow to display the query results in various ways...
See the documentation :
https://docs.sparnatural.eu/result-display.html
⬇️⬇️⬇️⬇️⬇️⬇️
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
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
... 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