Ontology for the representation of fares elements in the Trias ontology
type: Ontology
version IRI: https://w3id.org/mobility/trias/fares/0.1.0
imports: https://w3id.org/mobility/trias/utility/0.1
license: 2022-03-22
creator: Jhon Toledo (Ontology Engienering Group - Universidad Politécnica de Madrid)
creator: Miguel Angel García (Ontology Engienering Group - Universidad Politécnica de Madrid
creator: Oscar Corcho (Ontology Engineering Group - Universidad Politécnica de Madrid)
description: Trias - Travellor Realtime Information and Advisory Standard
rights: Creative Commons Attribution 4.0 International (CC BY 4.0)
license: http://creativecommons.org/licenses/by/4.0/

bookingAgencyName
type: ObjectProperty
domain: BookingInfo
range: InternationalText
comment: Property related to the name of a booking agency.

hasBookingInfo
type: ObjectProperty
domain: Ticket
range: BookingInfo
comment: Description of booking options.

hasErrorMessage
type: ObjectProperty
domain: Class
  union of: FaresResponse
  union of: TripFaresResult
range: ErrorMessage

hasFareZone
type: ObjectProperty
sub property of: topObjectProperty
domain: FareZoneListInArea
range: FareZone
comment: This property represent one or more tariff zones.

hasFaresResult
type: ObjectProperty
domain: FaresResponse
range: TripFaresResult

hasMultiTripFaresResult
type: ObjectProperty
domain: MultiTripFares
range: MultiTripFaresResult

hasParams
type: ObjectProperty
comment: Parameter to filter the response contents.

hasStaticFaresResult
type: ObjectProperty
domain: StaticFares
range: StaticFaresResult

hasStaticInfoUrl
type: ObjectProperty
domain: TripFaresResult
type: DatatypeProperty
range: WebLink
comment: URL for information pages.

hasStopFaresResult
type: ObjectProperty
domain: StopFares
range: StopFaresResult

hasTariffLevelLabel
type: ObjectProperty
domain: Ticket
range: InternationalText
comment: Name for tariff levels in this context (example from Nürnberg “price level”, “tariff level”)

hasTicket
type: ObjectProperty
domain: TripFaresResult
range: Ticket
comment: Reference to tickets which are valid on this section of the trip.

hasTraveller
type: ObjectProperty

hasTrip
type: ObjectProperty
domain: TripFaresRequest
range: Trip
comment: A complete trip from origin to destination

hasTripFaresResult
type: ObjectProperty
domain: TripFares
range: TripFaresResult

hasValidityFareZones
type: ObjectProperty
domain: Ticket
range: FareZoneListInArea
comment: Geographic validity of the ticket stated with the help of a list of tariff zones, for which the ticket is valid.

infoUrl
type: ObjectProperty
domain: BookingInfo
domain: Ticket
type: DatatypeProperty
range: string
range: WebLink
comment: URL for information pages.

This property shows if there are traversed tariff zones on this section of the trip.
type: ObjectProperty
domain: TripFaresResult
range: FareZoneListInArea
label: passedZones

saleUrl
type: ObjectProperty
domain: Ticket
type: DatatypeProperty
range: WebLink
comment: URL for online purchase options in order to purchase this ticket .

validityAreaText
type: ObjectProperty
domain: Ticket
range: InternationalText
comment: Description of validity zone.

validityDurationText
type: ObjectProperty
domain: Ticket
range: InternationalText
comment: Description of validity duration.

identifier
type: DatatypeProperty
range: string
comment: An unambiguous reference to the resource within a given context.

bookingDeadline
type: DatatypeProperty
domain: BookingInfo
range: dateTime
comment: Minimum waiting time for booking before the journey begins.

bookingUrl
type: DatatypeProperty
domain: BookingInfo
range: string
comment: URL for online-booking.

currency
type: DatatypeProperty
domain: Ticket
range: string
comment: Currency code as per ISO 4217, e.g. “EUR” or “GBP”.

date
type: DatatypeProperty
domain: StopFaresRequest
range: dateTime
comment: Date for which to retrieve fares information.

fareAuthorityFilter
type: DatatypeProperty
sub property of: fareParam
comment: Fare authority for which to retrieve fares information.

fareZoneRef
type: DatatypeProperty
domain: FareZone
range: string
comment: Code for a tariff zone.

Name of tariff zone for passengers.
type: DatatypeProperty
domain: FareZone
range: string
label: fareZoneText

faresAuthorityRef
type: DatatypeProperty
domain: FareZoneListInArea
range: string
comment: Code for a fare authority or a company fare.

faresAuthorityText
type: DatatypeProperty
domain: FareZoneListInArea
domain: Ticket
range: string
comment: Description or name of fare authority.
comment: Textual description or name of fares authority.

fromTripIdRef
type: DatatypeProperty
domain: TripTicketReference
range: string
comment: Identifies the "valid from" trip.

fromTripLegIdRef
type: DatatypeProperty
domain: TripFaresResult
range: string
comment: Identifies the "valid from" trip leg.

netPrice
type: DatatypeProperty
domain: Ticket
range: float
comment: Net ticket price as decimal number for calculation purposes.

passengerCategory
type: DatatypeProperty
sub property of: fareParam
comment: Passenger categories for which to retrieve fares information.

phoneNumber
type: DatatypeProperty
domain: BookingInfo
range: string
comment: Telephone number for booking.

price
type: DatatypeProperty
domain: Ticket
range: float
comment: Net ticket price as decimal number for calculation purposes.

stopPointRef
type: DatatypeProperty
domain: StopFaresRequest
range: string

tariffLevel
type: DatatypeProperty
domain: Ticket
range: string
comment: Tariff level (example from Nürnberg “10” or “10+T”).

ticketName
type: DatatypeProperty
range: string
comment: Name of ticket.

ticketRef
type: DatatypeProperty

toTripIdRef
type: DatatypeProperty
domain: TripTicketReference
range: string
comment: Identifies the "valid to" trip.

toTripLegIdRef
type: DatatypeProperty
domain: TripFaresResult
range: string
comment: Identifies the "valid to" trip leg.

travelClass
type: DatatypeProperty
sub property of: fareParam
comment: Travel class for which to retrieve tickets.

travellerCard
type: DatatypeProperty
domain: FaresPassenger
range: string
comment: Traveller card that the passenger can make use of.

validityDuration
type: DatatypeProperty
domain: Ticket
range: string
comment: Maximum validity duration of the ticket after purchase or validation.

BookingInfo
type: Class
subclass of: Restriction
  on property: bookingAgencyName
  some values from: InternationalText
subclass of: Restriction
  on property: bookingDeadline
  max qualified cardinality: 1
  on data range: dateTime
subclass of: Restriction
  on property: bookingUrl
  max qualified cardinality: 1
  on data range: string
subclass of: Restriction
  on property: infoUrl
  max qualified cardinality: 1
  on data range: string
subclass of: Restriction
  on property: phoneNumber
  max qualified cardinality: 1
  on data range: string
comment: Information of a booking opportunity.

FareZone
type: Class
subclass of: Restriction
  on property: fareZoneRef
  qualified cardinality: 1
  on data range: string
subclass of: Restriction
  on property: Name of tariff zone for passengers.
  qualified cardinality: 1
  on data range: string
comment: Model of a fare zone.

FareZoneListInArea
type: Class
subclass of: Restriction
  on property: hasFareZone
  min qualified cardinality: 1
  on class: FareZone
subclass of: Restriction
  on property: faresAuthorityRef
  qualified cardinality: 1
  on data range: string
subclass of: Restriction
  on property: faresAuthorityText
  qualified cardinality: 1
  on data range: string
comment: List of fare zones within the area of a Fares Authority.

FaresParam
type: Class
subclass of: Restriction
  on property: hasTraveller
  some values from: FaresPassenger
subclass of: Restriction
  on property: fareAuthorityFilter
  max qualified cardinality: 1
  on data range: string
subclass of: Restriction
  on property: passengerCategory
  max qualified cardinality: 1
  on data range: string
subclass of: Restriction
  on property: travelClass
  max qualified cardinality: 1
  on data range: string
comment: Parameters for fares request.

FaresPassenger
type: Class
subclass of: Restriction
  on property: age
  qualified cardinality: 1
  on data range: string
subclass of: Restriction
  on property: travellerCard
  max qualified cardinality: 1
  on data range: string
comment: Structure of a passenger profile for fares calculation.

FaresRequest
type: Class
subclass of: Restriction
  on property: hasParams
  max qualified cardinality: 1
  on class: FaresParam
comment: Fares request structure.

FaresResponse
type: Class
subclass of: Restriction
  on property: hasErrorMessage
  some values from: ErrorMessage
subclass of: Restriction
  on property: hasFaresResult
  some values from: FaresResult
comment: Fares response element.

FaresResult
type: Class
subclass of: Restriction
  on property: identifier
  qualified cardinality: 1
  on data range: string
comment: Wrapper element for fares results.

MultiTripFares
type: Class
subclass of: FaresResult
subclass of: Restriction
  on property: hasMultiTripFaresResult
  min qualified cardinality: 1
  on class: MultiTripFaresResult
comment: Structure of a Multi Trip Fares Request result

MultiTripFaresRequest
type: Class
subclass of: FaresRequest
subclass of: Restriction
  on property: hasTrip
  min qualified cardinality: 1
  on class: Trip
comment: Structure of a Multi Trip Fares Request.

MultiTripFaresResult
type: Class
subclass of: Restriction
  on property: hasErrorMessage
  some values from: ErrorMessage
subclass of: Restriction
  on property: hasTicket
  some values from: Ticket
subclass of: Restriction
  on property: This property shows if there are traversed tariff zones on this section of the trip.
  max qualified cardinality: 1
  on class: FareZoneListInArea
subclass of: Restriction
  on property: hasStaticInfoUrl
  some values from: WebLink
comment: Fares and tickets for multiple trips.

StaticFares
type: Class
subclass of: FaresResult
subclass of: Restriction
  on property: hasStaticFaresResult
  qualified cardinality: 1
  on class: StaticFaresResult

StaticFaresRequest
type: Class
subclass of: FaresRequest
subclass of: Restriction
  on property: ticketRef
  some values from: string
subclass of: Restriction
  on property: date
  max qualified cardinality: 1
  on data range: dateTime
comment: General fares information. May depend on date.

StaticFaresResult
type: Class
subclass of: Restriction
  on property: hasTicket
  some values from: Ticket
subclass of: Restriction
  on property: hasStaticInfoUrl
  some values from: WebLink
comment: General fares information.

StopFares
type: Class
subclass of: FaresResult
subclass of: Restriction
  on property: hasStopFaresResult
  qualified cardinality: 1
  on class: StopFaresResult

StopFaresRequest
type: Class
subclass of: FaresRequest
subclass of: Restriction
  on property: stopPointRef
  qualified cardinality: 1
  on data range: string
subclass of: Restriction
  on property: date
  max qualified cardinality: 1
  on data range: dateTime
comment: Sub-request: stop-related fare information.

StopFaresResult
type: Class
subclass of: Restriction
  on property: hasFareZoneListInArea
  min qualified cardinality: 1
  on class: FareZoneListInArea
comment: Stop-related fares information.

Ticket
type: Class
subclass of: Restriction
  on property: hasBookingInfo
  some values from: BookingInfo
subclass of: Restriction
  on property: hasTariffLevelLabel
  some values from: InternationalText
subclass of: Restriction
  on property: hasValidityFareZones
  some values from: FareZoneListInArea
subclass of: Restriction
  on property: validityAreaText
  some values from: InternationalText
subclass of: Restriction
  on property: validityDurationText
  some values from: InternationalText
subclass of: Restriction
  on property: infoUrl
  some values from: WebLink
subclass of: Restriction
  on property: saleUrl
  some values from: WebLink
subclass of: Restriction
  on property: identifier
  qualified cardinality: 1
  on data range: string
subclass of: Restriction
  on property: faresAuthorityRef
  qualified cardinality: 1
  on data range: string
subclass of: Restriction
  on property: faresAuthorityText
  qualified cardinality: 1
  on data range: string
subclass of: Restriction
  on property: ticketName
  qualified cardinality: 1
  on data range: string
subclass of: Restriction
  on property: currency
  max qualified cardinality: 1
  on data range: string
subclass of: Restriction
  on property: price
  max qualified cardinality: 1
  on data range: string
subclass of: Restriction
  on property: tariffLevel
  max qualified cardinality: 1
  on data range: string
subclass of: Restriction
  on property: validityDuration
  max qualified cardinality: 1
  on data range: string
comment: Ticket and associated information.

TripFares
type: Class
subclass of: FaresResult
subclass of: Restriction
  on property: hasTripFaresResult
  min qualified cardinality: 1
  on class: TripFaresResult

TripFaresRequest
type: Class
subclass of: FaresRequest
subclass of: Restriction
  on property: hasTrip
  qualified cardinality: 1
  on class: Trip
comment: Structure of a Single Trip Fares Request.

TripFaresResult
type: Class
subclass of: Restriction
  on property: hasErrorMessage
  some values from: ErrorMessage
subclass of: Restriction
  on property: hasTicket
  some values from: Ticket
subclass of: Restriction
  on property: This property shows if there are traversed tariff zones on this section of the trip.
  max qualified cardinality: 1
  on class: FareZoneListInArea
subclass of: Restriction
  on property: hasStaticInfoUrl
  some values from: WebLink
subclass of: Restriction
  on property: fromTripLegIdRef
  qualified cardinality: 1
  on data range: string
subclass of: Restriction
  on property: toTripLegIdRef
  qualified cardinality: 1
  on data range: string
comment: Structure of a Single Trip Fare Request result.

TripTicketReference
type: Class
subclass of: Restriction
  on property: fromTripIdRef
  qualified cardinality: 1
  on data range: string
subclass of: Restriction
  on property: ticketRef
  qualified cardinality: 1
  on data range: string
subclass of: Restriction
  on property: toTripIdRef
  qualified cardinality: 1
  on data range: string
subclass of: Restriction
  on property: toTripLegIdRef
  qualified cardinality: 1
  on data range: string
subclass of: Restriction
  on property: fromTripLegIdRef
  max qualified cardinality: 1
  on data range: string
comment: Element that connects tickets to trips.