Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add IRI pattern matching to remove/filter selectors #448

Merged
merged 3 commits into from
May 7, 2019

Conversation

beckyjackson
Copy link
Contributor

See #446, also adds examples to the CURIE matching.

@matentzn I would appreciate if you could test this out for your use case, if you get a chance! Thanks!


Patterns

...

It is also possible to select terms based on parts of their IRI. You may include an IRI pattern using one or more wildcard characters (* and/or ?) enclosed in angle brackets.

  • <IRI-pattern>
    • e.g. <http://purl.obolibrary.org/obo/EX_*>

If you wish to match a more complicated pattern, you may also use a regex pattern here by preceding the pattern with a tilde (~):

  • <~IRI-regex>
    • e.g. <~^.+EX_[0-9]{7}$>

...

Examples

...

Remove all axioms containing an entity in the BFO namespace from the UBERON module:

robot remove --input uberon_module.owl \
  --select "<http://purl.obolibrary.org/obo/BFO_*>" \
  --output results/remove_bfo.owl

@matentzn
Copy link
Contributor

matentzn commented Mar 8, 2019

@rctauber if this technically works, can we defer testing for until it is in a release? Pretty full plate at the moment, and I am VERY keen on this feature :P

@jamesaoverton jamesaoverton merged commit b1fe7a0 into ontodev:master May 7, 2019
@beckyjackson beckyjackson deleted the iri-matching branch May 23, 2019 20:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants