/store/book/author $.store.book[*].author the authors of all books in the store
//author $..author all authors
/store/* $.store.* all things in store, which are some books and a red bicycle.
/store//price $.store..price the price of everything in the store.
//book[3] $..book[2] the third book
//book[last()] $..book[(@.length-1)]
$..book[-1:] the last book in order.
//book[position()<3] $..book[0,1]
$..book[:2] the first two books
//book[isbn] $..book[?(@.isbn)] filter all books with isbn number
//book[price<10] $..book[?(@.price<10)] filter all books cheapier than 10
//* $..* all Elements in XML document. All members of JSON structure.
The primary key of the sort is the number of literal characters in the full URI matching pattern.
...
The secondary key of the sort is the number of template expressions embedded within the pattern—that is, {id} or {id : .+}. This sort is in descending order.
...
The tertiary key of the sort is the number of nondefault template expressions. A default template expression is one that does not define a regular expression—that is, {id}.
M. Mintz, S. Bills, R. Snow, и D. Jurafsky. Proceedings of the Joint Conference of the 47th Annual Meeting of the ACL and the 4th International Joint Conference on Natural Language Processing of the AFNLP: Volume 2-Volume 2, стр. 1003--1011. Association for Computational Linguistics, (2009)
R. Bunescu, и R. Mooney. Proceedings of the conference on Human Language Technology and Empirical Methods in Natural Language Processing, стр. 724--731. Stroudsburg, PA, USA, Association for Computational Linguistics, (2005)
T. Sederberg, P. Gao, G. Wang, и H. Mu. Proceedings of the 20th annual conference on Computer graphics and interactive techniques, стр. 15--18. New York, NY, USA, ACM, (1993)
D. Helic, C. Trattner, M. Strohmaier, и K. Andrews. Proceedings of the 2010 IEEE Second International Conference on Social Computing, стр. 161--168. Washington, DC, USA, IEEE Computer Society, (2010)
S. Kandula, и R. Mahajan. Proceedings of the 9th ACM SIGCOMM conference on Internet measurement conference, стр. 156--169. New York, NY, USA, ACM, (2009)
K. Dhamdhere, V. Goyal, R. Ravi, и M. Singh. Proceedings of the 46th Annual IEEE Symposium on Foundations of Computer Science, стр. 367--378. Washington, DC, USA, IEEE Computer Society, (2005)