Skip to content

Commit

Permalink
Stash changes
Browse files Browse the repository at this point in the history
  • Loading branch information
surilindur committed Apr 12, 2024
1 parent 41fd78e commit 29dd42f
Show file tree
Hide file tree
Showing 39 changed files with 4,282 additions and 6,124 deletions.
32 changes: 32 additions & 0 deletions .comunica.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
60 changes: 0 additions & 60 deletions .eslintrc.json

This file was deleted.

3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.yarn
.husky/_
node_modules
components
testing
Expand All @@ -7,4 +8,6 @@ testing
*.js.map
*.d.ts

!eslint.config.js

componentsjs-error-state.json
2 changes: 2 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
yarn run lint
yarn run build
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<p align="center">
<a href="https://comunica.dev/">
<img alt="Comunica" src="https://comunica.dev/img/comunica_red.svg" width="200">
<img alt="Comunica" src=".comunica.svg" width="120">
</a>
</p>

Expand All @@ -11,7 +11,7 @@
<p align="center">
<a href="https://github.com/surilindur/comunica-components/actions/workflows/ci.yml"><img alt="CI" src=https://github.com/surilindur/comunica-components/actions/workflows/ci.yml/badge.svg?branch=main"></a>
<a href="https://www.typescriptlang.org/"><img alt="TypeScript" src="https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg"></a>
<a href="https://opensource.org/licenses/MIT"><img alt="License: MIT" src="https://img.shields.io/badge/License-MIT-yellow.svg"></a>
<a href="https://opensource.org/licenses/MIT"><img alt="License: MIT" src="https://img.shields.io/badge/License-MIT-%23A31F34.svg"></a>
</p>

This is a monorepository that contains various work-in-progress components for [Comunica](https://github.com/comunica/comunica) and is not intended for actual use. If you wish to learn more about Comunica or actually use it, please refer to [its website](https://comunica.dev/). The following components reside here.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{
"@context": [
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/config-query-sparql-components/^0.0.0/components/context.jsonld",
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/config-query-sparql-link-traversal/^0.0.0/components/context.jsonld"
],
"import": [
"ccqslt:config/config-solid-base-adaptive.json",
"ccqsc:config/config-solid-base-adaptive.json",
"ccqslt:config/extract-links/actors/predicates-common.json",
"ccqslt:config/extract-links/actors/predicates-ldp.json",
"ccqslt:config/extract-links/actors/predicates-solidstorage.json",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"@context": [
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/config-query-sparql-components/^0.0.0/components/context.jsonld"
],
"import": [
"ccqsc:config/config-base-adaptive.json",
"ccqsc:config/context-preprocess/actors.json",
"ccqsc:config/rdf-metadata-extract/bloom.json",
"ccqsc:config/rdf-metadata-extract/void.json",
"ccqsc:config/rdf-metadata-accumulate/actors.json",
"ccqsc:config/rdf-join/actors.json",
"ccqsc:config/rdf-parse/mediators.json",
"ccqsc:config/rdf-parse/actors.json",
"ccqsc:config/rdf-resolve-hypermedia-links-queue/actors.json"
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,6 @@
"import": [
"ccqsc:config/config-base-adaptive.json",
"ccqsc:config/context-preprocess/actors.json",
"ccqsc:config/rdf-metadata-extract/bloom.json",
"ccqsc:config/rdf-metadata-extract/void.json",
"ccqsc:config/rdf-metadata-accumulate/actors.json",
"ccqsc:config/rdf-join/actors.json",
"ccqsc:config/rdf-parse/mediators.json",
"ccqsc:config/rdf-parse/actors.json",
"ccqsc:config/rdf-resolve-hypermedia-links-queue/actors.json"
"ccqsc:config/rdf-metadata-extract/void.json"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
{
"@context": [
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/config-query-sparql/^3.0.0/components/context.jsonld",
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/config-query-sparql-link-traversal/^0.0.0/components/context.jsonld",
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/config-query-sparql-solid/^3.0.0/components/context.jsonld"
],
"import": [
"ccqs:config/context-preprocess/actors.json",
"ccqslt:config/context-preprocess/actors.json",
"ccqs:config/context-preprocess/mediators.json",
"ccqslt:config/extract-links/mediators.json",
"ccqs:config/hash-bindings/actors.json",
"ccqs:config/hash-bindings/mediators.json",
"ccqss:config/http/actors.json",
"ccqs:config/http/mediators.json",
"ccqs:config/http-invalidate/actors.json",
"ccqs:config/http-invalidate/mediators.json",
"ccqslt:config/init/actors.json",
"ccqs:config/merge-bindings-context/actors.json",
"ccqs:config/merge-bindings-context/mediators.json",
"ccqslt:config/optimize-query-operation/actors.json",
"ccqs:config/optimize-query-operation/mediators.json",
"ccqs:config/query-operation/actors.json",
"ccqs:config/query-operation/mediators.json",
"ccqs:config/query-parse/actors.json",
"ccqs:config/query-parse/mediators.json",
"ccqs:config/query-process/actors.json",
"ccqs:config/query-process/mediators.json",
"ccqs:config/query-result-serialize/actors.json",
"ccqs:config/query-result-serialize/mediators.json",
"ccqslt:config/query-source-identify/actors.json",
"ccqs:config/query-source-identify/mediators.json",
"ccqs:config/query-source-identify-hypermedia/actors.json",
"ccqs:config/query-source-identify-hypermedia/mediators.json",
"ccqs:config/dereference/actors.json",
"ccqs:config/dereference/mediators.json",
"ccqs:config/dereference-rdf/actors.json",
"ccqs:config/dereference-rdf/mediators.json",
"ccqslt:config/rdf-join/actors-adaptive.json",
"ccqs:config/rdf-join/mediators.json",
"ccqslt:config/rdf-join-entries-sort/actors-adaptive.json",
"ccqs:config/rdf-join-entries-sort/mediators.json",
"ccqs:config/rdf-join-selectivity/actors.json",
"ccqs:config/rdf-join-selectivity/mediators.json",
"ccqs:config/rdf-metadata/actors.json",
"ccqs:config/rdf-metadata/mediators.json",
"ccqs:config/rdf-metadata-accumulate/actors.json",
"ccqs:config/rdf-metadata-accumulate/mediators.json",
"ccqs:config/rdf-metadata-extract/actors.json",
"ccqs:config/rdf-metadata-extract/mediators.json",
"ccqslt:config/rdf-metadata-extract/actors/traverse.json",
"ccqs:config/rdf-parse/actors.json",
"ccqs:config/rdf-parse/mediators.json",
"ccqs:config/rdf-parse-html/actors.json",
"ccqs:config/rdf-resolve-hypermedia-links/actors.json",
"ccqslt:config/rdf-resolve-hypermedia-links/actors/traverse.json",
"ccqs:config/rdf-resolve-hypermedia-links/mediators.json",
"ccqs:config/rdf-resolve-hypermedia-links-queue/actors.json",
"ccqs:config/rdf-resolve-hypermedia-links-queue/mediators.json",
"ccqs:config/rdf-serialize/actors.json",
"ccqs:config/rdf-serialize/mediators.json",
"ccqs:config/rdf-update-hypermedia/actors.json",
"ccqs:config/rdf-update-hypermedia/mediators.json",
"ccqs:config/rdf-update-quads/actors.json",
"ccqs:config/rdf-update-quads/mediators.json"
]
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"@context": [
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/runner/^2.0.0/components/context.jsonld",
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/runner/^3.0.0/components/context.jsonld",
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-context-preprocess-link-filter/^0.0.0/components/context.jsonld"
],
"@id": "urn:comunica:default:Runner",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"@context": [
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/runner/^2.0.0/components/context.jsonld",
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/runner/^3.0.0/components/context.jsonld",
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/config-query-sparql-components/^0.0.0/components/context.jsonld",
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-rdf-metadata-accumulate-void-description/^0.0.0/components/context.jsonld"
],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"@context": [
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/runner/^2.0.0/components/context.jsonld",
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/runner/^3.0.0/components/context.jsonld",
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/config-query-sparql-components/^0.0.0/components/context.jsonld",
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-rdf-metadata-accumulate-void-description/^0.0.0/components/context.jsonld"
],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"@context": [
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/runner/^2.0.0/components/context.jsonld",
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/runner/^3.0.0/components/context.jsonld",
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-rdf-metadata-extract-link-filter/^0.0.0/components/context.jsonld"
],
"@id": "urn:comunica:default:Runner",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"@context": [
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/runner/^2.0.0/components/context.jsonld",
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/runner/^3.0.0/components/context.jsonld",
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-rdf-metadata-extract-void-description/^0.0.0/components/context.jsonld"
],
"@id": "urn:comunica:default:Runner",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"@context": [
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/runner/^2.0.0/components/context.jsonld",
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/runner/^3.0.0/components/context.jsonld",
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-rdf-parse-link-filter-bloom/^0.0.0/components/context.jsonld"
],
"@id": "urn:comunica:default:Runner",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"@context": [
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-rdf-parse-link-filter/^0.0.0/components/context.jsonld",
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/mediator-race/^2.0.0/components/context.jsonld"
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/mediator-race/^3.0.0/components/context.jsonld"
],
"@graph": [
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"@context": [
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/runner/^2.0.0/components/context.jsonld",
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/runner/^3.0.0/components/context.jsonld",
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-rdf-resolve-hypermedia-links-queue-wrapper-link-filter/^0.0.0/components/context.jsonld"
],
"@id": "urn:comunica:default:Runner",
Expand Down
2 changes: 1 addition & 1 deletion engines/config-query-sparql-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
"private": true,
"lsd:module": true,
"dependencies": {
"@comunica/config-query-sparql-link-traversal": "^0.2.0"
"@comunica/config-query-sparql-link-traversal": "^0.3.0"
}
}
1 change: 1 addition & 0 deletions engines/query-sparql-components/bin/http.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env node

// eslint-disable-next-line import/no-nodejs-modules
import { join } from 'node:path';
import { HttpServiceSparqlEndpoint } from '@comunica/actor-init-query';

Expand Down
1 change: 1 addition & 0 deletions engines/query-sparql-components/bin/query-dynamic.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env node

// eslint-disable-next-line import/no-nodejs-modules
import { join } from 'node:path';
import { runArgsInProcess } from '@comunica/runner-cli';

Expand Down
3 changes: 2 additions & 1 deletion engines/query-sparql-components/bin/query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@

import { runArgsInProcessStatic } from '@comunica/runner-cli';

runArgsInProcessStatic(require('../engine-default.js'));
// eslint-disable-next-line ts/no-require-imports,ts/no-var-requires,import/extensions
runArgsInProcessStatic(require('../engine-default.js')());
13 changes: 7 additions & 6 deletions engines/query-sparql-components/lib/QueryEngine.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
import { QueryEngineBase } from '@comunica/actor-init-query';
import type { ActorInitQueryBase } from '@comunica/actor-init-query';
import type { IQueryContextCommon, QueryAlgebraContext, QueryStringContext, SourceType } from '@comunica/types';
import type { IQueryContextCommon } from '@comunica/types';

// eslint-disable-next-line ts/no-require-imports,ts/no-var-requires,import/extensions, ts/no-unsafe-assignment
const engineDefault = require('../engine-default.js');

/**
* A Comunica SPARQL query engine.
*/
export class QueryEngine extends QueryEngineBase<
IQueryContextCommon,
Omit<QueryStringContext, 'sources'> & { sources?: SourceType[] },
Omit<QueryAlgebraContext, 'sources'> & { sources?: SourceType[] }> {
public constructor(engine: ActorInitQueryBase = engineDefault) {
// eslint-disable-next-line ts/naming-convention
export class QueryEngine<QueryContext extends IQueryContextCommon = IQueryContextCommon>
extends QueryEngineBase<QueryContext> {
// eslint-disable-next-line ts/no-unsafe-assignment
public constructor(engine: ActorInitQueryBase = engineDefault()) {
super(engine);
}
}
1 change: 1 addition & 0 deletions engines/query-sparql-components/lib/QueryEngineFactory.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable node/no-path-concat */
import { QueryEngineFactoryBase } from '@comunica/actor-init-query';
import { QueryEngine } from './QueryEngine';

Expand Down
2 changes: 0 additions & 2 deletions engines/query-sparql-components/lib/index-browser.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
/* eslint-disable unicorn/filename-case */
/* eslint-enable unicorn/filename-case */
export * from './QueryEngine';
7 changes: 4 additions & 3 deletions engines/query-sparql-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
},
"dependencies": {
"@comunica/actor-context-preprocess-link-filter": "^0.0.0",
"@comunica/actor-init-query": "^2.0.0",
"@comunica/actor-init-query": "^3.0.0",
"@comunica/actor-rdf-join-inner-multi-adaptive-heuristics": "^0.0.0",
"@comunica/actor-rdf-metadata-accumulate-void-description": "^0.0.0",
"@comunica/actor-rdf-metadata-extract-link-filter": "^0.0.0",
Expand All @@ -28,7 +28,8 @@
"@comunica/actor-rdf-resolve-hypermedia-links-queue-wrapper-link-filter": "^0.0.0",
"@comunica/bus-rdf-parse-link-filter": "^0.0.0",
"@comunica/config-query-sparql-components": "^0.0.0",
"@comunica/query-sparql-link-traversal-solid": "^0.2.0",
"@comunica/runner-cli": "^2.0.0"
"@comunica/query-sparql-link-traversal-solid": "^0.3.0",
"@comunica/runner": "^3.0.0",
"@comunica/runner-cli": "^3.0.0"
}
}
Loading

0 comments on commit 29dd42f

Please sign in to comment.