2/12/01 Professor Richard Fikes Representing Time Computer Science Department Stanford University CS222 Winter 2001 Knowledge Systems Laboratory, Stanford.

Slides:



Advertisements
Similar presentations
C HAPTER Elasticity of Demand and Supply price elasticities of demand and supply, income and cross elasticities of demand, and using elasticity to forecast.
Advertisements

Days Months January Monday February Tuesday March Wednesday April
STATISTICS POINT ESTIMATION Professor Ke-Sheng Cheng Department of Bioenvironmental Systems Engineering National Taiwan University.
STATISTICS Univariate Distributions
STATISTICS Random Variables and Distribution Functions
1/31/01 Professor Richard Fikes Frame Representation of Electronic Circuit Example Computer Science Department Stanford University CS222 Winter 2001 Knowledge.
2/7/01 Professor Richard Fikes Example of Multi-Use Ontology: Units and Measures Computer Science Department Stanford University CS222 Winter 2001 Knowledge.
1-1 Sets of Numbers Warm Up Lesson Presentation Lesson Quiz
2/13/2014Bucknell University1 Health Care Issues BOF Cindy Bilger,
Tuesday, May 7 Integer Programming Formulations Handouts: Lecture Notes.
T. S. Eugene Ng Mellon University1 Towards Global Network Positioning T. S. Eugene Ng and Hui Zhang Department of Computer.
Understanding ISO 8601 date and time representation formats Tex Texin Director, International Business Progress Software Corporation.
10 Copyright © 2005, Oracle. All rights reserved. Dimensions.
BUS 220: ELEMENTARY STATISTICS
Measurements and Their Uncertainty 3.1
The 24-hour clock 1 12-hour clock 24-hour clock
Calendar.
Year End T&L and Leave Processing December 9, 2004 SSW Auditorium Presented by Susan Beckerman.
Learn all about the year.
Inventory BA 339 Mellie Pullman
1 STABILITY OF SWITCHED SYSTEMS Daniel Liberzon Coordinated Science Laboratory and Dept. of Electrical & Computer Eng., Univ. of Illinois at Urbana-Champaign.
Understanding ISO 8601 date and time representation formats Tex Texin XenCraft.
Measuring Time. Learning Goals To measure time, we start counting units of time when the activity begins and stop counting when the activity ends. The.
1 1 Slide Chapter 1 & Lecture Slide Body of Knowledge n Management science Is an approach to decision making based on the scientific method Is.
Automatic Tuning of Scientific Applications Apan Qasem Ken Kennedy Rice University Houston, TX Apan Qasem Ken Kennedy Rice University Houston, TX.
Herodotos Herodotou Shivnath Babu Duke University.
1 Project 2: Stock Option Pricing. 2 Business Background Bonds & Stocks – to raise Capital When a company sell a Bond - borrows money from the investor.
Chapter 15 Complex Numbers
Presentation II #2 Graphic (Re)presentations.
VOORBLAD.
Ningning HuCarnegie Mellon University1 Towards Tunable Measurement Techniques for Available Bandwidth Ningning Hu, Peter Steenkiste Carnegie Mellon University.
Best PracticesUSCA Fall 2010: Baylor University3.
Measurements and Their Uncertainty 3.1
Hydrologic Statistics Reading: Chapter 11, Sections 12-1 and 12-2 of Applied Hydrology 04/04/2006.
8th Sakai Conference4-7 December 2007 Newport Beach Podcasting Initiatives at Indiana University.
Chapter 1 Linear Equations and Linear Functions.
We are learning how to read the 24 hour clock
9th October 2003James Loken – Oxford University1 SCT X-ray Alignment Software A First Look.
2 nd Language Teachers Calculation of Earnings for EI Purposes.
Rob Walker, May 2008Student Learning Unit Victoria University1 Essay Writing A workshop for ASW 3102: Critical Social Work Theories.
RMIT University1 Southern United H.C. Coaching Workshop Nov 2007 Welcome Stop, Reflect and Grow.
Identifying Novice Difficulties in Object Oriented Design Benjy Thomasson Mark Ratcliffe Lynda Thomas Aberystwyth University, Wales, UK.
Ordinal Numbers 1st----first 6th---sixth 2nd---second 7th---seventh
Days, Months, Dates, and Ordinal Numbers
Grade 2 Created by; Kim Smith
August 2014 PART TIME COMPENSATION AND CLASSIFICATION PROCESS Module 1 Policies and Procedures.
An Introduction to eXtreme Programming Michael L. Collard, Ph.D. Department of Computer Science Kent State University.
25 seconds left…...
Copyright © Cengage Learning. All rights reserved.
We will resume in: 25 Minutes.
©Brooks/Cole, 2001 Chapter 12 Derived Types-- Enumerated, Structure and Union.
Mathematics1 Mathematics 1 Applied Informatics Štefan BEREŽNÝ.
Lial/Hungerford/Holcomb/Mullins: Mathematics with Applications 11e Finite Mathematics with Applications 11e Copyright ©2015 Pearson Education, Inc. All.
Fourth Quarter Oklahoma Data (October-December 2011)
Weekly Attendance by Class w/e 6 th September 2013.
Spatial Views: Space-aware Programming for Networks of Embedded Systems Yang Ni, Ulrich Kremer, and Liviu Iftode Rutgers University This work has been.
1 Functions and Applications
1 Abstract Class and Packages from Chapter 9 Lecture.
Benoit Pigneur and Kartik Ariyur School of Mechanical Engineering Purdue University June 2013 Inexpensive Sensing For Full State Estimation of Spacecraft.
6.3 Vectors in the Plane Many quantities in geometry and physics, such as area, time, and temperature, can be represented by a single real number. Other.
Chapter 1 Linear Equations and Linear Functions.
Intra-HE transition workshop A focus on expectations, disclosure, retention and progression 11/04/2015Transition at University1.
CS240A: Databases and Knowledge Bases Time Ontology and Representations Carlo Zaniolo Department of Computer Science University of California, Los Angeles.
12/2/98 Prof. Richard Fikes Representing Time Computer Science Department Stanford University CS222 Fall 1998.
CS240A: Databases and Knowledge Bases Time Ontology and Representations Carlo Zaniolo Department of Computer Science University of California, Los Angeles.
Faculty Richard Fikes Edward Feigenbau (Director) (Emeritus) Knowledge Systems Laboratory Stanford University “In the knowledge is the power.” Senior Scientists.
Presentation transcript:

2/12/01 Professor Richard Fikes Representing Time Computer Science Department Stanford University CS222 Winter 2001 Knowledge Systems Laboratory, Stanford University

2 About Time A physical dimension (the Time-Dimension) Time plenum Large temporal space in which all events are located E.g., time line temporally possible worlds èAssume time is continuous and linear >Time line analogous to continuous number line Duration An amount of time E.g., a century 25 minutes as long as it takes for the kettle to boil

Knowledge Systems Laboratory, Stanford University3 Points and Intervals Time point Time point Position on a temporal coordinate system E.g., 2:22 p.m., February 2, 2000 Primitive object Analogous to a real number Also represented at varying granularities E.g., March 14, 1994 Time interval Time interval Set of two or more time points E.g., the 16th century 10:50 to 11:00 a.m. on May 30, 1993 noon to 1:00 p.m. every Tuesday in 2000 Primitive object Convex interval Convex interval analogous to interval on number line Has two distinguished points: Start-Point and End-Point Can be Left-Open, Left-Closed, Right-Open, and/or Right-Closed

Knowledge Systems Laboratory, Stanford University4 Class Hierarchy of Time Ontology Calendar- January... Time-Point Time-Interval Convex-Time-Interval Regular- Non-Convex -Time-Interval Time- Interval- Left-Open Time- Interval- Right-Open Time- Interval- Right-Closed Time- Interval- Left-Open- Right-Open Time- Interval- Left- Closed- Right- Closed Time- Interval- Left-Open- Right-Open Time- Interval-Left- Closed-Right- Closed Calendar-MonthCalendar-Day Non-Convex-Time- Interval Calendar- Sunday Calendar- Saturday Calendar-Day- 1 Calendar-Day- 31 Calendar- December Time-Quantity Time- Interval- Left-Closed

Knowledge Systems Laboratory, Stanford University5 Class Frame Time-Point Time-Point Subclass-Of: Thing *Location-Of Maximum-Cardinality: 1 Value-Type: Time-Quantity *Year-Of Maximum-Cardinality: 1 Value-Type: Integer *Month-Of Maximum-Cardinality: 1 Value-Type: Calendar-Month-Type *Day-Of Maximum-Cardinality: 1 Value-Type: Calendar-Day-Type *Week-Day-Of Maximum-Cardinality: 1 Value-Type: Calendar-Week-Day-Type *Hour-Of Maximum-Cardinality: 1 Value-Type: Integer *Minute-Of Maximum-Cardinality: 1 Value-Type: Integer *Second-Of Maximum-Cardinality: 1 Value-Type: Integer *Granularity-Of Slot-Cardinality: 1 Value-Type: Time-Granularity

Knowledge Systems Laboratory, Stanford University6 Location of Time Points Location-Of Function Location-Of Amount of time from point zero to the time-point Value is a time quantity (i.e., a duration) Point zero assumed to be midnight Jan 1, 1900 Midnight-January Instance-Of: Time-Point Location-Of: Time-Instant Time-Instant Instance-Of: Time-Quantity (=> (Time-Unit ?u) (Quantity-Magnitude Time-Instant ?u 0))

Knowledge Systems Laboratory, Stanford University7 Year-Of, Month-Of, Day-Of, etc. Derivable from Location-Of Year-OfHour-OfMinute-OfSecond-Of Value of Year-Of, Hour-Of, Minute-Of, & Second-Of is an integer (=> (Time-Point ?p) (= (Year-Of ?p) (+ (LINLT (Quantity-Magnitude (Location-Of ?p) Year-Unit)) 1900))) (=> (Time-Point ?p) (= (Hour-Of ?p) (Mod (LINLT (Quantity-Magnitude (Location-Of ?p) Hour-Unit)) 24))) [Note: LINLT means Largest Integer Less Than.] Month-Of Value of Month-Of is a Calendar-Month-Type Calendar-Month-Type is a class whose instances are the 12 subclasses of Calendar-Month (e.g., Calendar-January) Day-Of Value of Day-Of is a Calendar-Day-Type Calendar-Day-Type is a class whose 31 instances are classes Calendar-Day-1 through Calendar-Day-31 Week-Day-Of Value of Week-Day-Of is a Calendar-Week-Day-Type

