
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@atomgraph/sparql-builder
Advanced tools
SPARQL query builder written in TypeScript. Can be used from both TypeScript and JavaScript, although type-safety is lost in JavaScript.
SPARQL query builder written in TypeScript. Can be used from both TypeScript and JavaScript, although type-safety is lost in JavaScript.
It exposes the following classes:
QueryBuilder - builder base class
SelectBuilder - SELECT query builderDescribeBuilder - DESCRIBE query builderThe build-dist.sh script does the following:
tscnpm testwebpack
window target, output in dist/window)commonjs2 target, output in dist/node)The builder is published as sparql-builder package on npm. Import it into your package.json:
"dependencies": {
"sparql-builder": "^1.0.6"
}
Code in test.ts:
import { SelectBuilder } from 'sparql-builder';
let query = "SELECT ?s { ?s ?p ?o }";
let builder = SelectBuilder.fromString(query).
limit(42).
offset(66).
orderBy(SelectBuilder.ordering(SelectBuilder.var("s"), true)).
orderBy(SelectBuilder.ordering(SelectBuilder.var("p")));
console.log(builder.toString());
Output of tsc && node test.js:
SELECT ?s WHERE { ?s ?p ?o. }
ORDER BY DESC (?s) (?p)
OFFSET 66
LIMIT 42
FAQs
SPARQL query builder written in TypeScript. Can be used from both TypeScript and JavaScript, although type-safety is lost in JavaScript.
We found that @atomgraph/sparql-builder demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.