Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
Implemented prefix filter, #76
Merged
Commits
Jump to file or symbol
Failed to load files and symbols.
| @@ -0,0 +1,33 @@ | ||
| +package org.monarchinitiative.owlsim.kb.filter; | ||
| + | ||
| + | ||
| +/** | ||
| + * A filter that picks out individuals that with a particular prefix. | ||
| + * | ||
| + * If URIs are already mapped to CURIEs, use the prefix plus ':' | ||
| + * | ||
| + * If URIs are not mapped, use the full URI prefix | ||
| + * | ||
| + * @author cjm | ||
| + * | ||
| + */ | ||
| +public class IdPrefixFilter implements Filter { | ||
| + | ||
| + private String prefix; | ||
| + | ||
| + | ||
| + public IdPrefixFilter(String prefix) { | ||
| + super(); | ||
| + this.prefix = prefix; | ||
| + } | ||
| + public static IdPrefixFilter create(String prefix) { | ||
| + return new IdPrefixFilter(prefix); | ||
| + } | ||
| + | ||
| + public String getPrefix() { | ||
| + return prefix; | ||
| + } | ||
| + | ||
| + | ||
| + | ||
| +} |