Giter Club home page Giter Club logo

jquery-widget.js's Introduction

Comunica SPARQL jQuery Widget

npm version Build status Docker Automated Build

Try the Comunica SPARQL jQuery Widget online.

This jQuery widget is a browser-based user interface to the Comunica SPARQL client. It allows users to execute SPARQL queries over one or multiple heterogeneous interfaces, such as Triple Pattern Fragments interfaces.

The @comunica/web-client-generator allows this widget to be generated for any Comunica configuration.

Installation

This tool requires Node.JS 10.0 or higher and is tested on OSX and Linux.

The easiest way to use this tool is by installing it from NPM as follows:

$ npm install -g @comunica/web-client-generator

Alternatively, you can install from the latest GitHub sources:

$ git clone [email protected]:comunica/jQuery-Widget.js.git

Generate jQuery widget

After installation, the comunica-web-client-generator CLI tool allows you to generate a new widget.

If installed from the GitHub sources, use ./bin/generate.js instead of comunica-web-client-generator.

Generating the widget for the default Comunica SPARQL config can be done as follows:

$ comunica-web-client-generator

The output will be available in the build/ directory.

Provide a custom config

In order to override the default config, you can pass one as argument.

$ comunica-web-client-generator config/config-default.json

This assumes that your engine's dependencies are available in your working directory. If this is not the case, provide a path to your engine's directory via the -c option:

$ comunica-web-client-generator path/to/engine/config/config-default.json -c path/to/engine/

Change settings and queries

The default datasources and queries can be changed as follows:

$ comunica-web-client-generator -s settings.json -q queries

Examples for the settings.json file and the queries directory.

Show all available options

All available options for this command are:

$ comunica-web-client-generator -h
comunica-web-client-generator generates Comunica Web clients
  Usage:
    comunica-web-client-generator config/config-default.json
    comunica-web-client-generator config/config-default.json -d my-build/ -s my-settings.json
    comunica-web-client-generator config/config-default.json -q my-queries/
    comunica-web-client-generator config/config-default.json -w my-webpack.config.js

  Options:
    -b            The base URL at which the Web Client will be deployed [default: https://query.linkeddatafragments.org/]
    -d            Destination of the built output (defaults to build)
    -m            The compilation mode (defaults to production, can also be development)
    -c            Path to the main Comunica module (defaults to cwd)
    -q            Path to custom queries directory
    -s            Path to custom settings file
    -w            Path to custom Webpack config
    --help        Print this help message

Running in a Docker container

Run the pre-built container

docker run -p 3000:80 -it --rm comunica/jquery-widget.js

Run from git sources

Configure your widget by editing the settings.json file.

Next, edit the queries directory in which you should insert the queries that will be present by default in the widget.

Build the Docker container as follows:

docker build -t comunica-sparql-widget .

After that, you can run your newly created container by mounting your current folder to the Docker container:

docker run -p 3000:80 -it --rm comunica-sparql-widget

Settings and queries can be passed at runtime by mounting your custom queries.json to the Docker container:

# Compile queries.json from settings.json and the files in the queries folder
./bin/queries-to-json.js

# Provide the compiled queries.json at runtime
docker run -v $(pwd)/queries.json:/usr/share/nginx/html/queries.json -p 3000:80 -it --rm comunica-sparql-widget

Access on http://localhost:3000

For developers of this package

The following is only relevant for developers that contribute to this package.

Using the code

  • Run yarn install to fetch dependencies and build the browser version of the client code.
  • Run yarn run dev to run a local Web server (yarn run dev-prod for minified production output).
  • Edit datasources in settings.json and queries in the queries folder, and run queries-to-json to compile both of them in a single JSON file.
  • Run yarn run build to generate a production version in the build folder.

How the browser client works

The original Comunica SPARQL engine is written for the Node.js environment. The Webpack library makes it compatible with browsers.

The query engine itself runs in a background thread using Web Workers. The user interface (ldf-client-ui.js) instructs the worker (ldf-client-worker.js) to evaluate queries by sending messages, and the worker sends results back.

License

The Linked Data Fragments jQuery Widget was originally written by Ruben Verborgh and ported for Comunica SPARQL by Ruben Taelman.

This code is copyrighted by Ghent University – imec and released under the MIT license.

jquery-widget.js's People

Contributors

balhoff avatar florianfv avatar greenkeeper[bot] avatar gvanderh avatar jeswr avatar kakoozajerry avatar manudebuck avatar marc-portier avatar mpparsley avatar mvanbrab avatar pheyvaer avatar phivk avatar pietercolpaert avatar renovate-bot avatar renovate[bot] avatar rubensworks avatar rubenverborgh avatar seralf avatar stephaniech97 avatar surilindur avatar vemonet avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

jquery-widget.js's Issues

Add icon of datasource type to the datasources list

When selecting a datasource in the list, its type should be visually clear so you can distinguish between SPARQL endpoint, TPF interface, LD docs, etc. A fallback scenario would be adding a prefix in the text.

Access Token Configuration

In order to use tiles from Mapbox, you must also request an access token.
These can be obtained from Mapbox access documentation.

We want to;

  • Make the access token configurable from the settings.json file
  • Have the token accessed and used within the src/ldf-client-ui.js file line 117

Add "Login to my Solid Pod" in the list of datasources

While we already have the option to login with a Solid WebID via the settings, it would be useful to also have an entry in the datasources list.

To quote @pmcb55:

So I was just thinking, could it also be added as an option in the 'Choose datasources:' dropdown menu (just visually, so instead of the current text (when you click on that dropdown) of 'Select a preset datasource, or type custom URL', it becomes 'Select a preset datasource, type custom URL, or log into a Solid Pod', and if you select a 'Solid Pod' option from that dropdown, the UI for 'Solid authentication:' appears.

Add HTTP request counter

Currently, a running execution time counter is shown on top of the query results.
For traversal cases (such as link traversal and TPF), a running count of the number of HTTP requests would also be valuable to have.

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

npm
package.json
  • @babel/core ^7.16.0
  • @babel/preset-env ^7.16.4
  • @comunica/config-query-sparql ^3.0.1
  • @comunica/query-sparql ^3.0.1
  • @comunica/runner ^3.0.1
  • @rubensworks/solid-client-authn-browser ^1.13.0
  • @turf/centroid ^6.5.0
  • babel-loader ^8.2.3
  • file-loader ^6.0.0
  • json-loader ^0.5.7
  • leaflet ^1.7.1
  • minimist ^1.2.5
  • n3 ^1.16.2
  • rdf-string ^1.6.1
  • relative-to-absolute-iri ^1.0.6
  • string-replace-loader ^3.1.0
  • webpack ^5.69.0
  • webpack-cli ^4.9.2
  • webpack-dev-server ^4.7.4
  • wellknown ^0.5.0
  • wicket ^1.3.6
  • yasgui-yasqe ^2.11.22
  • @babel/eslint-parser ^7.18.9
  • manual-git-changelog ^1.0.1
  • pre-commit ^1.2.2

  • Check this box to trigger a request for Renovate to run again on this repository

An in-range update of webpack is breaking the build 🚨

The devDependency webpack was updated from 4.35.3 to 4.36.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

webpack is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • ❌ continuous-integration/travis-ci/push: The Travis CI build could not complete due to an error (Details).

Release Notes for v4.36.0

Features

  • SourceMapDevToolPlugin append option now supports the default placeholders in addition to [url]
  • Arrays in resolve and parser options (Rule and Loader API) support backreferences with "..." when overriding options.
Commits

The new version differs by 42 commits.

  • 95d21bb 4.36.0
  • aa1216c Merge pull request #9422 from webpack/feature/dot-dot-dot-merge
  • b3ec775 improve merging of resolve and parsing options
  • 53a5ae2 Merge pull request #9419 from vankop/remove-valid-jsdoc-rule
  • ab75240 Merge pull request #9413 from webpack/dependabot/npm_and_yarn/ajv-6.10.2
  • 0bdabf4 Merge pull request #9418 from webpack/dependabot/npm_and_yarn/eslint-plugin-jsdoc-15.5.2
  • f207cdc remove valid jsdoc rule in favour of eslint-plugin-jsdoc
  • 31333a6 chore(deps-dev): bump eslint-plugin-jsdoc from 15.3.9 to 15.5.2
  • 036adf0 Merge pull request #9417 from webpack/dependabot/npm_and_yarn/eslint-plugin-jest-22.8.0
  • 37d4480 Merge pull request #9411 from webpack/dependabot/npm_and_yarn/simple-git-1.121.0
  • ce2a183 chore(deps-dev): bump eslint-plugin-jest from 22.7.2 to 22.8.0
  • 0beeb7e Merge pull request #9391 from vankop/create-hash-typescript
  • bf1a24a #9391 resolve super call discussion
  • bd7d95b #9391 resolve discussions, AbstractMethodError
  • 4190638 chore(deps): bump ajv from 6.10.1 to 6.10.2

There are 42 commits in total.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

this module requires vulnerable sub dependencies via deprecated [email protected] dependency

we deploy a web client, generated via this module with some custom queries and settings, see this repo.

I noticed several dependabot security alerts caused by this module's dependency [email protected].
When I checked its repo, I found out it is deprecated in favour of https://github.com/TriplyDB/Yasgui.

Not sure how straightforward it is to replace yasgui-yasqe with @triply/yasgui in terms of compatibility, but it seems desirable.

npm installed comunica-web-client-generator throws 'error: Detected fatal error.'

I just installed via npm install -g @comunica/web-client-generator and ran

$ comunica-web-client-generator

First this logs a long list of warnings originating from Components.js in the form:

[Components.js] warn: Detected remote context lookup for 'https://linkedsoftwaredependencies.org/bundles/npm/@comunica/runner/^1.0.0/components/context.jsonld' in /Users/phivk/.nvm/versions/node/v12.20.0/lib/node_modules/@comunica/web-client-generator/config/config-default.json. This may indicate a missing or invalid dependency, or an invalid context URL.

followed by the following error:

[Components.js] error: Detected fatal error. Generated 'componentsjs-error-state.json' with more information.
ErrorResourcesContext: Could not find (valid) component types for config "urn:comunica:my" among its types, or a requireName
configTypes: https://linkedsoftwaredependencies.org/bundles/npm/@comunica/runner/Runner
config: {
  term: NamedNode { termType: 'NamedNode', value: 'urn:comunica:my' },
  properties: {
    'http://www.w3.org/2000/01/rdf-schema#seeAlso': [
      [Resource], [Resource],
      [Resource], [Resource],
      [Resource], [Resource],
      [Resource], [Resource],
      [Resource], [Resource],
      [Resource], [Resource],
      [Resource], [Resource],
      [Resource], [Resource],
      [Resource], [Resource],
      [Resource], [Resource]
    ],
    'http://www.w3.org/1999/02/22-rdf-syntax-ns#type': [ [Resource] ],
    'https://linkedsoftwaredependencies.org/bundles/npm/@comunica/runner/actor': [
      [Resource], [Resource], [Resource], [Resource], [Resource],
      [Resource], [Resource], [Resource], [Resource], [Resource],
      [Resource], [Resource], [Resource], [Resource], [Resource],
      [Resource], [Resource], [Resource], [Resource], [Resource],
      [Resource], [Resource], [Resource], [Resource], [Resource],
      [Resource], [Resource], [Resource], [Resource], [Resource],
      [Resource], [Resource], [Resource], [Resource], [Resource],
      [Resource], [Resource], [Resource], [Resource], [Resource],
      [Resource], [Resource], [Resource], [Resource], [Resource],
      [Resource], [Resource], [Resource], [Resource], [Resource],
      [Resource], [Resource], [Resource], [Resource], [Resource],
      [Resource], [Resource], [Resource], [Resource], [Resource],
      [Resource], [Resource], [Resource], [Resource], [Resource],
      [Resource], [Resource], [Resource], [Resource], [Resource],
      [Resource], [Resource], [Resource], [Resource], [Resource],
      [Resource], [Resource], [Resource], [Resource], [Resource],
      [Resource], [Resource], [Resource], [Resource], [Resource],
      [Resource], [Resource], [Resource], [Resource], [Resource],
      [Resource], [Resource], [Resource], [Resource], [Resource]
    ],
    'http://usefulinc.com/ns/doap#name': []
  }
}
    at ConfigPreprocessorComponentMapped.canHandle (/Users/phivk/.nvm/versions/node/v12.20.0/lib/node_modules/@comunica/web-client-generator/node_modules/componentsjs/lib/preprocess/ConfigPreprocessorComponent.js:37:23)
    at ConfigPreprocessorComponentMapped.canHandle (/Users/phivk/.nvm/versions/node/v12.20.0/lib/node_modules/@comunica/web-client-generator/node_modules/componentsjs/lib/preprocess/ConfigPreprocessorComponentMapped.js:28:38)
    at ConfigConstructorPool.getRawConfig (/Users/phivk/.nvm/versions/node/v12.20.0/lib/node_modules/@comunica/web-client-generator/node_modules/componentsjs/lib/construction/ConfigConstructorPool.js:68:53)
    at ConfigConstructorPool.instantiate (/Users/phivk/.nvm/versions/node/v12.20.0/lib/node_modules/@comunica/web-client-generator/node_modules/componentsjs/lib/construction/ConfigConstructorPool.js:46:34)
    at ComponentsManager.instantiate (/Users/phivk/.nvm/versions/node/v12.20.0/lib/node_modules/@comunica/web-client-generator/node_modules/componentsjs/lib/ComponentsManager.js:42:54)
    at compileConfig (/Users/phivk/.nvm/versions/node/v12.20.0/lib/node_modules/@comunica/web-client-generator/node_modules/componentsjs/lib/util/CompileUtil.js:27:53)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
    at async /Users/phivk/.nvm/versions/node/v12.20.0/lib/node_modules/@comunica/web-client-generator/bin/generate.js:37:5

system setup:

  • Node version v12.20.0
  • macOS 10.15.7

Any help would be appreciated :)

Multiple http://query.linkeddatafragments.org/ examples don't work in Firefox, but keep working in eg Chrome

yarn run dev fails: Cannot find module 'webpack-cli/bin/config-yargs'

With 6972d08 I run into this issue when trying to run yarn run dev as instructed:

klimek@KUBA-1:~/jQuery-Widget.js$ node -v
v15.2.1
klimek@KUBA-1:~/jQuery-Widget.js$ npm -v
7.0.8
klimek@KUBA-1:~/jQuery-Widget.js$ yarn install
yarn install v1.22.5
[1/4] Resolving packages...
[2/4] Fetching packages...
info [email protected]: The platform "linux" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
info [email protected]: The platform "linux" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning "@comunica/actor-init-sparql > @comunica/[email protected]" has unmet peer dependency "@comunica/utils-datasource@^1.2.0".
warning "@comunica/actor-init-sparql > @comunica/[email protected]" has unmet peer dependency "@comunica/utils-datasource@^1.0.0".
warning " > @comunica/[email protected]" has unmet peer dependency "@comunica/bus-init@^1.0.0".
warning " > @comunica/[email protected]" has unmet peer dependency "@comunica/core@^1.0.0".
[4/4] Building fresh packages...
$ comunica-compile-config config/config-default.json > comunica-engine.js
Done in 42.30s.
klimek@KUBA-1:~/jQuery-Widget.js$ yarn run dev
yarn run v1.22.5
$ npm run prepare && webpack-dev-server --config webpack.config.js --mode development

> prepare
> comunica-compile-config config/config-default.json > comunica-engine.js

node:internal/modules/cjs/loader:922
  throw err;
  ^

Error: Cannot find module 'webpack-cli/bin/config-yargs'
Require stack:
- /home/klimek/jQuery-Widget.js/node_modules/webpack-dev-server/bin/webpack-dev-server.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:919:15)
    at Function.Module._load (node:internal/modules/cjs/loader:763:27)
    at Module.require (node:internal/modules/cjs/loader:991:19)
    at require (node:internal/modules/cjs/helpers:92:18)
    at Object.<anonymous> (/home/klimek/jQuery-Widget.js/node_modules/webpack-dev-server/bin/webpack-dev-server.js:80:1)
    at Module._compile (node:internal/modules/cjs/loader:1102:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1131:10)
    at Module.load (node:internal/modules/cjs/loader:967:32)
    at Function.Module._load (node:internal/modules/cjs/loader:807:14)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:76:12) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/home/klimek/jQuery-Widget.js/node_modules/webpack-dev-server/bin/webpack-dev-server.js'
  ]
}
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Action Required: Fix Renovate Configuration

