INCATools / INCATools/dosdp-tools

query fails to recognize patterns with repeated elements

Open
#139 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Scala
Stars
33
Forks
5
PR merge metrics
No merged PRs in 30d

Description

I have this

```
equivalentTo:
text: "('related' some %s) and ('related' some %s)"
vars:
- v0
- v1
```

And this:

![image](https://user-images.githubusercontent.com/50745/59990802-81e25580-95f9-11e9-8698-3268198b7058.png)

(ignore the weirdness for now, this is auto-generated by patternizer)

Yet the class is not matched by query. My hypothesis is that this is due to the fact that the same expression is repeated. Granted this is a weird example, but we can imagine saner analogs.

YAML:

https://github.com/cmungall/owl_patternizer/blob/730b7e149ddd0f4ef19aaabea4647b00b722c250/examples/apo/related_X_related_X.yaml#L48-L51

OWL:

https://github.com/cmungall/owl_patternizer/blob/730b7e149ddd0f4ef19aaabea4647b00b722c250/examples/apo/_input.ttl#L2287-L2310

Contributor guide

No contributing guide indexed for this repository

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 reproducing the mismatch using examples/apo/related_X_related_X.yaml and examples/apo/_input.ttl from the linked commit. Trace how the query handles the repeated ('related' some %s) pattern, and consider the issue complete when the provided class is matched without breaking analogous repeated-element queries.

Written by the indexing model from the issue text.

Assessment

Tech stack
scala
Domain
backend, search
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.