hive-thought-rewriter

Rewriting different RSP-QL queries (thoughts) by combining or decomposing in a Hive.

https://github.com/solidlabresearch/hive-thought-rewriter

Science Score: 44.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (7.1%) to scientific vocabulary
Last synced: 8 months ago · JSON representation ·

Repository

Rewriting different RSP-QL queries (thoughts) by combining or decomposing in a Hive.

Basic Info
  • Host: GitHub
  • Owner: SolidLabResearch
  • License: other
  • Language: TypeScript
  • Default Branch: master
  • Size: 204 KB
Statistics
  • Stars: 0
  • Watchers: 2
  • Forks: 0
  • Open Issues: 1
  • Releases: 2
Created 12 months ago · Last pushed 11 months ago
Metadata Files
Readme Citation

README.md

Hive Thought Rewriter

The library rewrites different RSP-QL queries to either combine or decompose.

Usage

Installation

shell npm install hive-thought-rewriter

Rewriting Queries by Combining

Different queries in RSP-QL [1] query format can be specified and combined together to create a single RSP-QL query.

```ts import {QueryCombiner} from "hive-thought-rewriter";

const combiner = new QueryCombiner();

combiner.addQuery(query1); combiner.addQuery(query2);

const combined = combiner.combine(); /** * This will return the RSPQL query and it's different components * in a object with type Parsed Query * * To get the query in string format */

const combinedquerystring = combiner.ParsedToString(combined); ```

Rewriting Queries by Decomposing

This is currently not possible and is a work in progress.

Rewriting the Queries by changing the Window Parameters

```ts

import {RewriteChunkQuery} from "hive-thought-rewriter";

// Define the new window parameters for the query i.e slide is 10 and width is 20

const chunkRewriter = new RewriteChunkQuery(10, 20);

const originalQuery = PREFIX ex: <http://example.org/> REGISTER RStream <output> AS SELECT (AVG(?age) AS ?averageAge) FROM NAMED WINDOW ex:w ON STREAM ex:stream [RANGE 10 STEP 5] WHERE { WINDOW ex:w { ?person a ex:Employee. ?person ex:hasAge ?age. } };

const rewrittenQuery = chunkRewriter.rewrite(originalQuery); /** * This will return the RSPQL query with the new window parameters as a string */ ```

License

This code is copyrighted by Ghent University - imec and released under the MIT Licence

Footnotes

[1]: RSP-QL Semantics: A Unifying Query Model to Explain Heterogeneity of RDF Stream Processing Systems

Owner

  • Name: SolidLab
  • Login: SolidLabResearch
  • Kind: organization
  • Location: Belgium

Citation (CITATION.cff)

cff-version: 1.1.0
message: "If you use this software, please cite it as below."
title: Hive Thought Rewriter
version: 0.2.0
doi: 10.5281/zenodo.15575011
date-released: 2025-05-29
authors:
  - family-names: Bisen
    given-names: Kushagra Singh
    nicknames: Kush 
    affiliation: UGent - imec, Ghent, Belgium
    orcid : https://orcid.org/0000-0003-0950-6043
repository-code: https://github.com/SolidLabResearch/hive-thought-rewriter

GitHub Events

Total
  • Create event: 2
  • Release event: 1
  • Issues event: 2
  • Member event: 1
  • Push event: 5
Last Year
  • Create event: 2
  • Release event: 1
  • Issues event: 2
  • Member event: 1
  • Push event: 5

Committers

Last synced: 10 months ago

All Time
  • Total Commits: 11
  • Total Committers: 1
  • Avg Commits per committer: 11.0
  • Development Distribution Score (DDS): 0.0
Past Year
  • Commits: 11
  • Committers: 1
  • Avg Commits per committer: 11.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Kushagra Singh Bisen k****n@p****e 11
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 10 months ago

All Time
  • Total issues: 1
  • Total pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 1
  • Total pull request authors: 0
  • Average comments per issue: 0.0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 1
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 1
  • Pull request authors: 0
  • Average comments per issue: 0.0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • argahsuknesib (2)
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels

Dependencies

package-lock.json npm
  • 307 dependencies
package.json npm
  • @types/jest ^29.2.4 development
  • jest ^29.3.1 development
  • supertest ^6.3.3 development
  • ts-jest ^29.0.3 development
  • typescript ^4.9.4 development
  • sparqljs ^3.7.3