This chapter discusses Stardog Explorer - an intuitive web browser tool for anyone to browse the connections in their data fabric.
<details open markdown="block"> <summary> Page Contents </summary> 1. TOC </details>Stardog Explorer is the search and visualization tool for anyone to explore complex data fabrics easily, without code or queries. For the best experience in Stardog Explorer, use Stardog version 7.6.3 or above.
Explorer supports two search experiences — text-based searches and Query Builder. Text-based searches require a keyword entry to find results with the entered keyword. Query Builder queries enable users to search along paths of relationships in their data model and filter classes by attributes to ask specific questions.
Text searches in Explorer are easy. Simply enter any text-based search term you are interested in. If you want to enter a more complex search, the search bar supports using the * character as a wildcard to match any character(s).
Explorer will use full-text search when it is enabled for a database. When full-text search is not enabled, Explorer searches based on starts with, ends with, and contains patterns. When any virtual graphs are in scope, Explorer only searches based on starts with and ends with patterns regardless of full-text search being enabled.
Additionally, Explorer text-based searches are limited to the following properties:
http://www.w3.org/2000/01/rdf-schema#commenthttp://www.w3.org/2000/01/rdf-schema#labelhttp://www.w3.org/2004/02/skos/core#definitionhttp://www.w3.org/2004/02/skos/core#prefLabelStardog Explorer’s Query Builder enables users to visually define queries and review expanded results in the list or graph view. To execute a query, click on the Query Builder button next to the search bar. Enter the search criteria you are looking for. Explorer leverages your model to show the relevant relationships and attributes for each class. See the Model Criteria section to learn more about these requirements.
By default, your results will be displayed with all of the relationships and additional classes used to build your query. The example below queries for claims reports of customers that own red cars. By default, it includes claim reports, customers, and the cars owned by each customer in the graph results.
<video autoplay loop muted playsinline width="500"> <source src="../../assets/videos/applications/explorer/expanded_graph_results.mp4" type="video/mp4"></source> <source src="../../assets/videos/applications/explorer/expanded_graph_results.webm" type="video/webm"></source> </video>If you want to see a limited set of class type variable in your results, select the variable(s) to be shown in the results. When the selected variables are connected by relationships in the query, those relationships connections are also shown, otherwise the returned results will be disjoint.
<video autoplay loop muted playsinline width="500"> <source src="../../assets/videos/applications/explorer/turn_off_expand_graph_results.mp4" type="video/mp4"></source> <source src="../../assets/videos/applications/explorer/turn_off_expand_graph_results.webm" type="video/webm"></source> </video>To exclude data from your responses, use the AND NOT option, specifying the variable(s) and characteristics of the data to be excluded.
Stardog Explorer supports saving queries built using the Query Builder. Saving a query is an easy way to save your work or common searches you have run, as well as collaborate with other users. To save a query, instead of selecting Run, select Save. If you are editing an existing saved query, you have two options -- Save and Save As. Save will save your changes to the existing saved query. Save As will create a new saved query with your changes.
To all saved queries, you may optionally add a description, set the query to Private, and add Tags.
Private option will keep your query private so only you will be able to see, edit, and run your query.Voicebox Query Prompt. A Voicebox Query Prompt requires a user to add Associated question(s) which are answered by the query. Creating Voicebox Query Prompt queries will help guide Voicebox when answering user questions.Saved queries in Explorer are saved to your server as stored queries. Please see valid permissions for more details on permissions for stored queries. Stored queries created outside of Explorer are not available in Explorer. Additionally, saved queries edited outside of Explorer will cease to be available in Explorer.
To quickly visualize your model, select the Visualize button without entering any search criteria.
To narrow search contexts down to specific classes, use the class filter to the left of the search bar.
<video autoplay loop muted playsinline width="500"> <source src="../../assets/videos/applications/explorer/filter_search.mp4" type="video/mp4"></source> <source src="../../assets/videos/applications/explorer/filter_search.webm" type="video/webm"></source> </video>Explorer has detailed views of each class in your database. From this detailed view, see up to 10 instances of each connected property. Additionally, these properties are linked so you can continue exploring.
<video autoplay loop muted playsinline width="500"> <source src="../../assets/videos/applications/explorer/see_details.mp4" type="video/mp4"></source> <source src="../../assets/videos/applications/explorer/see_details.webm" type="video/webm"></source> </video>The graph visualization in Explorer is configured to help you explore your data and customize your view of your data fabric. The key capabilities of the visualization view within Explorer are outlined below.
SHIFT enables multi-selection. You can also drag-select to select multiple objects in the graph at once.Expand by menu includes all incoming and outgoing relationships tied to the set of nodes selected.
Stardog Explorer supports path queries across two classes or two instance nodes. To run a path expansion query, select the classes or instances of interest (using SHIFT to multi-select), right click one of the selected items, and select the Shortest Path option.
When geospatial attributes are for classes or class instances, Explorer automatically detects and renders these nodes on an interactive map. See how to add coordinates in Designer.
Nodes will be visualized using, when available:
geo:hasGeometry) using geo:asWKT (ex: ?subject geo:hasGeometry [ geo:asWKT ?location ])geo:hasGeometry) using wgs:lat and wgs:long (ex: ?instance geo:hasGeometry [ wgs:lat ?lat ; wgs:long ?long ])wgs:lat and wgs:long, ex: ?subject wgs:lat ?lat ; wgs:long ?long )Check out the Geospatial data tutorial to see more about how Stardog supports Geospatial data.
tag:stardog:map:v1:tooltip_title and tag:stardog:map:v1:tooltip_content.tag:stardog:map:v1:popup_title and tag:stardog:map:v1:popup_content.tag:stardog:map:v1:node_size.There are four settings within Stardog Explorer that allow you to customize your experience.
<img alt="Explorer Settings" src="../../assets/images/applications/explorer/explorer_settings.png" class="image-border"/>The Graph setting will filter your results down to a specific graph. When no option is selected, Explorer will query all local Stardog graphs - that is, the default graph and all named graphs in the database.
all to include all virtual and local data in Stardog or virtual to include all and only virtual data. To learn more about virtual transparency, check out the documentation.SHIFT while selecting options in the drop down.The Model setting is limited to your Stardog Server's reasoning schemas and allows you to specify a specific reasoning schema. By default, Explorer uses the default reasoning schema.
The Reasoning toggle enables reasoning throughout Explorer. To learn more about reasoning and Stardog's Inference Engine, check out the documentation.
The Case-insensitive search toggle enables all text matching in Explorer to be case-insensitive when toggled on.
The share button allows a user to share the same view of the graph with another user through a link. Note that the user with the shared link will see the graph from their permission set, not the original sharer’s. A user must be a user to the Stardog endpoint and be given at least read permissions to the database the Explorer share URL was generated from.
Share links can also be used to bookmark a specific Explorer view for later use.
The download button allows a user to download instance and relationship data in tabular format to view or use with another system.
Explorer text-based search results are limited to the top 50 instances.
Explorer Query Builder results are limited to the 100 instances of each class type variable.
Explorer visualizations are limited to approximately 5000 individual objects. A group counts as only 1 object.
To improve performance of queries created with Query Builder that reference specific data instances, we recommend using the in property option and selecting your instance(s) from the suggestions or specifying the IRI of the instance(s), using backticks (`) to encase each instance.
To authenticate using Kerberos, both the Stardog server and your browser must be correctly configured. Check out the documentation on how.
Enabling virtual transparency is required to set the Graph scope to the special named graphs all or virtual.
Shortest path expansions are limited to within 20 hops.
Shortest path expansions are targeted to the data model when classes are selected and are targeted to non-data model classes when instances are selected.
Shortest path expansions do not include virtual graphs. When paths are expanded, the path is sourced from the current graph selection minus any virtual graphs.
Models with over 1000 classes, relationships, and attributes have restricted behavior in Explorer for unbound relationships and attributes. Unbound relationships do not have a defined domain and range. Unbound attributes do not have a defined domain. Domain and range in these cases refer to domains, domainIncludes, range, and rangeIncludes. Unbound relationships and attributes are omitted from:
Expand by optionsClasses must be defined as:
http://www.w3.org/2002/07/owl#Class, http://www.w3.org/2000/01/rdf-schema#Class, or http://www.w3.org/2004/02/skos/core#Concept.
http://www.w3.org/2000/01/rdf-schema#subClassOf.Relationships must be defined as:
http://www.w3.org/2002/07/owl#ObjectProperty.
http://www.w3.org/2000/01/rdf-schema#domain, http://schema.org/domainIncludes, or https://schema.org/domainIncludes.http://www.w3.org/2000/01/rdf-schema#range, http://schema.org/rangeIncludes, or https://schema.org/rangeIncludes.Attributes must be defined as:
http://www.w3.org/2002/07/owl#DatatypeProperty.
http://www.w3.org/2000/01/rdf-schema#domain, http://schema.org/domainIncludes, or https://schema.org/domainIncludes.http://www.w3.org/2000/01/rdf-schema#range, http://schema.org/rangeIncludes, or https://schema.org/rangeIncludes.Display labels must be defined using:
http://www.w3.org/2000/01/rdf-schema#label or http://www.w3.org/2004/02/skos/core#prefLabel.
For questions, comments, or feature requests, please post in the Explorer section of the Stardog Community.
The Stardog blog includes posts about new Explorer functionality. All of those posts are available under the Explorer Tag.