Building Ontologies
Define properties that connect instances of different classes. Consider: What stops where? What operates what? What is located in what zone?
Think about rules that must hold in the transport domain. What cannot happen? What must always be true?
↑ You've already specified cardinalities in task (b). Make sure each relation has the correct cardinality selected!
| Relation | Domain → Range | Description | Cardinality |
|---|---|---|---|
stopsAt |
TransportService → Location | A transport line stops at one or more locations | N:M |
operatedBy |
TransportService → Operator | A transport service is operated by a company | N:1 |
inZone |
Location → FareZone | A location is situated in a fare zone | N:1 |
hasFeature |
Location → AccessibilityFeature | A location has accessibility features | N:M |
connectsTo |
Location → Location | Direct connection between two locations | N:M |
boardsAt |
Passenger → Location | A passenger boards at a location | N:M |
uses |
Passenger → TransportService | A passenger uses a transport service | N:M |
adjacentTo |
FareZone → FareZone | Two fare zones are adjacent for pricing | N:M |