rdflib
Version:
an RDF library for node.js. Suitable for client and server side.
168 lines (167 loc) • 7.81 kB
JSON
{
"name": "rdflib",
"description": "an RDF library for node.js. Suitable for client and server side.",
"version": "2.4.0",
"private": false,
"browserslist": [
"> 0.5%"
],
"author": {
"name": "Tim BL",
"email": "timbl@w3.org"
},
"contributors": [
{
"name": "Ruben Verborgh",
"url": "https://github.com/RubenVerborgh"
},
{
"name": "Dmitri Zagidulin",
"url": "https://github.com/dmitrizagidulin/"
},
{
"name": "Daniel Friedman",
"url": "https://github.com/dan-f/"
},
{
"name": "Cénotélie",
"url": "https://github.com/cenotelie/"
},
{
"name": "Joep Meindertsma",
"url": "https://github.com/joepio/"
},
{
"name": "Thom van Kalkeren",
"url": "https://github.com/fletcher91/"
}
],
"license": "MIT",
"repository": {
"type": "git",
"url": "git://github.com/linkeddata/rdflib.js.git"
},
"homepage": "http://github.com/linkeddata/rdflib.js",
"bugs": "http://github.com/linkeddata/rdflib.js/issues",
"dependencies": {
"@babel/runtime": "^7.29.2",
"@frogcat/ttl2jsonld": "^0.0.10",
"@rdfjs/types": "^2.0.1",
"@xmldom/xmldom": "^0.9.10",
"cross-fetch": "^4.1.0",
"jsonld": "^9.0.0",
"n3": "^2.0.3",
"package-lock.json": "^1.0.0",
"package.json": "^2.0.1",
"solid-namespace": "^0.5.4"
},
"devDependencies": {
"@babel/cli": "^7.28.6",
"@babel/core": "^7.29.0",
"@babel/plugin-proposal-class-properties": "^7.18.6",
"@babel/plugin-transform-runtime": "^7.29.0",
"@babel/preset-env": "^7.29.5",
"@babel/preset-typescript": "^7.28.5",
"@babel/register": "^7.29.3",
"@types/chai": "^5.2.3",
"@types/dirty-chai": "^2.0.5",
"@types/express": "^5.0.6",
"@types/jsonld": "^1.5.15",
"@types/mocha": "^10.0.10",
"@types/node": "^25.9.1",
"@types/sinon-chai": "^4.0.0",
"babel-loader": "^10.1.1",
"chai": "^6.2.2",
"colors": "^1.4.0",
"diff": "^9.0.0",
"eslint": "^10.4.0",
"globals": "^17.6.0",
"locate-path": "^8.0.0",
"mocha": "^11.7.6",
"nock": "^14.0.15",
"node-fetch": "^3.3.2",
"node-polyfill-webpack-plugin": "^4.1.0",
"rimraf": "^6.1.3",
"sinon": "^22.0.0",
"sinon-chai": "^4.0.1",
"source-map-loader": "^5.0.0",
"ts-node": "^10.9.2",
"typedoc": "^0.28.19",
"typescript": "^5.9.3",
"webpack": "^5.107.1",
"webpack-cli": "^7.0.2",
"webpack-dev-server": "^5.2.4"
},
"scripts": {
"build": "babel src --extensions \".ts,.js\" -d lib",
"build:esm": "babel src --extensions \".ts,.js\" --env-name esm -d esm",
"build:browser": "webpack --progress",
"build:types": "tsc --emitDeclarationOnly -d --moduleResolution node --declarationDir lib",
"build:all": "npm run build && npm run build:types && npm run build:browser && npm run build:esm",
"doc": "typedoc --out ./doc ./src/index.ts --excludePrivate --excludeInternal --tsconfig ./tsconfig.json",
"lint": "eslint src tests",
"lint:fix": "eslint src tests --fix",
"ignore:prepublishOnly": "npm ci && npm run build:all && npm run doc && npm run test",
"postversion": "case \"$npm_package_version\" in *-*) git push ;; *) git push --follow-tags ;; esac",
"start": "webpack serve --port 4800",
"test": "npm run test:unit && npm run test:serialize && npm run test:types",
"test:clean": "rimraf tests/serialize/,*",
"test:serialize": "npm run build && npm run test:serialize:all && npm run test:clean",
"test:serialize:all": "npm run test:serialize:1 && npm run test:serialize:2 && npm run test:serialize:3 && npm run test:serialize:4 && npm run test:serialize:5 && npm run test:serialize:6 && npm run test:serialize:7 && npm run test:serialize:8 && npm run test:serialize:10 && npm run test:serialize:11 && npm run test:serialize:12 && npm run test:serialize:13 && npm run test:serialize:14 && npm run test:serialize:15 && npm run test:serialize:16 && npm run test:serialize:17 && npm run test:serialize:18",
"test:serialize:1": "cd ./tests/serialize && node ./data.js -in=t1.ttl -format=application/rdf+xml -out=,t1.xml && node diff ,t1.xml t1-ref.xml",
"test:serialize:2": "cd ./tests/serialize && node ./data.js -in=t2.ttl -format=application/rdf+xml -out=,t2.xml && node diff ,t2.xml t2-ref.xml",
"test:serialize:3": "cd ./tests/serialize && node ./data.js -in=t3.ttl -format=application/rdf+xml -out=,t3.xml && node diff ,t3.xml t3-ref.xml",
"test:serialize:4": "cd ./tests/serialize && node ./data.js -in=t3.ttl -out=,t4.ttl && node diff ,t4.ttl t4-ref.ttl",
"test:serialize:5": "cd ./tests/serialize && node ./data.js -in=t5.n3 -format=text/turtle -out=,t5.ttl && node diff ,t5.ttl t5-ref.ttl",
"test:serialize:6": "cd ./tests/serialize && node ./data.js -in=t5.n3 -format=text/n3 -out=,t6.n3 && node diff ,t6.n3 t6-ref.n3",
"test:serialize:7": "cd ./tests/serialize && node ./data.js -in=t7.n3 -format=application/n-triples -out=,t7.nt && node diff ,t7.nt t7-ref.nt",
"test:serialize:8": "cd ./tests/serialize && node ./data.js -in=t5.n3 -format=application/n-quads -out=,t8.nq && node diff ,t8.nq t8-ref.nq",
"test:serialize:10": "cd ./tests/serialize && node ./data.js -in=details.ttl -format=text/turtle -out=,t10.ttl && node diff ,t10.ttl t10-ref.ttl",
"test:serialize:11": "cd ./tests/serialize && node ./data.js -in=structures.n3 -format=application/rdf+xml -out=,structures.xml && node diff ,structures.xml t11-ref.xml",
"test:serialize:12": "cd ./tests/serialize && node ./data.js -in=structures.n3 -format=text/turtle -out=,structures.ttl && node diff ,structures.ttl t12-ref.ttl",
"test:serialize:13": "cd ./tests/serialize && node ./data.js -in=structures.n3 -format=application/n-triples -out=,structures.nt && node ./data.js -format=application/n-triples -in=,structures.nt -format=text/turtle -out=,structures.nt.ttl && node diff ,structures.nt.ttl t13-ref.ttl",
"test:serialize:14": "cd ./tests/serialize && node ./data.js -in=t14.html -format=text/turtle -out=,t14.ttl && node diff ,t14.ttl t14-ref.ttl",
"test:serialize:15": "cd ./tests/serialize && node ./data.js -in=t15.html -format=text/turtle -out=,t15.ttl && node diff ,t15.ttl t15-ref.ttl",
"test:serialize:16": "cd ./tests/serialize && node ./data.js -in=t1.ttl -format=application/ld+json -out=,t1.jsonld && node diff ,t1.jsonld t16-ref.jsonld",
"test:serialize:17": "cd ./tests/serialize && node ./data.js -in=t17.ttl -format=application/rdf+xml -out=,t17.xml && node diff ,t17.xml t17-ref.xml",
"test:serialize:18": "cd ./tests/serialize && node ./data.js -in=t18.ttl -format=application/rdf+xml -out=,t18.xml && node diff ,t18.xml t18-ref.xml",
"test:types": "tsc --noEmit --skipLibCheck --target es2019 --moduleResolution node tests/types/*.ts",
"test:unit": "mocha --growl --require ./tests/babel-register.js tests/unit/**-test.*",
"test:unit:egp": "mocha --require ./tests/babel-register.js tests/unit/fetcher-egp-test.js",
"test:unit:dev": "mocha --watch --growl --require ./tests/babel-register.js tests/unit/**-test.js",
"watch": "babel src --extensions \".ts,.js\" --env-name esm -d esm --watch & babel src --extensions \".ts,.js\" -d lib --watch"
},
"files": [
".babelrc",
"src",
"lib",
"dist",
"esm"
],
"main": "lib/index.js",
"module": "esm/index.js",
"types": "lib/index.d.ts",
"sideEffects": false,
"keywords": [
"linkeddata",
"linked data",
"rdf",
"rdfa",
"turtle",
"semantic",
"web",
"read-write web"
],
"standard": {
"globals": [
"ActiveXObject",
"Components",
"DOMParser",
"netscape",
"$rdf",
"Services",
"tabulator",
"WebSocket"
]
}
}