There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.

Location: renovate.json
Error type: The renovate configuration file contains some invalid settings
Message: packageRules[0]: packageRules cannot combine both matchUpdateTypes and rangeStrategy. Rule: {"matchSourceUrlPrefixes":["https://github.com/comunica/comunica"],"groupName":"Comunica monorepo packages","matchUpdateTypes":["minor","patch"],"rangeStrategy":"update-lockfile","automerge":true,"stabilityDays":0,"schedule":null,"prConcurrentLimit":0,"branchConcurrentLimit":0}

An in-range update of @comunica/runner is breaking the build 🚨

The dependency @comunica/runner was updated from 1.4.4 to 1.6.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

@comunica/runner is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.

Status Details
  • ❌ continuous-integration/travis-ci/push: The Travis CI build could not complete due to an error (Details).

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Clarify that you can add custom sources by typing

Many people seem to be unaware that next to selecting sources from the dropdown, you can also type in custom source URLs.

We should add some kind of visual indicator that you can actually type things in here.

Comunica Web client doesn't escape whitespace in the URL

Issue type:

  • πŸ› Bug

Description:

In the comunica demo website one can contruct a SPARQL query and then bookmark, copy&paste .. the URL to another window/website/blog post. This browser URL does not contain the new lines in the SPARQL code. The bookmarked URL will not work without editing. E.g. a copy and pastes URL:

