Difference between revisions of "Advanced Annotation Search"

From Protege Wiki
Jump to: navigation, search
(Examples)
Line 7: Line 7:
 
|LastUpdated=July 17, 2012
 
|LastUpdated=July 17, 2012
 
|Topic1=Search
 
|Topic1=Search
 +
|Topic2=Semantic Web
 
|Affiliation1=Phenoscape Project
 
|Affiliation1=Phenoscape Project
 
|Affiliation2=University of South Dakota
 
|Affiliation2=University of South Dakota
 
}}
 
}}
 
 
<div style="display:block; float:left; width:100%;">
 
<div style="display:block; float:left; width:100%;">
  

Revision as of 18:47, July 17, 2012

Advanced Annotation Search

by Mark Helenurm

Screenshot

Type View
Author(s) Mark Helenurm
Last Update July 17, 2012
License not available
Homepage not available
For Application
Topic(s)
Affiliation

A search function to find entities based on annotation data.

Versions & Compatibility

This section lists available versions of Advanced Annotation Search.

VersionCompatible withDependencies
Advanced Annotation Search 1.0.1

If you click on the button below to add a new version of Advanced Annotation Search, you will be asked to define a page title for the new version. Please adhere to the naming convention of Advanced Annotation Search X.X.X when you define the new page!


Usage Guide

Basic Syntax

Expressions you type in the text field are broken down into "terms". A term is either a single word, or an item separated by quotation marks (""). For a basic search, you can type a single term into the box (e.g. "dorsal fin" or puppies). For a more complex expression, you use groups of three terms (called triples), which are broken down into the annotation type, the operator, and the search term. For example, if you want all comment annotations that contain the term "dermal bone", you would search: comment contains "dermal bone". If you want to search for an even more complex expression (for example, you know the comment annotation contains the phrase "phenoscape" and the age annotation is greater than 19), you break the two search terms up with a logical operator (and, or, exclusiveor). So in this example, your search string would be: comment contains phenoscape and age > 19.

Operators

Operation Operator Symbols Domain
Contains contains, ~ Strings
Doesn't Contain doesntcontain, !~ Strings
Equals equals, isequalto, =, == Strings, Numbers
Doesn't Equal doesntequal, != Strings, Numbers
Greater Than greaterthan, > Numbers
Less Than lessthan, < Numbers
Greater Than or Equal to greaterthanorequalto, gequalto, gequal, >= Numbers
Less Than or Equal to lessthanorequalto, lequalto, lequal, <= Numbers

Logical Operators

Logical Operation Operator Symbols
Groupers (, )
And and, &, &&
Exclusive Or exclusiveor, ^
Or or, |, ||

(order of operations corresponds to table position)

Examples

Single-Term Expressions

"dermal bone is absent"


puppies


"im in here somewhere"


Two-Term Expressions

comment contains "dermal bone ain't here" or comment contains "dorsal fin is present"


age >= 49 and age <= 70


comment !~ "confused" or comment ~ "i cnat spel wright"


Three or More-Term Expressions

(label contains "yes i'm here" || comment contains "yes i'm here") & age < 50


(comment ~ "dermal bone" ^ comment ~ "dorsal fin") && age > 30 && yeardiscovered == 1990