In order to be able to publish linked data to an online data catalog, the following steps need to be followed:
Navigate into the directory containing your code and run npm install
. This will download and install all dependencies for you to your local computer.
NOTE This step can be omitted if you already created or provided your token during setup of your project Your TriplyDB API Token is your access key to TriplyDB. You can create one in TriplyDB using this instructions or you can type (and follow the onscreen instructions):
npx tools create-token
Once you have your token, open the file .env
and write the following line:
TRIPLYDB_TOKEN=<your-token-here>
Your Script is written in TypeScript, and will be executed in JavaScript. The following command transpiles your TypeScript code into the corresponding JavaScript code:
npm run build
Some developers do not want to repeatedly write the npm run build
command. By running the following command, transpilation is performed automatically whenever one or more TypeScript files are changed:
npm run dev
The following command runs your scripts:
node lib/getMuziekschattenData.js &&
node lib/getMuziekwebData.js &&
node lib/getGTAAData.js &&
node lib/getKBData &&
node lib/runPipelines.js