https://comunica.github.io/comunica-feature-link-traversal-web-clients/builds/solid-default/#datasources=https:%2F%2Fbellow2.ugent.be%2Ftest%2Fscholix%2Facademic.oup.com%2Finbox%2F&query=PREFIX as: https:%2F%2Fwww.w3.org%2Fns%2Factivitystreams#PREFIX scholix: http:%2F%2Fwww.scholix.org%2FSELECT ?subject ?pred ?objectWHERE { ?id a as:Announce ; %09%09 as:object ?x . ?x as:relationship ?pred ; as:subject ?subject ; as:object ?object .}


Environment:

Vivaldi | 5.2.2623.39Β (Stable channel)Β (x86_64)
macOS Version 10.15.7 (Build 19H1824)

Comunica 2.1.0

Crash log:

An in-range update of webpack is breaking the build 🚨

The devDependency webpack was updated from 4.39.3 to 4.40.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

webpack is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • ❌ continuous-integration/travis-ci/push: The Travis CI build failed (Details).

Release Notes for v4.40.0

Features

  • adds asset info for emitted assets
    • new methods allow easy emitting/updating of assets compilation.emitAsset/updateAsset (instead of accessing the Object compilation.assets)
    • 3 flags in asset info:
      • immutable: when set an asset can be cache infinitely
      • development: when set an asset is some kind of development tool (i. e. a SourceMap)
      • hotModuleReplacement: when set an asset is generated for an hot update
    • Stats expose info object in assets
    • String version of Stats show flags
