oslc / ldpjs Goto Github PK
View Code? Open in Web Editor NEWDEPRECATED see https://github.com/OSLC/oslc-service
License: Apache License 2.0
DEPRECATED see https://github.com/OSLC/oslc-service
License: Apache License 2.0
2019-05-09T23:19:54.632581+00:00 app[web.1]: GET /r/
2019-05-09T23:19:54.632702+00:00 app[web.1]: db.get
2019-05-09T23:19:54.635948+00:00 app[web.1]: { _id:
2019-05-09T23:19:54.635950+00:00 app[web.1]: ObjectID {
2019-05-09T23:19:54.635952+00:00 app[web.1]: _bsontype: 'ObjectID',
2019-05-09T23:19:54.635953+00:00 app[web.1]: id:
2019-05-09T23:19:54.635955+00:00 app[web.1]: Buffer [Uint8Array] [ 92, 212, 181, 137, 241, 193, 130, 4, 233, 215, 61, 9 ] },
2019-05-09T23:19:54.635956+00:00 app[web.1]: name: 'http://0.0.0.0:3000/r/',
2019-05-09T23:19:54.635960+00:00 app[web.1]: interactionModel: 'http://www.w3.org/ns/ldp#BasicContainer',
2019-05-09T23:19:54.635962+00:00 app[web.1]: triples:
2019-05-09T23:19:54.635963+00:00 app[web.1]: [ { subject: 'http://0.0.0.0:3000/r/',
2019-05-09T23:19:54.635965+00:00 app[web.1]: predicate: 'http://www.w3.org/1999/02/22-rdf-syntax-ns#type',
2019-05-09T23:19:54.635967+00:00 app[web.1]: object: 'http://www.w3.org/ns/ldp#Resource' },
2019-05-09T23:19:54.635968+00:00 app[web.1]: { subject: 'http://0.0.0.0:3000/r/',
2019-05-09T23:19:54.635969+00:00 app[web.1]: predicate: 'http://www.w3.org/1999/02/22-rdf-syntax-ns#type',
2019-05-09T23:19:54.635971+00:00 app[web.1]: object: 'http://www.w3.org/ns/ldp#RDFSource' },
2019-05-09T23:19:54.635972+00:00 app[web.1]: { subject: 'http://0.0.0.0:3000/r/',
2019-05-09T23:19:54.635974+00:00 app[web.1]: predicate: 'http://www.w3.org/1999/02/22-rdf-syntax-ns#type',
2019-05-09T23:19:54.635976+00:00 app[web.1]: object: 'http://www.w3.org/ns/ldp#Container' },
2019-05-09T23:19:54.635977+00:00 app[web.1]: { subject: 'http://0.0.0.0:3000/r/',
2019-05-09T23:19:54.635979+00:00 app[web.1]: predicate: 'http://www.w3.org/1999/02/22-rdf-syntax-ns#type',
2019-05-09T23:19:54.635981+00:00 app[web.1]: object: 'http://www.w3.org/ns/ldp#BasicContainer' },
2019-05-09T23:19:54.635982+00:00 app[web.1]: { subject: 'http://0.0.0.0:3000/r/',
2019-05-09T23:19:54.635983+00:00 app[web.1]: predicate: 'http://purl.org/dc/terms/title',
2019-05-09T23:19:54.635985+00:00 app[web.1]: object: '"LDP.js root container"' } ],
2019-05-09T23:19:54.635986+00:00 app[web.1]: deleted: false }
2019-05-09T23:19:54.641939+00:00 app[web.1]: /app/node_modules/mongodb/lib/utils.js:132
2019-05-09T23:19:54.641941+00:00 app[web.1]: throw err;
2019-05-09T23:19:54.641943+00:00 app[web.1]: ^
2019-05-09T23:19:54.641944+00:00 app[web.1]:
2019-05-09T23:19:54.641945+00:00 app[web.1]: TypeError: writer.addTriples is not a function
2019-05-09T23:19:54.641946+00:00 app[web.1]: at exports.serialize (/app/turtle.js:37:9)
2019-05-09T23:19:54.641947+00:00 app[web.1]: at /app/service.js:102:5
2019-05-09T23:19:54.641948+00:00 app[web.1]: at /app/service.js:684:5
2019-05-09T23:19:54.641950+00:00 app[web.1]: at /app/db.js:191:3
2019-05-09T23:19:54.641951+00:00 app[web.1]: at result (/app/node_modules/mongodb/lib/utils.js:414:17)
2019-05-09T23:19:54.641952+00:00 app[web.1]: at executeCallback (/app/node_modules/mongodb/lib/utils.js:406:9)
2019-05-09T23:19:54.641954+00:00 app[web.1]: at handleCallback (/app/node_modules/mongodb/lib/utils.js:128:55)
2019-05-09T23:19:54.641955+00:00 app[web.1]: at cursor.close (/app/node_modules/mongodb/lib/operations/cursor_ops.js:218:62)
2019-05-09T23:19:54.641956+00:00 app[web.1]: at handleCallback (/app/node_modules/mongodb/lib/utils.js:128:55)
2019-05-09T23:19:54.641957+00:00 app[web.1]: at completeClose (/app/node_modules/mongodb/lib/cursor.js:887:14)
Our Bluemix deployment is down, Heroku represents a lower barrier of entry for the users.
Even if it is not a URI:
For now, I have added a workaround that ignores the objects that are not strings. This is connected to #4 where string operations fail on non-string objects.
What is the difference of this app from https://github.com/OSLC/ldp-app? The READMEs look quite similar.
2019-05-09T23:33:46.775769+00:00 app[web.1]: POST /r/
2019-05-09T23:33:46.776337+00:00 app[web.1]: Third parameter to `find()` must be a callback or undefined
2019-05-09T23:33:46.799959+00:00 app[web.1]: url.js:154
2019-05-09T23:33:46.799963+00:00 app[web.1]: throw new ERR_INVALID_ARG_TYPE('url', 'string', url);
2019-05-09T23:33:46.799964+00:00 app[web.1]: ^
2019-05-09T23:33:46.799966+00:00 app[web.1]:
2019-05-09T23:33:46.799967+00:00 app[web.1]: TypeError [ERR_INVALID_ARG_TYPE]: The "url" argument must be of type string. Received type object
2019-05-09T23:33:46.799969+00:00 app[web.1]: at Url.parse (url.js:154:11)
2019-05-09T23:33:46.799970+00:00 app[web.1]: at Object.urlParse [as parse] (url.js:148:13)
2019-05-09T23:33:46.799972+00:00 app[web.1]: at normalize (/app/turtle.js:30:19)
2019-05-09T23:33:46.799973+00:00 app[web.1]: at N3Parser._callback (/app/turtle.js:49:21)
2019-05-09T23:33:46.799992+00:00 app[web.1]: at N3Parser._emit (/app/node_modules/n3/lib/N3Parser.js:789:10)
2019-05-09T23:33:46.799994+00:00 app[web.1]: at N3Parser._readPunctuation (/app/node_modules/n3/lib/N3Parser.js:564:14)
2019-05-09T23:33:46.799995+00:00 app[web.1]: at /app/node_modules/n3/lib/N3Parser.js:927:35
2019-05-09T23:33:46.799996+00:00 app[web.1]: at N3Lexer._tokenizeToEnd (/app/node_modules/n3/lib/N3Lexer.js:350:7)
2019-05-09T23:33:46.799998+00:00 app[web.1]: at Immediate.<anonymous> (/app/node_modules/n3/lib/N3Lexer.js:414:40)
2019-05-09T23:33:46.799999+00:00 app[web.1]: at runCallback (timers.js:705:18)
Class constructor N3Writer cannot be invoked without 'new'
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.