question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature: indexing with complex paths

See original GitHub issue

It would be nice to index using complex SPARQL paths, for instance

const ruben = path.create({ subject: namedNode('https://ruben.verborgh.org/profile/#me') });
showPerson(ruben);

async function showPerson(person) {
  for await (const name of person['foaf:friends*/foaf:givenName'])
    console.log(`- ${name}`);
}

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
RubenVerborghcommented, Jan 13, 2021

Okay. I think it makes sense to continue with #80 then.

1reaction
RubenVerborghcommented, Jan 13, 2021

Hi @jeswr, good idea!

I will comment here on the syntactical suggestion, and in #80 on the implementation.

I think that, instead of

person['foaf:friends*/foaf:givenName']

we should consider

person['foaf:friends*'].['foaf:givenName']
person['foaf:friends*'].foaf$givenName
person['foaf:friends*'].name

which seems to fit the chaining spirit of LDflex better.

And perhaps also

person.friends['*'].name
person.friends.star.name
person.friends.recursive.name

or with better words than star/recursive that I can’t seem to find now 🙂

Read more comments on GitHub >

github_iconTop Results From Across the Web

Azure Cosmos DB indexing policies | Microsoft Learn
A custom indexing policy can specify property paths that are explicitly included or excluded from indexing. By optimizing the number of ...
Read more >
Exploiting Local Similarity for Indexing Paths in Graph ...
3. The A(k)-index. The 1-Index and the DataGuide precisely encode all paths in the data graph, including long and complex paths. Thus,.
Read more >
8 Optimizer Access Paths - Oracle Help Center
An access path is a technique used by a query to retrieve rows from a row source. ... Unless the index is a...
Read more >
Indexing Useful Structural Patterns for XML Query Processing
Existing path-based indexes and query processing algorithms are not efficient for searching complex structures beyond simple paths, even when the queries ...
Read more >
HID: An Efficient Path Index for Complex XML Collections with ...
In this paper, we propose a scalable connection index that is based on the concept of 2-hop covers as introduced by Cohen el...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found