X-Git-Url: http://git.nguyen.vg/gitweb/?a=blobdiff_plain;f=tests%2Fqueries%2Fmedline.xml.queries;fp=tests%2Fqueries%2Fmedline.xml.queries;h=738f266e5919d23afd5dd1adcb14dc7feb3cff34;hb=af288936a2ee49bace0f1070ef9c6e81e9ea6fce;hp=0000000000000000000000000000000000000000;hpb=269daee8bbc5b86adeb9b23049c378e49cc82d2e;p=tatoo.git diff --git a/tests/queries/medline.xml.queries b/tests/queries/medline.xml.queries new file mode 100644 index 0000000..738f266 --- /dev/null +++ b/tests/queries/medline.xml.queries @@ -0,0 +1,7 @@ +/descendant::Article[ descendant::AbstractText[ contains ( . , "plus") or contains ( . , "for") ] ]%/descendant::Article/descendant::AbstractText[ . ftcontains "plus" ftor "for" ] +/descendant::Article[ descendant::AbstractText[ contains ( . , "plus") and not(contains ( . , "for")) ] ]%/descendant::Article/descendant::AbstractText[ . ftcontains "plus" ftand ftnot "for" ] +/descendant::MedlineCitation/child::Article/child::AuthorList/child::Author[ child::LastName[starts-with( ., "Bar")]]%/descendant::MedlineCitation/child::Article/child::AuthorList/child::Author[ child::LastName ftcontains "Bar" at start ] +/descendant::*[ descendant::LastName[ contains( ., "Nguyen") ] ]%/descendant::*[ descendant::LastName ftcontains "Nguyen" entire content ] +/descendant::*/descendant::*[ contains( ., "epididymis") ]%/descendant::*/descendant::*[ . ftcontains "epididymis" ] +/descendant::*[ descendant::PublicationType[ ends-with( ., "Article") ]]%/descendant::*[ descendant::PublicationType ftcontains "Article" at end ] +/descendant::MedlineCitation[ descendant::Country[ contains( ., "AUSTRALIA") ] ]%/descendant::MedlineCitation[ descendant::Country ftcontains "AUSTRALIA" ]