Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Jun 27 20:20
    jeff-zucker closed #505
  • Jun 27 20:20
    jeff-zucker commented #505
  • Jun 27 20:17
    TallTed commented #505
  • Jun 27 17:16
    jeff-zucker opened #506
  • Jun 27 17:11
    jeff-zucker opened #505
  • Jun 14 10:09
    timea-solid commented #504
  • Jun 14 10:00
    timea-solid synchronize #504
  • Jun 14 10:00

    timea-solid on prune-deleted

    deprecated findAppInstances (compare)

  • Jun 14 09:27
    timea-solid synchronize #504
  • Jun 14 09:27

    timea-solid on prune-deleted

    update snap (compare)

  • Jun 14 08:19

    timea-solid on prune-deleted

    Update test/unit/chat/__snapsho… (compare)

  • Jun 14 08:19
    timea-solid synchronize #504
  • Jun 12 13:54
    timbl commented #504
  • Jun 12 13:54
    timbl synchronize #504
  • Jun 12 13:54

    timbl on prune-deleted

    typescript (compare)

  • Jun 12 13:45
    timbl synchronize #504
  • Jun 12 13:45

    timbl on prune-deleted

    npm ci in CI tests fails, menti… (compare)

  • Jun 11 15:28
    timbl synchronize #504
  • Jun 11 15:28

    timbl on prune-deleted

    Fix tests. Mostly snapshot upd… (compare)

  • Jun 10 19:41
    timbl synchronize #504
Jordan Shurmer
@JordanShurmer
well, as a different topic, I'm also not able to use .from for some reason. I get an error saying that there is no queryEngine. been doing solid.data[document] instead (which seems to work, at least when I include the '#Bookmark' at the end of the document I linked earlier
the ldp:contains doesn't work in this case (https://jshurmer.inrupt.net/settings/publicTypeIndex.ttl) since it's not a ldp container I guess
Jordan Shurmer
@JordanShurmer
the equivelant thing using rdflib.js is to populate the store with that document then do store.any(null, SOLID("forClass"), something) and it somehow finds the right subject in the document
James Martin
@james-martin-jd
well if you add #Bookmark to the document you just made a subject :P
Jordan Shurmer
@JordanShurmer
right, I just mean using data[] seems to work without using .from, since .from isn't working. Or, are you saying I need to use .from since I'm loading a document without specifying the subject?
James Martin
@james-martin-jd
I’d have to ask Ruben, I’m not sure if there’s a workflow to get data without a subject, it’s a key part of a triple
Most likely, instead, you’d need a mechanism to data-discover the subjects you want
Jordan Shurmer
@JordanShurmer
ya, that makes sense
Jordan Shurmer
@JordanShurmer
ya, I can't find a way to do what I'm looking for with the current query-ldflex. :(
Although, I still feel like I'm missing something really obvious
https://github.com/linkeddata/rdflib.js/blob/master/src/store.js#L727
* @param {Node} subject - A node to search for as subject, or if null, a wildcard
Jordan Shurmer
@JordanShurmer
rdflib.js handles this by allowing null subjects.
(not saying ldflex should do that.. there's better ways for ldflex, just saying that's why it works in rdflib.js)
Altynbek Orumbayev
@aorumbayev

Hi everyone, I have a node-solid-server related question,
Does anyone know if it is possible to run SPARQL UPDATE queries over jsonld files in solid ? From what I have tried so far, I only had success with .ttl files. Here is a detailed explanation of my issue https://forum.solidproject.org/t/executing-sparql-query-over-json-ld-files-in-solid/1885

Some things I've tried so far:
• Comunica sparql works great for search queries over jsonld files in solid but they don't support update queries :/
All I want is a plain simple ability to rename some string properties in the files without removing the whole jsonld and adding it back.
• Using Rdflib, I tried serialising jsonld to turtle, storing it on solid as turtle and every time I fetch it I would then serialise it back to jsonld when I fetch it. However it produces the error and can't parse it back to jsonld (Error translating between RDF formats)

Michiel de Jong
@michielbdejong
@aorumbayev can you open an issue about this on https://github.com/solid/node-solid-server/issues/new?
little experiment to get notified when a Solid document changes: https://github.com/michielbdejong/solid-notify/blob/master/index.html
Altynbek Orumbayev
@aorumbayev
@michielbdejong opened 👍

Another rdflib related question :

If I use a addDownstreamChangeListener on a resource and it opens a web socket connection, what happens on repeated call of addDownstreamChangeListener on same resource? Does it prevent duplicated socket connection or it will act dummy and open another connection? If yes, is there a method to remove the added change listeners ?

Jeff Zucker
@jeff-zucker
@aorumbayev There is a dedicated chatroom for rdlib - fine to ask here, but you might find more people capable of answering there.
Altynbek Orumbayev
@aorumbayev
@jeff-zucker thanks for letting me know, I forwarded the message there :)
Michiel de Jong
@michielbdejong
@Vinnl or @megoth_twitter how does login work in the data browser?
it doesn’t use solid-auth-client, right?
Arne Hassel
@megoth_twitter
Michiel de Jong
@michielbdejong
Planned maintenance window for inrupt.net and solid.community coming up in the next few hours
Mark Hughes (happybeing/theWebalyst)
@happybeing
Anyone know about history handling?
I'm seeing solid-filemanager error because it's handlePop() (see https://github.com/Otto-AA/solid-filemanager/blob/master/src/Components/HistoryHandler/HistoryHandler.tsx#L60) is passed location where location.state is not defined, and I'm not sure if the error is that location.state should always be defined. BTW this is in SAFE Browser, so it could be browser specific. Also BTW, I have solid-filemanager browsing storage on SAFE without any changes to solid-filemanager (just dropping in a forked version of solid-auth-client).
@Otto-AA ^^ And Otto, sorry for not coming back to you on the earlier error. I have a note but have been to busy to follow it up. Anyway it isn't forgotten and I will check to see if the cause is as you suggest when I get the chance. :smile:
Mark Hughes (happybeing/theWebalyst)
@happybeing
UPDATE solution to the above: it is a bug in old version of the history module as I can see it now checks if event.state is undefined! So the solution is to update that module, if not done already (my solid-filemanager may be a bit behind - if not I'll raise an issue).
A_A
@Otto-AA
@theWebalyst I remember that there was an issue with location and going backwards, but I thought that I've solved it back then. Would it be possible that you try it on the original solid-filemanager version and if the bug also occurs there create an issue with the steps to reproduce?
Mark Hughes (happybeing/theWebalyst)
@happybeing
@Otto-AA I'm investigating a bit deeper. There is some code in history to catch and ignore this. Will get back to you!
Mark Hughes (happybeing/theWebalyst)
@happybeing
@Otto-AA I think it's a bug in the latest version of history. handlePopState() checks and ignores if event.state is undefined but it is null which causes location.stateto be undefined. I've submitted an issue on ReactTraining/history#708 but still trying to get solid-filemanager to pick up my 'fixed' version of the history module atm.
Mark Hughes (happybeing/theWebalyst)
@happybeing
UPDATE: I've verified the issue is fixed by the change I've proposed in ReactTraining/history#708
Mark Hughes (happybeing/theWebalyst)
@happybeing
@Otto-AA Do you know how your 'Login' button is changed to 'Logout'? It changes if I click a second time but not the first (when used on SAFE) but I'm having trouble finding the relevant code. Solid auth client triggers 'login' and 'session' events but I don't see them being handled, or trackSession()being used to set a callback in solid-filemanager.
Mark Hughes (happybeing/theWebalyst)
@happybeing
Ah, I think I have it.
A_A
@Otto-AA
@theWebalyst It's in Actions.ts the solidLogin and updateLoginStatus methods. If it doesn't change to "Logout" it is probably because your client doesn't resolve with the session on popupLogin AND currentSession() not returning a session the first time.
A_A
@Otto-AA
Or that one of these methods rejects instead of resolving
Mark Hughes (happybeing/theWebalyst)
@happybeing
Thanks @Otto-AA I found the issue. Now have solid-filemanager working on SAFE Network as a proof of concept. The only changes are to a) use my fork of solid-auth-client, and b) work around an issue in SAFE Browser (no support for Promise.finally()). I can click 'Login', set a storage URI like safe://solidteststorage and then browse directories, view and modify files.
Thanks very much for your help!
Jordan Shurmer
@JordanShurmer
nice
Mark Hughes (happybeing/theWebalyst)
@happybeing
I'm now working on some tweaks to the WebID implementation in SAFE to ensure there is storage at the expected default URI (e.g. safe://mark.happybeing (for a WebID of safe://mark.happybeing/card#me)
A_A
@Otto-AA

