The Link module handles web links, author information, and copyright data as defined in the GPX specification. This includes:
- Web links with optional text and MIME type
- Person records with name, email, and associated links
- Copyright information with author, year, and license terms
Link and person information types
Sourcetype t = {href : string;text : string option;type_ : string option;
} Sourceand person = {name : string option;email : string option;link : t option;
} Sourceand copyright = {author : string;year : int option;license : string option;
} Link Operations
Sourceval make : href:string -> ?text:string -> ?type_:string -> unit -> t Sourceval text : t -> string option Get optional text from link
Sourceval type_ : t -> string option Get optional type from link
Person Operations
Sourceval make_person : ?name:string -> ?email:string -> ?link:t -> unit -> person Create person information
Copyright Operations
Sourceval make_copyright :
author:string ->
?year:int ->
?license:string ->
unit ->
copyright Create copyright information