Network Working Group | M. Douglass |
Internet-Draft | Spherical Cow Group |
Updates: 5545 (if approved) | October 11, 2017 |
Intended status: Standards Track | |
Expires: April 14, 2018 |
Support for iCalendar Relationships
draft-ietf-calext-ical-relations-03
This specification updates RELATED-TO defined in [RFC5545] and introduces new iCalendar properties LINK, CONCEPT and REFID to allow better linking and grouping of iCalendar components and related data.
This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79.
Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet-Drafts is at https://datatracker.ietf.org/drafts/current/.
Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress."
This Internet-Draft will expire on April 14, 2018.
Copyright (c) 2017 IETF Trust and the persons identified as the document authors. All rights reserved.
This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document. Code Components extracted from this document must include Simplified BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Simplified BSD License.
iCalendar entities often need to be related to each other or to associated meta-data. These relationships can take the following forms
The currently existing iCalendar [RFC5545] RELATED-TO property has no support for temporal relationships as used by standard project management tools.
The RELTYPE parameter is extended to take new values defining temporal relationships, a GAP parameter is defined to provide lead and lag values and RELATED-TO is extended to allow URI values. These changes allow the RELATED-TO property to define a richer set of relationships useful for project management.
This specification defines a new REFID property which allows arbitrary groups of entities to be associated with the same key value.
REFID is used to identify a key allowing the association of tasks that are related to the same object and retrieval of a task based on this key. This may be, for example, to identify the tasks associated with a given project without having to communicate the task structure of the project, or, for example, in a package delivery system all tasks associated to a specific package.
As such, the presence of a REFID property imparts no meaning to the event. It is merely a key to allow retrieval. This is distinct from categorisation which, while allowing grouping also adds meaning to the entity to which it is attached.
The name CONCEPT is used by the Simple Knowledge Organization System defined in [W3C.CR-skos-reference-20090317]. This more accurately defines what we mean by a catgeory. It's not the words but the meaning.
The introduction of CONCEPT allows a more structured approach to categorization, with the possibility of namespaced and path-like values. Unlike REFID the CONCEPT property imparts some meaning. It is assumed that the value of this property will reference a well defined category.
The current [RFC5545] CATEGORY property is used as a free form 'tagging' field. As such it is difficult to establish formal relationships between components based on their category.
Rather than attempt to add semantics to the current property it seeems best to continue its usage as an informal tag and establish a new property with more constraints.
The currently existing iCalendar standard [RFC5545] lacks a general purpose method for referencing additional, external information relating to calendar components.
This document proposes a method for referencing typed external information that can provide additional information about an iCalendar component. This new LINK property is closely aligned to the LINK header defined in [RFC5988]
The LINK property defines a typed reference or relation to external meta-data or related resources. By providing type and format information as parameters, clients and servers are able to discover interesting references and make use of them, perhaps for indexing or the presentation of interesting links for the user.
It is often necessary to relate calendar components. The current RELATED-TO property only allows for a UID which is inadequate for many purposes. Allowing other types may help but might raise a number of backward compatibility issues. The link property can link components in different collections or even on different servers.
When publishing events it is useful to be able to refer back to the source of that information. The actual event may have been consumed from a feed or an ics file on a web site. A LINK property can provide a reference to the originator of the event.
Beyond the need to relate elements temporally, project management tools often need to be able to specify the relationships between the various events and tasks which make up a project. The LINK property provides such a mechanism.
The LINK property SHOULD NOT be treated as just another attachment. The ATTACH property is being extended to handle server-side management and stripping of inline data. Clients may choose to handle attachments differently as they are often an integral part of the message - for example, the agenda. See [I-D.daboo-caldav-attachments]
To facilitate offline display the link type may identify important pieces of data which should be downloaded in advance.
In general, the calendar entity should be self explanatory without the need to download referenced meta-data such as a web page.
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in [RFC2119].
The actual reference value can take three forms specified by the type parameter
[RFC5988] defines two form of relation types, registered and extension. Registered relation types are added to a registry defined by [RFC5988] while extension relation types are specified as unique unregistered URIs, (at least unregistered in the [RFC5988] registry).
The relation types defined here will be registered with IANA in accordance with the specifications in [RFC5988].
Relationship parameter type values are defined in section 3.2.15. of [RFC5545]. This specification redefines that type to include the new temporal relationship values FINISHTOSTART, FINISHTOFINISH, STARTTOFINISH and STARTTOSTART. It also adds the DEPENDS-ON value to provide a link to a component upon which the current component depends.
This property parameter is defined by the following notation:
reltypeparam = "RELTYPE" "=" ("PARENT" ; Parent relationship - Default / "CHILD" ; Child relationship / "SIBLING" ; Sibling relationship / "DEPENDS-ON" ; refers to previous task / "REFID" ; Relationship based on REFID / "CONCEPT" ; Relationship based on CONCEPT / "FINISHTOSTART" ; Temporal relationship / "FINISHTOFINISH" ; Temporal relationship / "STARTTOFINISH" ; Temporal relationship / "STARTTOSTART" ; Temporal relationship / iana-token ; Some other IANA-registered ; iCalendar relationship type / x-name) ; A non-standard, experimental ; relationship type
============ | Task-A |--+ ============ | | V ============ | Task-B | ============
Figure 1: Finish to start relationship
============ | Task-A |--+ ============ | | ============ | | Task-B |<-+ ============
Figure 2: Finish to finish relationship
============ +--| Task-A | | ============ | ============ | | Task-B |<-+ ============
Figure 3: Start to finish relationship
============ +--| Task-A | | ============ | | ============ +->| Task-B | ============
Figure 4: Start to start relationship
This parameter is defined by the following notation:
relparam = "REL" "=" ("SOURCE" ; Link to source of this component / DQUOTE uri DQUOTE / x-name ; Experimental reference type / iana-token) ; Other IANA registered type
This parameter is defined by the following notation:
gapparam = "GAP" "=" dur-value
This specification defines the following new value types to be used with the VALUE property parameter:
This property is defined by the following notation:
concept = "CONCEPT" conceptparam ":" uri CRLF conceptparam = *( ; ; The following is OPTIONAL, ; and MAY occur more than once. ; (";" other-param) ; )
The following is an example of this property. It points to a server acting as the source for the calendar object.
SCONCEPT:http://example.com/event-types/sports CONCEPT:http://example.com/event-types/arts/music CONCEPT:http://example.com/task-types/delivery
This property is defined by the following notation:
link = "LINK" linkparam / ( ";" "VALUE" "=" "TEXT" ":" text ) ( ";" "VALUE" "=" "REFERENCE" ":" text ) ( ";" "VALUE" "=" "URI" ":" uri ) CRLF linkparam = *( ; the following is MANDATORY ; and MAY occur more than once (";" relparam) / ; the following are MANDATORY ; but MUST NOT occur more than once (";" fmttypeparam) / (";" labelparam) / ; labelparam is defined in ... ; the following is OPTIONAL ; and MAY occur more than once (";" xparam) )
The following is an example of this property. It points to a server acting as the source for the calendar object.
LINK;REL=SOURCE;LABEL=The Egg:http://example.com/events
This property is defined by the following notation:
refid = "REFID" refidparam ":" text CRLF refidparam = *( ; the following is OPTIONAL ; and MAY occur more than once (";" xparam) )
The following is an example of this property.
REFID:itinerary-2014-11-17
This property is defined by the following notation:
related = "RELATED-TO" relparam ( ":" text ) / ( ";" "VALUE" "=" "UID" ":" uid ) ( ";" "VALUE" "=" "URI" ":" uri ) CRLF relparam = *( ; ; The following are OPTIONAL, ; but MUST NOT occur more than once. ; (";" reltypeparam) / (";" gapparam) / ; ; The following is OPTIONAL, ; and MAY occur more than once. ; (";" other-param) ; )
The following are examples of this property.
RELATED-TO:jsmith.part7.19960817T083000.xyzMail@example.com RELATED-TO:19960401-080045-4000F192713-0052@example.com RELATED-TO;VALUE=URI;RELTYPE=STARTTOFINISH: http://example.com/caldav/user/jb/cal/ 19960401-080045-4000F192713.ics
Applications using the LINK property need to be aware of the risks entailed in using the URIs provided as values. See [RFC3986] for a discussion of the security considerations relating to URIs.
The CONCEPT and redefined RELATED-TO property have the same issues in that values may be URIs.
The following iCalendar property names have been added to the iCalendar Properties Registry defined in Section 8.3.2 of [RFC5545]
Property | Status | Reference |
---|---|---|
CONCEPT | Current | Section 7.1 |
LINK | Current | Section 7.2 |
REFID | Current | Section 7.3 |
The following iCalendar property parameter names have been added to the iCalendar Parameters Registry defined in Section 8.3.3 of [RFC5545]
Parameter | Status | Reference |
---|---|---|
REL | Current | Section 5.1 |
GAP | Current | Section 5.2 |
The following iCalendar property parameter names have been added to the iCalendar Value Data Types Registry defined in Section 8.3.4 of [RFC5545]
Value Data Type | Status | Reference |
---|---|---|
UID | Current | Section 6 |
REFERENCE | Current | Section 6 |
The following iCalendar "RELTYPE" values have been added to the iCalendar Relationship Types Registry defined in Section 8.3.8 of [RFC5545]
Relationship Type | Status | Reference |
---|---|---|
DEPENDS-ON | Current | Section 4 |
REFID | Current | Section 4 |
CONCEPT | Current | Section 4 |
FINISHTOSTART | Current | Section 4 |
FINISHTOFINISH | Current | Section 4 |
STARTTOFINISH | Current | Section 4 |
STARTTOSTART | Current | Section 4 |
The following link relation values have been added to the Reference Types Registry defined in Section 6.2.2 of [RFC5988]
Name | Status | Reference |
---|---|---|
SOURCE | Current | Section 5.1 |
The author would like to thank the members of the Calendaring and Scheduling Consortium technical committees and the following individuals for contributing their ideas, support and comments:
Adrian Apthorp, Cyrus Daboo, Marten Gajda, Ken Murchison
The author would also like to thank the Calendaring and Scheduling Consortium for advice with this specification.
[I-D.daboo-caldav-attachments] | Daboo, C. and A. Quillaud, "CalDAV Managed Attachments", Internet-Draft draft-daboo-caldav-attachments-03, February 2014. |
[RFC2119] | Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, DOI 10.17487/RFC2119, March 1997. |
[RFC3986] | Berners-Lee, T., Fielding, R. and L. Masinter, "Uniform Resource Identifier (URI): Generic Syntax", STD 66, RFC 3986, DOI 10.17487/RFC3986, January 2005. |
[RFC5545] | Desruisseaux, B., "Internet Calendaring and Scheduling Core Object Specification (iCalendar)", RFC 5545, DOI 10.17487/RFC5545, September 2009. |
[RFC5988] | Nottingham, M., "Web Linking", RFC 5988, DOI 10.17487/RFC5988, October 2010. |
[W3C.CR-skos-reference-20090317] | Bechhofer, S. and A. Miles, "SKOS Simple Knowledge Organization System Reference", World Wide Web Consortium CR CR-skos-reference-20090317, March 2009. |
[W3C.REC-xml-20060816] | Bray, T., Paoli, J., Sperberg-McQueen, M., Maler, E. and F. Yergeau, "Extensible Markup Language (XML) 1.0 (Fourth Edition)", World Wide Web Consortium Recommendation REC-xml-20060816, August 2006. |
[W3C.WD-xptr-xpointer-20021219] | DeRose, S., Daniel, R. and E. Maler, "XPointer xpointer() Scheme", World Wide Web Consortium WD WD-xptr-xpointer-20021219, December 2002. |