Knowledge Systems Laboratory, Stanford University8 Binary Relations on Time-Points BeforeAfterEqual-Point Before, After, Equal-Point Defined in terms of Location-Of (=> (and (Time-Point ?i) (Time-Point ?j)) ( (Before ?i ?j)... (< (Location-Of ?i) (Location-Of ?j))... ) (=> (Physical-Quantity ?q1) (Physical-Dimension ?q1 ?d) (Physical-Quantity ?q2) (Physical-Dimension ?q2 ?d) (Unit-Of-Measure ?u) (Unit-Dimension ?u ?d) ( (< ?q1 ?q2) (< (Quantity-Magnitude ?q1 ?u) (Quantity-Magnitude ?q2 ?u)))) Point-In-Interval Point-In-Interval Primitive relation

Knowledge Systems Laboratory, Stanford University9 Class Frame Time-Interval Time-Interval Instance-Of: Class *Starting-Point: Value-Type: Time-Point Slot-Cardinality: 1 *Ending-Point: Value-Type: Time-Point Slot-Cardinality: (=> (Time-Interval ?i) (and (Before (Starting-Point ?i) (Ending-Point ?i)) (=> (Time-Point ?p) (and (=> (Before ?p (Starting-Point ?i)) (not (Point-In-Interval ?p ?i))) (=> (Before (Ending-Point ?i) ?p) (not (Point-In-Interval ?p ?i)))))))

Knowledge Systems Laboratory, Stanford University10 Functions on Time-Interval Starting-PointEnding-Point Starting-Point and Ending-Point (=> (and (Time-Point ?s) (Time-Interval ?i)) ( (Starting-Point ?i ?s) (and (not (exists ?j (and (Time-Point ?j) (Before ?j ?s) (Point-In-Interval ?j ?i)))) (=> (Time-Point ?p) (not (exists ?k (and (Time-Point ?k) (Before ?k ?p) (Point-In-Interval ?k ?i)))) (or (Equal-Point ?p ?s) (Before ?p ?s))))))) Duration Duration Convex time interval >Time quantity whose magnitude is the difference between the location of the intervals ending point and starting point Non-convex time interval >Sum of durations of all convex time intervals contained in it

Knowledge Systems Laboratory, Stanford University11 Relations on Time-Interval James Allen defined a complete set of relations on time intervals Precedes: ||End-1 < Start-2 || Meets: ||End-1 = Start-2 || Overlaps: ||Start-1 < Start-2 < End-1 || Costarts:||Start-1 = Start-2 || During: ||Start-2 < Start-1 ||End-1 < End-2 Cofinishes:||End-1 = End-2 || Equal

Knowledge Systems Laboratory, Stanford University12 Using the Interval Relations The reign of George VI preceded that of Elizabeth II. (Precedes (ReignOf GeorgeVI) (ReignOf ElizabethII)) The reign of Elvis overlapped with the 1950s. (Starting-Point Fifties (Starting-Point AD1950)) (Ending-Point Fifties (Ending-Point AD1959)) (Overlaps Fifties (ReignOf Elvis))

Knowledge Systems Laboratory, Stanford University13 A Week in January (and (Subclass-Of Week-In-January Convex-Time-Interval) (=> (Week-In-January ?w) (and (Duration ?w (The-Quantity Day 7)) (exists ?j (and (Calendar-January ?j) (or (During ?w ?j) (Costarts ?w ?j) (Cofinishes ?w ?j)))))))

Knowledge Systems Laboratory, Stanford University14 Class Hierarchy of Time Ontology Calendar- January... Time-Point Time-Interval Convex-Time-Interval Regular- Non-Convex -Time-Interval Time- Interval- Left-Open Time- Interval- Right-Open Time- Interval- Right-Closed Time- Interval- Left-Open- Right-Open Time- Interval- Left- Closed- Right- Closed Time- Interval- Left-Open- Right-Open Time- Interval-Left- Closed-Right- Closed Calendar-MonthCalendar-Day Non-Convex-Time- Interval Calendar- Sunday Calendar- Saturday Calendar-Day- 1 Calendar-Day- 31 Calendar- December Time-Quantity Time- Interval- Left-Closed

Knowledge Systems Laboratory, Stanford University15 Infinity and Density Infinite-PastInfinite-Future Infinite-Past and Infinite-Future are time points (and (Time-Point Infinite-Past) (=> (Time-Point ?p) (not (Before ?p Infinite-Past)))) The time line is considered to be dense (=> (and (Time-Point ?i) (Time-Point ?j) (Before ?i ?j)) (exists ?k (and (Before ?i ?k) (Before ?k ?j))))

