Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Sep 18 17:39
    timbl commented #122
  • Sep 18 17:36
    timbl commented #122
  • Sep 18 15:31
    justinwb labeled #178
  • Sep 18 15:31
    justinwb opened #178
  • Sep 18 10:46
    megoth labeled #177
  • Sep 18 10:46
    megoth opened #177
  • Sep 18 10:46

    megoth on update-trusted-app-fix

    Updates same row when entering … (compare)

  • Sep 18 09:14
    megoth assigned #170
  • Sep 18 08:12
    megoth synchronize #176
  • Sep 18 08:12

    megoth on panes-user-roles

    Update Documentation/user-types… (compare)

  • Sep 18 08:11
    megoth synchronize #176
  • Sep 18 08:11

    megoth on panes-user-roles

    Update Documentation/user-types… (compare)

  • Sep 18 08:07
    megoth synchronize #176
  • Sep 18 08:07

    megoth on panes-user-roles

    Update Documentation/user-types… (compare)

  • Sep 18 08:07
    megoth synchronize #176
  • Sep 18 08:07

    megoth on panes-user-roles

    Update README.md Co-Authored-B… (compare)

  • Sep 17 14:36
    megoth commented #118
  • Sep 17 14:35
    megoth labeled #122
  • Sep 17 12:40
    megoth commented #118
  • Sep 17 12:26
    megoth commented #118
Dan Keith
@DoctorBud

@Vinnl_gitlab This may have already been answered above...

One thing that may help with your https://codesandbox.io/embed/reverent-fog-liiju is to use the .bundle.js files instead of the .js files. These will work via <script src=...> as in your example, and they do not assume a bundler (e.g., webpack) is necessary. I'm using the jsDeliver versions:

But the unpkg.com equivalents should work also.

In my Smartdown-on-Solid demo, I'm using LDFlex in this way, dynamically loading the bundles and then using LDFlex to query my profile and that of @RubenVerborgh

Vincent
@Vinnl_gitlab
Ah sorry @DoctorBud, the version of the code in Codesandbox you saw was where I was experimenting with unpkg indeed. I was hoping to be able to just import from the package, which was what resulted in the error before
But yeah, thanks for the .bundle hint - I might use that as a workaround to be able to use Codesandbox anyway, if they don't fix their incomplete shim
Vincent
@Vinnl_gitlab

Another question about LDFlex:

Given this code:

async function getName(webId) {
  const person = data[webId];
  const name = await person['http://xmlns.com/foaf/0.1/name'];
  return name ? name.toString() : null;
}
getName("https://www.w3.org/People/Berners-Lee/card#i").then(console.log); 

I get a CORS error:

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://www.w3.org/People/Berners-Lee/card. (Reason: CORS header 'Access-Control-Allow-Origin' missing).

Can I set CORS headers for ldflex? Should I?

(It did work for @RubenVerborgh WebID)
Ruben Verborgh
@RubenVerborgh
It’s the w3.org server not sending the right headers
Tim sent a mail for it
Vincent
@Vinnl_gitlab
Hmm OK, so I should just not try this on Tim's WebID?
(And I'm also wondering: why does rdflib work with Tim's WebID?)
Ruben Verborgh
@RubenVerborgh
Indeed, nothing from client side can fix this
Vincent
@Vinnl_gitlab
:+1:
Ruben Verborgh
@RubenVerborgh
(It retries without credentials)
Vincent
@Vinnl_gitlab
Ah, that's what that's for. Thanks!
Ruben Verborgh
@RubenVerborgh
(So “nothing” is inaccurate, but still not our fault 🙂)
Vincent
@Vinnl_gitlab
Yeah, I'd rather see that fixed on w3.org than those odd kind of workarounds
Vincent
@Vinnl_gitlab

And I'm back with the ldflex question of the day ^.^

I saw I can call .add() to add a value for a property. But what if I want to do that for multiple properties? I can do this:

await data[webId]['foaf:name'].add(literal(name));
await data[webId]['foaf:nick'].add(literal(nickname));

...but that executes a separate HTTP request for every call. Is there a way to batch those?

Mike Adams
@mikeadams1
I like that you can derive a URI from ldflex for the results of the query.
Dylan Martin
@OpBobbyJohnson
Uncaught (in promise) Exception in update: Error: Update: Loaded <https://jaboidougied.solid.community/profile/card>but stil can't figure out what editing protcol it supports. Error: Update: Loaded <https://jaboidougied.solid.community/profile/card>but stil can't figure out what editing protcol it supports. undefined Error: Update: Loaded <https://jaboidougied.solid.community/profile/card>but stil can't figure out what editing protcol it supports. undefined at UpdateManager.update (http://localhost:3000/static/js/0.chunk.js:153979:17) undefined at http://localhost:3000/static/js/0.chunk.js:153984:16
I keep getting the error above when i try to update the data with $rdf.UpdateManager. Any ideas why this would be happening. I am trying to update my card and I am logged in on the app.
Ruben Taelman
@rubensworks
For anyone interested in React development, I've created React components for building Solid apps using GraphQL-LD: https://github.com/rubensworks/solid-react-graphql-ld.js
Michael Pigott
@mikepigott
Hi, I have a web application that generates a profile from existing LinkedIn, GitHub, Twitter, Facebook, and Google profiles. (Example: http://mpigott.solid.vip/ ) This application already generates JSON-LD of the same data, and I'd like to push that JSON-LD (or Turtle) to my Solid WebID profile. I'm feeling silly, as I cannot seem to find any example code that does this already. (I saw http://kingsley.idehen.net/public_home/kidehen/Public/Linked%20Data%20Documents/Playground/basic-html5-cors-sparul-form-sergey2.html ). Does anyone know of example code that does this already?
Jeff Zucker
@jeff-zucker
@mikepigott I'd guess you need to patch the profile with rdflib Updater or with query-ldflex set. Something like await webId[field].set(value)
Michael Pigott
@mikepigott
Thanks! I was able to get a Solid profile to show up on a page (borrowing the code from https://github.com/solid/profile-viewer-tutorial ) ... now I'll try to get what I need by following https://solid.inrupt.com/docs/manipulating-ld-with-rdflib
Michael Pigott
@mikepigott
Melvin Carvalho
@melvincarvalho
hi all im working on v2 of the bookmarking app, but some title have " in the literals
in a literal what should 7 double quotes do? """""""
that's the whole literal
im running into problems when a title starts with a "
Martynas Jusevicius
@namedgraph_twitter
""" is for multi-line strings
Melvin Carvalho
@melvincarvalho
@namedgraph_twitter thanks im aware of that, but my question is what happens when you have 7 in a row?
so it is one quote surronded by 3 + 3
because when i try it on node solid server or the public instances it doesnt work
and i am trying to understand what should be correct behaviour
give it a try, add 7 quotes as a literal
Martynas Jusevicius
@namedgraph_twitter
i just tried parsing using raptor
doesn't work either
hmm
Melvin Carvalho
@melvincarvalho
good info, thanks!
in my bookmark app i added a feature where you could bookmark a story, but it is failing if that story has a quote in it
the title of the story i mean
especially if it starts with a quote
Martynas Jusevicius
@namedgraph_twitter
probably some escaping needs to be done
but i can't find any related info in the spec
" does not seem to be prohibited within """
have you tried escaping the quotes with backslashes?
"""\""""
Martynas Jusevicius
@namedgraph_twitter
this works in raptor and in Jena