w3c / w3c/data-shapes

consider computational complexity

Open
#321 10 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Profiling
Dominant language
HTML
Stars
162
Forks
48
Avg merge
3d 10h
Merged PRs (30d)
25

Description

It would be nice for each new feature (or more realistically a bundle of features, i.e. Profile) to have some idea about its implementation and execution complexity.

Consider this scenario:

  • a database of 1, 10 or 100B triples (data at rest), which are assumed valid (eg parts have been validated, parts are from a trusted valid source)
  • a transaction of 1, 10 or 100M triples (data in motion)
  • a shapes graph of 1 or 10k shapes. Shapes refer to both data in motion, and also data at rest.

How do you validate this scenario in a reasonable time?
That's a difficult question.

  • Many implementations use in-memory models ("give me data files, give me shape files, I load them in memory and output a validation report").
    • I think all JS implementations are like this. Which is not efficient in the large-data scenario described above (@bergos , I'd love it if you prove me wrong!)
  • SPARQL opens up a "door" towards "unknown" complexity. At least I'm not aware of work on assessing the practical complexity of SPARQL queries

Relevant issues:

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading linked issues 242, 216, 235, and 312, including the cited SHACL guidance. No file, test, or entry point is named in the issue; an agreed complexity model and clearly scoped profile or specification change would define completion.

Written by the indexing model from the issue text.

Assessment

Domain
documentation
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.