LDflex / Query-Solid

Simple access to data in Solid pods through LDflex expressions
https://solid.github.io/query-ldflex/
MIT License
66 stars 15 forks source link

Error when try to get properties or subjects from document #31

Closed jairo-campos-JD closed 5 years ago

jairo-campos-JD commented 5 years ago

When I try to get the properties from my webId I'm getting this error Error: The JSON-LD context cannot expand the 'properties' property

My code is the following:

    for await (let subject of user.properties) {
        console.log(subject)
    }
RubenVerborgh commented 5 years ago

This is the exact error message you would get when using @solid/query-ldflex with ldflex versions lower than 2.3.0.

I have tried your above snippet with ldflex@2.3.0, ldflex@2.4.0, ldflex@2.5.0 and they all work (but it broke, as expected, with that error message on ldflex@2.2.0). I have also run it on the playground, and it works there as well: https://solid.github.io/ldflex-playground/#.user.properties

In short, I have a strong suspicion that somehow an old ldflex version is present. If you think that's not the case, I will probably need a zip of your entire folder, including node_modules.

jairo-campos-JD commented 5 years ago

@rubensworks yes you are right I was using the correct version on the library but not into the generator.

Thank you !!!