
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
dcat-merger
Advanced tools
This Node.js package allows to merge the DCAT information of several sources into one single Turtle file. Below you can find a short summary of what happens under the hood.
npm install . -g
Create a config.json
with the sources you want to merge. An example config.json
can be found in the repo. For every source you need to provide the name and the url or file. You want to choose the option 'file' if you want to read a local Turtle file. Here, you can also set the DBpedia spotlight instances you want to use for NER. By default the use of NER is disabled, however, you can enable it by adding "useNER" : true
to your config.json
. In the folder data
you can find some example Turtle files.
dcat-merger [OPTION]...
.Output control
-v, --verbose
: verbose-c, --config
: config file, if not specified the program will look for 'config.json' in the current directory.-o, --output
: output file, if no output file is specified output is redirect to stdout
.-t, --theme
: config file for the themeMatcher, if not specified the default one will be used.-s, --spatial
: config file for the spatialDetector, if not specified the default one will be used.-h
, --help
: show help--version
: show version informationYou can also use the module via
var dcatMerger = require('dcat-merger');
//here you can choose your own custom 'helpers'
//or the ones that came with this package, those can be found
//in the 'lib' folder
//for this examples we use the ones from this package
var spatialDetector = require('../lib/spatialDetector.js');
var themeMatcher = require('../lib/themeMatcher.js');
//you also need to call some methods before they are ready for use
//ttl is a string containing all the triples in Turtle format,
//example in 'resources' folder
themeMatcher.setMappingTriples(ttl);
//spatialFile is a json file, example in 'resources' folder
spatialDetector.setConfig(require(spatialFile));
//you also need to set the config, example in config.json
dcatMerger.setConfig(getConfigFromFile());
dcatMerger.setThemeMatcher(themeMatcher);
dcatMerger.setSpatialDetector(spatialDetector);
dcatMerger.merge().then(function(triples){
console.log(triples);
});
The variable triples
is an array containing objects with the following elements: subject, predicate, object and graph (= one triple).
resources/spatialConfig.js
(if you run it in a Node.js Application).MIT licensed
Authors:
FAQs
Merging several DCAT inputs into a single DCAT output.
The npm package dcat-merger receives a total of 1 weekly downloads. As such, dcat-merger popularity was classified as not popular.
We found that dcat-merger 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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.