|
| 1 | +# Extended Age Query |
| 2 | + |
| 3 | +## Query Paths |
| 4 | + |
| 5 | +Table paths from CollectionObject to Absoluteage or GeologicTimePeriod: |
| 6 | +- collectionobject->absoluteage |
| 7 | +- collectionobject->relativeage->chronostrat |
| 8 | +- collectionobject->paleocontext->chronostrat |
| 9 | +- collectionobject->collectionevent->paleocontext->chronostrat |
| 10 | +- collectionobject->collectionevent->locality->paleocontext->chronostrat |
| 11 | + |
| 12 | +Field Paths from CollectionObject to Absoluteage or GeologicTimePeriod: |
| 13 | +- collectionobject__absoluteage__absoluteage |
| 14 | +- collectionobject__relativeage__agename__startperiod |
| 15 | +- collectionobject__relativeage__agename__endperiod |
| 16 | +- collectionobject__relativeage__agenameend__startperiod |
| 17 | +- collectionobject__relativeage__agenameend__endperiod |
| 18 | +- collectionobject__paleocontext__chronosstrat__startperiod |
| 19 | +- collectionobject__paleocontext__chronosstrat__endperiod |
| 20 | +- collectionobject__paleocontext__chronosstratend__startperiod |
| 21 | +- collectionobject__paleocontext__chronosstratend__endperiod |
| 22 | +- collectionobject__collectingevent__paleocontext__chronosstrat__startperiod |
| 23 | +- collectionobject__collectingevent__paleocontext__chronosstrat__endperiod |
| 24 | +- collectionobject__collectingevent__paleocontext__chronosstratend__startperiod |
| 25 | +- collectionobject__collectingevent__paleocontext__chronosstratend__endperiod |
| 26 | +- collectionobject__collectingevent__locality__paleocontext__chronosstrat__startperiod |
| 27 | +- collectionobject__collectingevent__locality__paleocontext__chronosstrat__endperiod |
| 28 | +- collectionobject__collectingevent__locality__paleocontext__chronosstratend__startperiod |
| 29 | +- collectionobject__collectingevent__locality__paleocontext__chronosstratend__endperiod |
| 30 | + |
| 31 | +## Query Logic |
| 32 | + |
| 33 | +Given: |
| 34 | +- an age query start period `x` |
| 35 | +- an age query end period `y` |
| 36 | +- with constraint that `x >= y` |
| 37 | +- for each collection object, a meta start period `a` is decided, and a meta end period `b` is decided. |
| 38 | +- with constraint that `a >= b` |
| 39 | + |
| 40 | +Strict Filter: (full overlap, a-b is within x-y) |
| 41 | +`a <= x` and `b >= y` |
| 42 | + |
| 43 | +Non-Strict Filter: (partial age range overlap, any overlap so x-y can be within a-b or a-b can be within x-y) |
| 44 | +(` a<= x` and `a >= y`) or (`b <= x` and `b >= y`) or (`a >= x` and `b <= y`) |
| 45 | + |
| 46 | +This is omitting the complication of uncertainty values. |
| 47 | + |
| 48 | +The meta age range for each collection object should appear in the age column of the query results. |
| 49 | + |
| 50 | +The "Any" age query bug is being push to a later issue. For now, do a Age Range query from "13800" to "0" to get all COs with age data (query all of time, the age of the universe 😀 |
| 51 | + |
0 commit comments