/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}.
C. Trattner, P. Singer, D. Helic, и M. Strohmaier. Proceedings of the 12th International Conference on Knowledge Management and Knowledge Technologies, стр. 14:1--14:8. New York, NY, USA, ACM, (2012)
P. Berkhin, J. Beche, и D. Randall. Proceedings of the seventh ACM SIGKDD international conference on Knowledge discovery and data mining, стр. 414--419. ACM, (2001)
P. Singer, T. Niebler, M. Strohmaier, и A. Hotho. Proceedings of the 22nd international conference on World Wide Web companion, стр. 171--172. Republic and Canton of Geneva, Switzerland, International World Wide Web Conferences Steering Committee, (2013)