treecg / basic-ldes-server Goto Github PK
View Code? Open in Web Editor NEWDeprecated. Use the LDES-Solid-Server instead
License: MIT License
Deprecated. Use the LDES-Solid-Server instead
License: MIT License
Test if JSON serialization is faster compared to N-triple serialization when persisting pages to the database.
I would love that the root of the server with multiple Sources has an overview of all sources available, listed with DCAT-AP similar to these examples:
(read it as RDF triples, not as JSON)
Find out if it's possible to add prefixes in a Page, that can be used with the serializer.
Example: @prefix sosa: <http://www.w3.org/ns/sosa/> .
pieter@pieter-Latitude-7400:~/Projects$ git clone [email protected]:TREEcg/Basic-LDES-Server.git bls
Cloning into 'bls'...
remote: Enumerating objects: 578, done.
remote: Counting objects: 100% (578/578), done.
remote: Compressing objects: 100% (293/293), done.
remote: Total 578 (delta 328), reused 483 (delta 247), pack-reused 0
Receiving objects: 100% (578/578), 78.61 KiB | 856.00 KiB/s, done.
Resolving deltas: 100% (328/328), done.
pieter@pieter-Latitude-7400:~/Projects$ cd bls
pieter@pieter-Latitude-7400:~/Projects/bls$ yarn install
yarn install v1.17.3
info No lockfile found.
[1/4] Resolving packages...
warning @dexagod/rdf-retrieval > rdf-ext > @rdfjs/data-model > @types/[email protected]: This is a stub types definition. rdf-js provides its own type definitions, so you do not need this installed.
warning sqlite3 > [email protected]: Please upgrade to @mapbox/node-pre-gyp: the non-scoped node-pre-gyp package is deprecated and only the @mapbox scoped package will recieve updates in the future
warning sqlite3 > node-gyp > [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
warning sqlite3 > node-gyp > request > [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
warning sqlite3 > node-gyp > [email protected]: This version of tar is no longer supported, and will not receive security updates. Please upgrade asap.
warning sqlite3 > node-gyp > request > [email protected]: this library is no longer supported
[2/4] Fetching packages...
info [email protected]: The platform "linux" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning "@dexagod/rdf-retrieval > rdf-dereference > @comunica/[email protected]" has unmet peer dependency "@comunica/context-entries@^1.0.0".
warning "@dexagod/rdf-retrieval > rdf-serialize > @comunica/[email protected]" has unmet peer dependency "@comunica/actor-abstract-mediatyped@^1.0.0".
[4/4] Building fresh packages...
success Saved lockfile.
Done in 25.47s.
pieter@pieter-Latitude-7400:~/Projects/bls$ yarn run dev
yarn run v1.17.3
$ nodemon --config nodemon.json --exec yarn start
[nodemon] 2.0.12
[nodemon] to restart at any time, enter `rs`
[nodemon] watching path(s): **/*
[nodemon] watching extensions: js,json,ts
[nodemon] starting `yarn start`
$ yarn run build && node ./bin/server.js
$ yarn run clean && tsc
$ rm -rf dist
Boilerplate/sources/boilerplateSource.ts:1:30 - error TS2307: Cannot find module '@treecg/basic-ldes-server' or its corresponding type declarations.
1 import { Source, Page } from '@treecg/basic-ldes-server';
~~~~~~~~~~~~~~~~~~~~~~~~~~~
Examples/sources/mySource-import.ts:1:28 - error TS2307: Cannot find module '@treecg/basic-ldes-server' or its corresponding type declarations.
1 import {Source, Page} from '@treecg/basic-ldes-server';
~~~~~~~~~~~~~~~~~~~~~~~~~~~
Examples/sources/mySource.ts:1:28 - error TS2307: Cannot find module '@treecg/basic-ldes-server' or its corresponding type declarations.
1 import {Source, Page} from '@treecg/basic-ldes-server';
~~~~~~~~~~~~~~~~~~~~~~~~~~~
Examples/sources/telraamSource.ts:1:28 - error TS2307: Cannot find module '@treecg/basic-ldes-server' or its corresponding type declarations.
1 import {Source, Page} from '@treecg/basic-ldes-server';
~~~~~~~~~~~~~~~~~~~~~~~~~~~
Found 4 errors.
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
[nodemon] process failed, unhandled exit code (2)
[nodemon]
[nodemon] Either the command has a syntax error,
[nodemon] or it is exiting with reserved code 2.
[nodemon]
[nodemon] To keep nodemon running even after a code 2,
[nodemon] add this to the end of your command: || exit 1
[nodemon]
[nodemon] Read more here: https://git.io/fNOAG
[nodemon]
[nodemon] nodemon will stop now so that you can fix the command.
[nodemon]
[nodemon] Error
at Bus.<anonymous> (/home/pieter/Projects/bls/node_modules/nodemon/lib/nodemon.js:158:25)
at Bus.emit (node:events:406:35)
at ChildProcess.<anonymous> (/home/pieter/Projects/bls/node_modules/nodemon/lib/monitor/run.js:206:11)
at ChildProcess.emit (node:events:394:28)
at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
Done in 3.77s.
pieter@pieter-Latitude-7400:~/Projects/bls$
Any idea what might be happening? Could it be that package.json is not correctly configured?
Can the README.md be updated also with publishing it to NPM instructions?
The port configured in config.json does not get passed to the express server.
Basic-LDES-Server/src/init/AppRunner.ts
Line 155 in 6a15466
Basic-LDES-Server/src/lib/Source.ts
Line 74 in fb73af3
Basic-LDES-Server/src/lib/Source.ts
Line 77 in fb73af3
Possibly using: https://www.npmjs.com/package/rdf-string
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.