INCATools / INCATools/dosdp-tools
query fails to recognize patterns with repeated elements
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:

(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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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