Skip to content

Latest commit

 

History

History
52 lines (32 loc) · 880 Bytes

design-notes.md

File metadata and controls

52 lines (32 loc) · 880 Bytes

For Corpus objects:

URN filtering

see notes on >, >=, <, <=, ~~ and ><

Containment hierarchy

  • versions(u: CtsUrn): Set[CtsUrn]
  • exemplars(u: CtsUrn): Set[CtsUrn]

URN Topology of passages

  • define class RangeIndex (a: Int, b: Int)
  • indexPoint returns an Integer for a leaf node CtsUrn
  • indexRange returns a RangeIndex

Possible relations:

enum or the like with :

  • equals
  • precedes/follows
  • contains/containedBy
  • precedesAndOverlaps/overlapsAndPrecededBy
  • overlapsAndFollows/overlapsAndFollowedBy

Urn-Urn pairings:

Point-Point can yield

  • equals
  • precedes/follows
  • contains/containedBy

Point-Range can yield :

  • equals
  • precedes/follows
  • contains/containedBy

Range-Range can yield:

  • equals
  • precedes/follows
  • contains/containedBy
  • precedesAndOverlaps/overlapsAndPrecededBy
  • overlapsAndFollows/overlapsAndFollowedBy