Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.properties should return compacted properties #39

Open
matthieu-fesselier opened this issue Sep 24, 2019 · 3 comments
Open

.properties should return compacted properties #39

matthieu-fesselier opened this issue Sep 24, 2019 · 3 comments
Labels
enhancement New feature or request

Comments

@matthieu-fesselier
Copy link

When using the function properties on a resource or a container, I get a list of expanded properties (example)

Shouldn't it be compacted? It seems like LDFlex is doing it, and we already have the predicates function which returns expanded properties (example)

@RubenVerborgh RubenVerborgh added the enhancement New feature or request label Sep 24, 2019
@RubenVerborgh
Copy link
Member

Indeed; this depended on rubensworks/jsonld-context-parser.js#21, which now seems to be done. Upgrading the JSON-LD context parser should do the trick.

@jblemee
Copy link

jblemee commented Sep 24, 2019

Don't you think that somewhere in query-ldflex code the parsedContext setting is missing ?

For instance, with LDFlex, this code returns compacted properties :

 const pathProxy = new PathProxy({ handlers });
    person = pathProxy.createPath({
      queryEngine,
      parsedContext: new ContextParser().parse(context),
    }, { subject });

and this code does not :

 const pathProxy = new PathProxy({ handlers });
    person = pathProxy.createPath({
      queryEngine
    }, { subject });

@RubenVerborgh
Copy link
Member

Interesting; will need to have a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants