diff --git a/index.html b/index.html index c5e55af6..5d0ada4c 100644 --- a/index.html +++ b/index.html @@ -89,13 +89,15 @@

Query the Web of Linked Data

  • - +
    +
  • - +
    
    +          
  • diff --git a/queries/default/types.sparql b/queries/default/types.sparql deleted file mode 100644 index af10d910..00000000 --- a/queries/default/types.sparql +++ /dev/null @@ -1,10 +0,0 @@ -# 10300. Explore object types -PREFIX rdfs: -SELECT DISTINCT ?type ?label WHERE { - ?s a ?type. - OPTIONAL { - ?type rdfs:label ?label. - } - FILTER LANGMATCHES(LANG(?label), "EN") -} -LIMIT 100 diff --git a/settings.json b/settings.json index e94ebb3f..58869fd6 100644 --- a/settings.json +++ b/settings.json @@ -21,24 +21,49 @@ }, "datasources": [ { - "name": "FRINK Wikidata SPARQL", - "url": "https://frink.apps.renci.org/wikidata/sparql" + "name": "FRINK Wikidata", + "url": "https://frink.apps.renci.org/wikidata/sparql", + "multisource": "https://frink.apps.renci.org/ldf/wikidata" }, { - "name": "FRINK Wikidata TPF", - "url": "https://frink.apps.renci.org/ldf/wikidata" + "name": "FRINK Ubergraph", + "url": "https://frink.apps.renci.org/ubergraph/sparql", + "multisource": "https://frink.apps.renci.org/ldf/ubergraph" }, { - "name": "FRINK Ubergraph SPARQL", - "url": "https://frink.apps.renci.org/ubergraph/sparql" + "name": "DREAM-KG", + "url": "https://frink.apps.renci.org/dreamkg/sparql", + "multisource": "https://frink.apps.renci.org/ldf/dreamkg" }, { - "name": "FRINK Ubergraph TPF", - "url": "https://frink.apps.renci.org/ldf/ubergraph" + "name": "SCALES", + "url": "https://frink.apps.renci.org/scales/sparql", + "multisource": "https://frink.apps.renci.org/ldf/scales" }, { - "name": "KnowWhereGraph SPARQL", - "url": "sparql@https://stko-kwg.geog.ucsb.edu/sparql" + "name": "SemOpenAlex", + "url": "https://frink.apps.renci.org/semopenalex/sparql", + "multisource": "https://frink.apps.renci.org/ldf/semopenalex" + }, + { + "name": "SOC-KG", + "url": "https://frink.apps.renci.org/sockg/sparql", + "multisource": "https://frink.apps.renci.org/ldf/sockg" + }, + { + "name": "SUD-OKN", + "url": "https://frink.apps.renci.org/sudokn/sparql", + "multisource": "https://frink.apps.renci.org/ldf/sudokn" + }, + { + "name": "UF-OKN", + "url": "https://frink.apps.renci.org/ufokn/sparql", + "multisource": "https://frink.apps.renci.org/ldf/ufokn" + }, + { + "name": "Frink Federated SPARQL", + "url": "https://frink.apps.renci.org/federation/sparql", + "multisource": "" } ], "prefixes": { diff --git a/src/ldf-client-ui.js b/src/ldf-client-ui.js index f9ac348e..5dc84be3 100644 --- a/src/ldf-client-ui.js +++ b/src/ldf-client-ui.js @@ -25,6 +25,9 @@ require('leaflet/dist/images/marker-icon.png'); require('leaflet/dist/images/marker-icon-2x.png'); require('leaflet/dist/images/marker-shadow.png'); +// Import datasource settings +var settings = require('../settings.json'); + // Polyfill process for readable-stream when it is not defined if (typeof global.process === 'undefined') global.process = require('process'); @@ -93,6 +96,8 @@ if (typeof global.process === 'undefined') $element = this.element, $stop = this.$stop = $('.stop', $element), $start = this.$start = $('.start', $element), + $downloadCsv = this.$downloadCsv = $('#download_csv', $element), + $downloadLogs = this.$downloadCsv = $('#download_log', $element), $queryTexts = $('.querytext'), $queryContexts = $('.querycontext'), $queryResultsToTrees = $('.results-to-tree'), @@ -111,7 +116,8 @@ if (typeof global.process === 'undefined') $showDetails = this.$showDetails = $('.details-toggle', $element), $proxyDefault = $('.proxy-default', $element); this.$details = $('.details', $element); - + this.bindingResults = []; + this.logs = ''; // Replace non-existing elements by an empty text box if (!$datasources.length) $datasources = this.$datasources = $('