Commits

The new version differs by 30 commits.

  • 9c6b367 4.40.0
  • e9e7a85 Merge pull request #9687 from webpack/feature/emit-asset
  • 758269e add emit/updateAsset to Compilation
  • 7f403e2 Merge pull request #9686 from webpack/dependabot/npm_and_yarn/types/node-10.14.18
  • 93943ea chore(deps-dev): bump @types/node from 10.14.17 to 10.14.18
  • f5e1e1e Merge pull request #9684 from webpack/dependabot/npm_and_yarn/typescript-3.6.3
  • ea95059 chore(deps-dev): bump typescript from 3.6.2 to 3.6.3
  • cd804cc Merge pull request #9683 from webpack/deps/jest-again
  • a81cdcd upgrade jest dependencies
  • 8ba7705 Merge pull request #9639 from webpack/dependabot/npm_and_yarn/typescript-3.6.2
  • a736c3e update code for @enum breaking change
  • 320b30b chore(deps-dev): bump typescript from 3.5.3 to 3.6.2
  • 77cd3d0 Merge pull request #9664 from webpack/dependabot/npm_and_yarn/eslint-plugin-jest-22.17.0
  • 3e72f36 chore(deps-dev): bump eslint-plugin-jest from 22.16.0 to 22.17.0
  • b2b5b27 Merge pull request #9655 from webpack/dependabot/npm_and_yarn/webpack-dev-middleware-3.7.1

There are 30 commits in total.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Missing default datasources on page load.

When loading the widget, if the first query selected is one with multiple datasources, only one of those datasources is selected.

When the query gets selected through the dropdown box, all the datasources appear though. But in my use case there is only 1 query so it is actually impossible to select another query... unless you refresh the page weirdly enough. When refreshing the page suddenly "select a query" box is empty (might be another bug), and the query can be selected again (in which case the missing datasources appear).

Improve loading of different configs

Currently, only the default Comunica SPARQL config can be loaded in the widget. We should make it easier for other configs to be loaded instead.

'set default' proxy should apply same protocol as used for hosting the widget

the default proxy value is hardcoded as http://proxy.linkeddatafragments.org/
which leads to "mixed content" errors when trying to use it when the widget was deployed on https server (like e.g. https://query.linkeddatafragments.org/)

by using the document.location.protocol one can have this button automatically switch to a working alternative

this slightly changes the meaning of 'set default' 'set to some adapted default to be actually working in this setting' :)

am working up a PR with this suggestion

Labels on map don't get cleared