I'm now working on some tweaks to the WebID implementation in SAFE to ensure there is storage at the expected default URI (e.g. safe://mark.happybeing (for a WebID of safe://mark.happybeing/card#me)

I guess you know it already, but solid-filemanager isn't a good example with guessing the storage location by the webid. It should be retrieved via the profile afaik

@theWebalyst And nice that you've got it working with SAFE. I haven't looked into it much, but I like the concept of it and your work connecting it with SOLID sounds promising :+1:
Mark Hughes (happybeing/theWebalyst)
@happybeing
Yes @Otto-AA, my reasoning is that some apps will assume the location, so by following the convention more apps will 'just work' , while we can also specify the storage location in the profile.
Sarven Capadisli
@csarven
@theWebalyst I'd caution against hardcoding. The whole point of using self-describing resources is so that we avoid "guessing". Data will tell the application exactly where to go next.
You can of course step outside of that, but don't expect others to find the storage. They're probably going to look for space:storage at your WebID Profile.
Second, there is no particular coupling between a WebID and the base URL. Unless there is a relation along the lines of "homepage" or "storage" etc from the WebID.
WebID and storage are distinct notions and are in no way bound to the same authority.
Mark Hughes (happybeing/theWebalyst)
@happybeing
No worries @csarven, it was always my intention to specify storage in the profile. My point is that because there's a tendency for storage to sit at the base of your WebID, following that convention helps UX and probably enables poorly written apps to work.
Sarven Capadisli
@csarven
As you like. IMO: It is a bad or out of scope convention. We shouldn't reinforce poorly written apps.
SimonShapiro
@SimonShapiro

I am trying to build an app for solid with anvil. Anvil is an all python full stack web development environment. This means that I have no (limited) access to javascript in the browser. The front-end python is translated into javascript using skuplt behind the scenes.

All this is just background to my question.

I obviously have to redo the normal login using the python style front-end. So is there some guidance to the login flow? For example, as an app my user will go the https:\\user.podprovider.net. I can get to the usual login screen at pod provider.net, but this sets a token somewhere in the browser and I'm not too sure what the python (in the browser ie skuplt generated js) should do from here.

Any ideas where to go to research login flows that are outside the usual javascript assumptions?