Skip to content

.properties should return compacted properties #39

Description

@matthieu-fesselier

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)

Activity

  1. RubenVerborgh commented on Sep 24, 2019

    @RubenVerborgh
    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.

  2. jblemee commented on Sep 24, 2019

    @jblemee

    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 });
    
  3. RubenVerborgh commented on Sep 24, 2019

    @RubenVerborgh
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions