Questions tagged [solid]

Solid: tools and conventions for decentralized social applications proposed by Tim Berners-Lee and MIT. Please do not use this tag for the SOLID OOP principles.

Solid (originally derived from "social linked data") is a set of conventions and tools for building decentralized social applications based on Linked Data principles, proposed by Tim Berners-Lee and MIT. (Not to be confused with the of object-oriented design.) Solid is modular and extensible and it relies as much as possible on existing W3C standards and protocols.

Code on github.

81 questions
1
vote
0 answers

Uncaught (in promise) TypeError: Object prototype may only be an Object or null: undefined

I want to upload a file to a solid container. I took this code as an example. https://github.com/jeff-zucker/solid-file-client/blob/master/docs/node-upload.md The difference is that I use solid-auth-fetcher for authorization. The code looks like…
Dima
  • 112
  • 12
1
vote
1 answer

solid/react-components: useLDflex() for address

I'm trying to read a user's address from their profile with useLDflex() or useLDflexValue(). When I run this: const address = useLDflex(`[${webId}].vcard_hasAddress`)?.toString() || 'loading...'; console.log('address: ', address); Console…
user3320795
  • 523
  • 2
  • 6
  • 17
1
vote
1 answer

React: Higher-Order Component: Solid useLDflex()

I'm struggling with a Higher-Order Component in React. I'm trying use use Solid's react-components to load a user's profile data with useLDflex(). My code is throwing an error that I can't understand; I'm not sure if the problem relates to React,…
user3320795
  • 523
  • 2
  • 6
  • 17
1
vote
1 answer

Solid: correct way to store a JSON object

I want to store a standard JSON object in the user’s Solid pod. After working through the Solid getting started tutorial, I found I could get/set the object in the VCARD.note parameter, but I suspect this is not the right way to do it. Any advice on…
user3320795
  • 523
  • 2
  • 6
  • 17
1
vote
1 answer

How do I mock a Container with @inrupt/solid-client?

If I'm writing unit tests for code using the npm package @inrupt/solid-client that is trying to read from a Container, how do I mock that Container?
Vincent
  • 4,876
  • 3
  • 44
  • 55
1
vote
0 answers

Data from a solid data pod but it always comes back as undefined. How do i retrieve data from a inrupt solid data pod correctly?

I am trying to retrieve the organization-name, or any data from the following endpoint. https://isumotest.inrupt.net/profile/card#me However whenever i try to grab anything it always comes back as undefined const $rdf = require('rdflib') const store…
Morphasis
  • 1,343
  • 1
  • 12
  • 25
1
vote
0 answers

How to run SoLiD behind traefik

I'd like to run node-solid-server as docker, configured by docker-compose, behind træfik. Because solid uses webid-tls all encrypted requests need to be bypassed through the frontend proxy. How to bypass all TLS to the solid docker?
1
vote
1 answer

Solid server (project by Sir Tim Berners-Lee and MIT) not loading correct configuration

I was trying to spin a Solid Server. I've followed the instruction from Solid project (https://solid.inrupt.com/docs) to set up an server. However, when the service is running, it fails to start and complaints about path is not defined: ●…
Tuhin
  • 195
  • 1
  • 9
0
votes
1 answer

How to extend a class stored in the database without big consequences for the whole system?

I'm writing my simple database which reads the Person class fields from a csv file and writes them to a vector. But if in the future I want to add new fields to the Person class, I will have to redo the class constructor, in the function of reading…
klinika
  • 3
  • 1
0
votes
1 answer

Highchart solidgauge is arc clipping but pane is coming correctly

This is mainly happening when startAngle > 90 and endAngle < 270 (this makes arc in bottom) and difference of angle is around 50 (It like quarter arc having start and end angle in bottom). This can be fixed If I reduce Y direction from top value. I…
0
votes
0 answers

Conforming with SRP, and avoid bloated Controllers at the same time dilemma

I keep getting faced with the dilemma of making sure that my Controller isn't too bloated and only focuses on business logic. At the same time my classes should be conforming to SRP. A simple example as follows. When a User sends a message to…
0
votes
0 answers

how to properly handle binder entities?

I have categories and products, now I want to make endpoints according to the REST API, I have to do this: /categories/123/products. But then I have to return products from CategoryService? Isn't that a solid violation?
0
votes
3 answers

SolidJS: Why does destructuring of props cause a loss of reactivity?

Props are what we call the object that is passed to our component function on execution that represents all the attributes bound to its JSX. Props objects are readonly and have reactive properties which are wrapped in Object getters. This allows…
seongkuk han
  • 570
  • 6
  • 14
0
votes
1 answer

How can I provide access only for some methods from service in angular?

I have a two services an angular. The first one responsible for data manipulation and also has some methods which return data. The second one responsible for data rendering. RenderingService use two methods from DataManipulationService. How can I…
0
votes
2 answers

Dependency Inversion Principle: is a low level module allowed to have a hidden reference to another low level module?

Consider the following code from Web Dev Simplified's video on the Dependency Inversion Principe: https://www.youtube.com/watch?v=9oHY5TllWaU class Store { constructor(paymentProcessor) { this.paymentProcessor = paymentProcessor; } …