After running a SPARQL query that generates a label of this format:
image
I ran a GraphQL query that generates labels of this format:
image

Unfortunately, the labels of a previous query were still showing on the resulting map of the new query
image
image

Improve error reporting

When an error occurs during query execution (error event is called), the error message is just appended to the results box. We should make error messages really clear.

Something similar to this would be ideal:
Screenshot 2022-03-04 at 13 49 16

Display Comunica version

We should somehow display (possible in the footer) what the current loaded Comunica version is. This will be useful for debugging.

Auto-translate between SPARQL and GraphQL

When switching query type tabs, the written query should be translated automatically (when possible).

This should always work for GraphQL -> SPARQL, but not always for SPARQL -> GraphQL.

Docker container build fails

Step 4/8 : RUN cd ${dir} && npm install --unsafe-perm
---> Running in e0c6fb523108

npm WARN notice [SECURITY] jquery has the following vulnerability: 1 high. Go here for more details: https://www.npmjs.com/advisories?search=jquery&version=2.2.4 - Run npm i npm@latest -g to upgrade your npm version, and then npm audit to get more info.
npm ERR! code ETARGET
npm ERR! notarget No matching version found for @comunica/actor-abstract-bindings-hash@^1.9.3
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
npm ERR! notarget
npm ERR! notarget It was specified as a dependency of '@comunica/actor-query-operation-distinct-hash'
npm ERR! notarget

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2019-10-16T13_40_43_625Z-debug.log
Removing intermediate container e0c6fb523108
The command '/bin/sh -c cd ${dir} && npm install --unsafe-perm' returned a non-zero code: 1
Build failed

Show geo-results on a map

Every time we receive results containing WKT geo results, we should show them on a map.
This map should only become visible, as soon as there is at least one WKT string present in the results.

We should show this map before the raw "Query results".

Technology-wise, we can use Leaflet.js, for which its documentation explains how to visualize WKT strings.

Concretely, we should do the following:

  1. Check results and find strings annotated with a WKT datatype (http://www.openlinksw.com/schemas/virtrdf#Geometry or http://www.opengis.net/ont/geosparql#wktLiteral)
  2. Once at least one WKT string is found in the results, display a Leaflet map above the query results (because it's hidden by default)
  3. For each incoming result (they come in in a streaming way), show it live on the map.
  4. As a next step, also allow custom labels to be added to points/shapes on the map. This could be done in a similar way to Yasgui's geo plugin. For example, if the WKT string was present in a variable ?wkt, then we should look for a variable ?wktLabel; and if it exists, use that as a label for displaying this result on the map.
  5. Figure out how to handle this for GraphQL-LD results instead of SPARQL results.

Query examples:

Inspired by https://triply.cc/docs/yasgui#geo

Support different source types

Currently, only TPF hypermedia sources are required. Comunica also supports other types of sources, so support for this should be implemented here as well.

Communica-compile-config

getting this error message during running "yarn install" on my ubuntu 18.04.1 LTS
so, the installation was failed

/bin/sh: 1: comunica-compile-config: not found
error Command failed with exit code 127.

Integrate YASR

Since #3 comunica integrates nicely with YASQE. Is there also a possibility to integrate YASR to display the query results?

Resizing text area breaks vertical layout

When you resize the query and/or context text area, it visually breaks the vertical layout.
This can be prevented by making the text areas only vertically resizable.
image

An in-range update of @comunica/runner is breaking the build 🚨

The dependency @comunica/runner was updated from 1.9.0 to 1.9.2.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

@comunica/runner is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.

Status Details
  • ❌ continuous-integration/travis-ci/push: The Travis CI build failed (Details).

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Add logging

The HTTP requests (and requests to other source types) should be logged.

An in-range update of webpack is breaking the build 🚨

The devDependency webpack was updated from 4.36.0 to 4.36.1.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

webpack is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • ❌ continuous-integration/travis-ci/push: The Travis CI build could not complete due to an error (Details).

Release Notes for v4.36.1

Bugfixes

  • fix regression in 4.36.0 when using happypack
Commits

The new version differs by 3 commits.

  • 92caa5d 4.36.1
  • 4cac066 Merge pull request #9425 from webpack/bugfix/no-resolve-options
  • 1f966eb fix #9424

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Simplify building from different configs

If we now want to build a custom widget, we have to fork the repo, and make changes in the repo directly.

It would be easier if we had some kind of CLI tool in which we can pass a config and settings file, which directly outputs a static website.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.