50 likes | 360 Views
PSL Syntax. Syntax 1. Syntax 2. Syntax 3. Syntactic Rules. PSL Syntax. Semantics (Ontology). Semantics Captured in the PSL Ontology. Example: The duration of an activity is the difference between its start and end times for all occurrences of the activity.
E N D
Syntax 1 Syntax 2 Syntax 3 Syntactic Rules PSL Syntax Semantics (Ontology)
Semantics Captured in the PSL Ontology • Example: The duration of an activity is the difference between its start and end times for all occurrences of the activity. (defrelation duration (?a ?d) := (forall (?t1 ?t2) (=> (and (= ?t1 (Beginof ?a)) (= ?t2 (Endof ?a))) (= ?d (time_minus ?t2 ?t1)))))
Syntactic Rules • For a concept named “duration”, there must be at least three attributes: • Start Time • End Time • Activity Occurrence where “Start Time” and “End Time” are of type “Timepoint”. In addition, the duration is the difference in time between the “Start Time” and the “End Time”. • A template approach is also being explored.
EXPRESS ENTITY duration; id: STRING; start_time: timepoint; end_time: timepoint; activity: activity_occurrence: END_ENTITY; XML <!ELEMENT duration> <!ATTLIST duration documentation ID start_time IDREF #REQUIRED end_time IDREF #REQUIRED activity IDREF #REQUIRED> Various Syntaxes Conforming to the Rules