-
Notifications
You must be signed in to change notification settings - Fork 1
User Guide
Daniel Heward-Mills edited this page Sep 27, 2025
·
1 revision
This guide provides step-by-step instructions for using SPARQLWorksβ’ to compose queries and visualize RDF data.
- Open your web browser
- Navigate to the SPARQLWorks application URL
- The interface loads with default settings
The application opens with:
-
Demo endpoint:
https://demo.openlinksw.com/sparql(pre-configured) - Basic mode: Selected by default
- Sample query: Pre-loaded example
- Empty graph: Ready for your first visualization
- Locate the "SPARQL Endpoint" field in the query panel
- Enter your endpoint URL (or choose from the datalist)
- Popular endpoints include:
https://demo.openlinksw.com/sparqlhttps://query.wikidata.org/sparqlhttps://dbpedia.org/sparql
- Click the "Basic" tab
- Use the code editor to write triple patterns
- Example basic query:
?movie dbo:creator ?creator; rdfs:label ?movieName. FILTER(?creator = dbr:Spike_Lee). - Adjust the LIMIT slider (default: 200)
- Click the "Advanced" tab
- Write complete SPARQL CONSTRUCT queries
- Example advanced query:
CONSTRUCT { ?movie dbo:creator ?creator; rdfs:label ?movieName. } WHERE { ?movie dbo:creator ?creator; rdfs:label ?movieName. FILTER(?creator = dbr:Spike_Lee). } LIMIT 200
- Click the "Run Query" button
- Wait for execution (progress shown in button text)
- Results appear as an interactive graph
- Success/error messages display as toast notifications
- Blue circles: IRI entities (persons, places, concepts)
- Green circles: RDF classes/types
- Orange circles: Role-based entities
- Small gray circles: Literal values (strings, numbers, dates)
- Arrows: Directed relationships from subject to object
- Icons: Predicate representations (or full names)
- Colors: Match source node colors
-
Double arrows: Symmetric predicates (e.g.,
owl:sameAs)
- Zoom: Mouse wheel up/down
- Pan: Click and drag empty space
- Fit to screen: Click the "Fit" button
- Reset zoom: Double-click empty space
- Hover: Highlight connected nodes and relationships
- Click: Open entity IRI in new browser tab
- Drag: Reposition nodes manually
- Double-click: Release pinned position
- Hover: Show full predicate IRI and relationship details
- Click: Open predicate IRI in new browser tab
- Click the gear icon (βοΈ) to open controls panel
- Adjust "Physics: Charge Strength" (-1000 to 0)
- Lower values = stronger repulsion
- Higher values = weaker repulsion
- Adjust "Physics: Link Distance" (10-300 pixels)
- Controls spacing between connected nodes
- Hover focus: Enable/disable highlight on hover
- Friendly labels: Show human-readable names vs. URIs
- IRI Labels: Toggle compact CURIE display
- Preferred Language: Set language preference for labels
- In the controls panel, check/uncheck node types:
- IRI: External entities and resources
- Class: RDF type definitions
- Category: Classification terms
- Role: Functional roles
- Literal: Data values
- Click "Filter by rdf:type" accordion
- Select "Select all" or choose specific types
- Only nodes with selected types remain visible
- Connected relationships automatically adjust
- Click "Filter by property" accordion
- Select "Select all" or choose specific predicates
- Only relationships using selected properties appear
- Graph focuses on filtered relationships
- Hide rdf:type relationships: Remove type classification edges
- Edge annotations: Choose between icons or full predicate names
- Click the account icon (π€) in the top-right
- Click "Log In"
- Follow OAuth flow for your SPARQL endpoint
- Credentials stored locally and automatically applied
- Click the account icon (π€)
- Click "Provide Bearer token"
- Enter your token in the modal
- Click "Save & Authenticate"
- Click "OAuth Settings" from account menu
- Configure Client ID (if required by endpoint)
- Set Redirect URI (defaults to current page)
- Settings persist across sessions
- Configure your query and visualization settings
- Click the link icon (π) next to the controls toggle
- Link copies to clipboard automatically
- Share with colleagues or bookmark for later
Shareable links encode:
- Complete SPARQL query
- Endpoint URL
- Visualization settings
- Filter configurations
- Authentication state (secure)
- Click the gear icon next to "Use IRI Labels"
- "Label priority settings" modal opens
- Drag to reorder label predicate preferences
- Changes apply immediately to current graph
- Advanced mode: Full query editing history via Ace Editor
- Basic mode: Triple pattern history
- URL persistence: Settings saved in browser URL
- Progressive loading: Large result sets load incrementally
- Filtering first: Apply filters before full rendering
- Physics optimization: Adjust charge/link settings for performance
- Check endpoint URL: Ensure it's accessible and SPARQL-compliant
- Verify syntax: Use Advanced mode to validate SPARQL syntax
- Check authentication: Some endpoints require credentials
- Empty results: Query returned no data - try broadening WHERE clause
- Network timeout: Large queries may time out - reduce LIMIT
- CORS issues: Some endpoints block browser requests
- OAuth flow fails: Check redirect URI configuration
- Token rejected: Verify token validity and format
- CORS blocking: Some endpoints don't support browser authentication
- Start with LIMIT: Use small limits (50-100) for testing
- Filter early: Apply type/property filters before running large queries
- Use Basic mode: For complex visualizations, start simple
- Close panels: Hide query panel when exploring large graphs
- Query Modes - Deep dive into Basic vs Advanced
- Graph Visualization - Advanced visualization techniques
- Examples - Sample queries for different use cases
- Authentication - Detailed authentication setup