VSCode SPARQL NotebookThis extension provides a SPARQL Notebook mode for Visual Studio Code. This is a powerful way to document SPARQL queries and make them execute as notebook code cells. Use a SPARQL notebook to:
This notebook can render SPARQL SELECT results and RDF graphs via SPARQL CONSTRUCT queries. The extension automatically installs the Stardog RDF Grammars and SPARQL Language Server extensions for SPARQL syntax highlighting and auto-completion. This extension is still pretty raw but it works for us [tm]. Bug reports & contributions are very welcome! Get the ExtensionManualFeatures
InstallationYou can install it directly from the Visual Studio Code Extension tab. It is available on the Marketplace UsageOpen any EndpointsEndpoints are the destinations for sending SPARQL queries, and there are two types: Remote Servers (HTTP / HTTPS)You can connect to a remote server by clicking the Local EndpointsConfigure a local endpoint by right-clicking on a TTL, NT, or RDF file and selecting Cell-Specific EndpointsYou can assign an endpoint to a specific cell by adding a comment with the endpoint URL or file path in a code cell:
or
Working with relative paths makes the notebook portable. For file based endpoints you can have multiple files in the endpoint definitions in many ways: Absolute or relative paths pattern are supported but i suggest to use relative paths for portability.
or
or
Note: You cannot mix HTTP endpoints and file endpoints in the same cell. Cell Status BarThe cell status bar displays information about the endpoint in use and its source. Code Cell (SPARQL Cell)A code cell contains a SPARQL query, which can be a SELECT, ASK, CONSTRUCT, or DESCRIBE query. Execute a code cell by clicking the Run Cell button in the cell toolbar or pressing Ctrl+Enter (or Option+Enter on Mac). Query from a fileYou can attach a query file to a cell. The query file will load and execute when you run the cell. Supported file extensions include Cell Status BarThe cell status bar indicates whether the cell uses a query file. FAQShow SELECT Results as a TableTechnically that means set the default renderer for MIME-Type
Export as MarkdownRight click a ContributeThis extension uses the Notebook API . Contributions & bug fixes are always welcome! h Credits
And all contributors ❤️ |