This short tutorial will guide you through using Rosemary, a faceted search-style filtering tool for Yasgui.
Navigate to Yasgui-with-rosemary in your browser (Chrome recommended). This is a special version of the SPARQL editor Yasgui which comes bundled with Rosemary. Click the Rosemary icon in the top right to open the sidebar, which will slide in from the right.
In the Data Source textbox enter the URL of a Linked Data source (sometimes called a SPARQL endpoint). Ensure that you paste the correct URL here (some SPARQL endpoints are only accessible over HTTPS and not HTTP for example). Here is a non-exhaustive list of open data sources maintained by Wikidata. Keep in mind that some of these might no longer be accessible or active.
Use filters to refine your search. Rosemary provides four types (examples from DBpedia):
Filters are optional, but all fields must be filled for them to apply. A 🔍 icon means autocompletion—start typing for suggestions; otherwise, enter values manually. Example queries are available in the dropdown near the Properties filter. The SPARQL query updates dynamically as you adjust filters; add multiple filter instances using '+' buttons.
Display Properties lets you choose which properties of matched entities to show. For example, if filtering for persons born in Calcutta, you can choose to display their birth dates and spouses. Max # of results limits the number of returned results.
Once you have selected your filters, click on Run Query. Yasgui will execute the query on the selected data source and return the results in the pane at the bottom of the page.
Rosemary assumes that:
If you are unsure what these assumptions mean or whether a particular data source meets these criteria, contact the purveyors of that data source or ask a colleague familiar with Linked Data technologies to verify this for you.
Rosemary will work better on data sources that assign unique human-readable labels for each resource. If a particular store does not adhere to this, it means distinct resources in the data source share the same human-readable name. Duplicate names will show up in autocompletion results and it will not be possible to distinguish between such resources from the interface.
When searching large data sources (such as DBpedia) for the first time, it is expected that Rosemary can take a while (up to a minute or two for some queries, depending on your internet connection) to generate autocompletion suggestions. This issue will improve with continued usage if your browser has caching enabled.
We are considering ways to improve the user experience by doing upfront pre-calculation of the lists of available properties and types in the Data Source. This would make the initial loading time longer but will make subsequent filtering much quicker.
Using Rosemary, you can construct complex SPARQL queries without writing a single line of code. Try different filters and explore your dataset!
Try it Now