How do I store tree with ordered children in RDF?
Input:
1. Title 1 Some text 1. 2. Title 2 2.1. Title 2.1 Some text under title 2.1. 2.2. Title 2.2 Some text under title 2.2.
Titles can be arbitrary and not necessarily contain numbering.
How to get back all elements still ordered in one query?
Desired output:
|-----------+----------------------------+ | Title | Content | |-----------+----------------------------+ | Title 1 | Some text under title 1. | | Title 2 | | | Title 2.1 | Some text under title 2.1. | | Title 2.2 | Some text under title 2.2. | |-----------+----------------------------+
EDIT: "Calculate length of path between nodes?" doesn't answer my question. It discusses unordered nodes. My question is specifically about ordered collection (list of lists) and getting back elements in original order.