All files / languages/sparql/services default-stores.ts

100% Statements 3/3
100% Branches 0/0
100% Functions 0/0
100% Lines 3/3

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66            15x                               15x                                                                                   15x  
import { TripleStoreConfig } from './triple-store-config';
 
/**
 * The vendor-neutral store types that ship with Mentor itself, shown in the "Built-In"
 * group of the Stores settings section alongside the synthetic workspace store.
 */
export const BUILT_IN_STORES: TripleStoreConfig[] = [
	{
		id: 'sparql',
		label: 'SPARQL Endpoint',
		description: 'A generic endpoint conforming to the SPARQL 1.1 Protocol.',
		documentationUrl: 'https://www.w3.org/TR/sparql11-query/',
		isProtected: true
	}
];
 
/**
 * Store types for Open Source triple stores maintained by independent developer
 * communities. Mentor ships these configurations for convenience only; it is not
 * affiliated with the projects. Shown in the "Community" group of the Stores settings
 * section.
 */
export const COMMUNITY_STORES: TripleStoreConfig[] = [
	{
		id: 'jena',
		label: 'Apache Jena Fuseki',
		description: 'SPARQL server of the Apache Jena framework.',
		documentationUrl: 'https://jena.apache.org/',
		isProtected: true,
		queries: {
			listGraphs: 'SELECT DISTINCT ?graph\nWHERE \n{\n    GRAPH ?graph {}\n}\nORDER BY ?graph'
		}
	},
	{
		id: 'qlever',
		label: 'QLever',
		description: 'High-performance SPARQL engine for very large knowledge graphs.',
		documentationUrl: 'https://github.com/ad-freiburg/qlever',
		isProtected: true
	},
	{
		id: 'rdf4j',
		label: 'RDF4J',
		description: 'Eclipse RDF4J server with per-query reasoning control.',
		documentationUrl: 'https://rdf4j.org/',
		isProtected: true,
		inference: {
			supported: true,
			urlParameters: {
				enabled: 'infer=true',
				disabled: 'infer=false'
			}
		}
	}
];
 
/**
 * The built-in store type presets. They are defined in code, always present, cannot be
 * edited or deleted, and are never written to the `mentor.sparql.stores` setting — that
 * setting only holds user- and workspace-defined stores. Settings entries whose id
 * collides with a preset are ignored (see `TripleStoreConfigService.getStoreConfigs`).
 *
 * This module must stay importable from the webview bundle: no `vscode` imports.
 */
export const PRESET_STORES: TripleStoreConfig[] = [...BUILT_IN_STORES, ...COMMUNITY_STORES];