
Security News
Node.js TSC Votes to Stop Distributing Corepack
Corepack will be phased out from future Node.js releases following a TSC vote.
A convenience constructor for RDF quads based on string-based terms, as done by RDF-String.
If the value in the object position is not a string, then it will be automatically converted to the proper RDF datatype using RDF Literal.
This produces quads according to the RDFJS specification.
const quad = require('rdf-quad');
// Object is an IRI
quad('http://example.org/subject', 'http://example.org/predicate', 'http://example.org/object');
// Object is a variable
quad('http://example.org/subject', 'http://example.org/predicate', '?variable');
// Object is a string literal
quad('http://example.org/subject', 'http://example.org/predicate', '"myString"', 'http://example.org/someGraph');
// Object is an integer
quad('http://example.org/subject', 'http://example.org/predicate', 123);
// Object is a boolean
quad('http://example.org/subject', 'http://example.org/predicate', true);
// Subject is a nested quad
quad('<<ex:s ex:p ex:o>>', 'http://example.org/predicate', 'http://example.org/object');
This software is written by Ruben Taelman.
This code is released under the MIT license.
v2.0.0 - 2025-01-08
<a name="v1.5.0"></a>
FAQs
A convenience constructor for RDF quads
The npm package rdf-quad receives a total of 5,562 weekly downloads. As such, rdf-quad popularity was classified as popular.
We found that rdf-quad demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Corepack will be phased out from future Node.js releases following a TSC vote.
Research
Security News
Research uncovers Black Basta's plans to exploit package registries for ransomware delivery alongside evidence of similar attacks already targeting open source ecosystems.
Security News
Oxlint's beta release introduces 500+ built-in linting rules while delivering twice the speed of previous versions, with future support planned for custom plugins and improved IDE integration.