Knowledge Systems Laboratory, Stanford University16 Class Frame Time-Point Time-Point Subclass-Of: Thing *Location-Of Maximum-Cardinality: 1 Value-Type: Time-Quantity *Year-Of Maximum-Cardinality: 1 Value-Type: Integer *Month-Of Maximum-Cardinality: 1 Value-Type: Calendar-Month-Type *Day-Of Maximum-Cardinality: 1 Value-Type: Calendar-Day-Type *Week-Day-Of Maximum-Cardinality: 1 Value-Type: Calendar-Week-Day-Type *Hour-Of Maximum-Cardinality: 1 Value-Type: Integer *Minute-Of Maximum-Cardinality: 1 Value-Type: Integer *Second-Of Maximum-Cardinality: 1 Value-Type: Integer *Granularity-Of Slot-Cardinality: 1 Value-Type: Time-Granularity

Knowledge Systems Laboratory, Stanford University17 Time Granularity Time cannot be measured with infinite accuracy Need a notion of abstracted time points E.g., 1984, May-1927, 12:50 p.m. February 14, 2000 Time intervals are not sufficient Specify a granularity for a time point Provides for uncertainty that a point occurs somewhere in a certain time interval E.g., The time point 1984 at granularity year occurs somewhere during the convex interval 1984

Knowledge Systems Laboratory, Stanford University18 Time Granularity Time-Granularity Subclass-Of: Thing *Time-Unit-Of Value-Type: Time-Unit Max-Cardinality: 1 Year-Granularity Instance-Of: Time-Granularity Time-Unit-Of: Year Infinitely-Fine-Granularity Instance-Of: Time-Granularity Time-Unit-Of: Slot-Cardinality: 0

Knowledge Systems Laboratory, Stanford University19Equal-Point ( (Equal-Point ?i ?j) (or (and (Granularity-Of ?i Infinitely-Fine-Granularity) (Granularity-Of ?j Infinitely-Fine-Granularity) (= (Location-Of ?i) (Location-Of ?j))) (and (Granularity-Of ?i ?gran) (Granularity-Of ?j ?gran) (= (LINLT (Quantity-Magnitude (Location-Of ?i) (Time-Unit-Of ?gran))) (LINLT (Quantity-Magnitude (Location-Of ?j) (Time-Unit-Of ?gran))))))) Two time points on two different levels of granularity cannot be said to be equal to each other

Knowledge Systems Laboratory, Stanford University20 Full Definition of Before (=> (and (Time-Point ?i) (Time-Point ?j)) ( (Before ?i ?j) (or (and (Granularity-Of ?i Infinitely-Fine-Granularity) (Granularity-Of ?j Infinitely-Fine-Granularity) (< (Location-Of ?i) (Location-Of ?j))) (and (Granularity-Of ?i Infinitely-Fine-Granularity) (Granularity-Of ?j ?gran-j) (< (Location-Of ?i) (The-Quantity (LINLT (Quantity-Magnitude (Location-Of ?j) (Time-Unit-Of ?gran-j))) (Time-Unit-Of ?gran-j))))... (and (Granularity-Of ?i ?gran-i) (Granularity-Of ?j ?gran-j) (< (The-Quantity (SINLT (Quantity-Magnitude (Location-Of ?i) (Time-Unit-Of ?gran-i))) (Time-Unit-Of ?gran-i)) (The-Quantity (LINLT (Quantity-Magnitude (Location-Of ?j) (Time-Unit-Of ?gran-j))) (Time-Unit-Of ?gran-j)))))))

Knowledge Systems Laboratory, Stanford University21 Styles of Temporal Representations Timeless Quantification Functions and relations have a time argument E.g., (Married Joe Anne 1993) >Situation calculus Objects have time intervals associated with them E.g., (contains (time-of (Marriage Joe Anne)) 1993) Sentences hold true at times E.g., (holds (Married Joe Anne) 1993) Tense logics E.g., (F (Married Joe Anne)) (F (and (not (Married Joe Anne)) (P (Married Joe Anne))))