Calculon_web.OgThese data-structures are for holding meta-data expressed by the open graph protocol.
The basic information represented is the site name, title, content type, canonical url and a preview image. If the content is music or video data, additional data, additional data like tags or length may be present. Even though the protocal requires a minimum information of title, type, image and url, the webpage might be malformed. Parse.parse_string therefore just returns a list of og_metadata.
type og_metadata = | Title of string| Type of og_type| Image of url| Url of url| Audio of url| Description of string| Determiner of og_determiner| Locale of locale| AlternateLocale of locale| SiteName of string| Video of url| VideoMeta of og_video_metadata| UnparsedMeta of stringval parse_url : string -> url optionval parse_locale : string -> locale optionval parse_type : string -> og_typeval make_title : string -> og_metadataval make_type : og_type -> og_metadataval make_image : url -> og_metadataval make_audio : url -> og_metadataval make_description : string -> og_metadataval make_determiner : og_determiner -> og_metadataval make_locale : locale -> og_metadataval make_alternate_locale : locale -> og_metadataval make_site_name : string -> og_metadataval make_video : url -> og_metadataval make_video_metadata : og_video_metadata -> og_metadataval make_url : url -> og_metadataval make_video_tag : string -> og_video_metadataval make_video_duration : int -> og_video_metadataval format_metadata : Stdlib.Format.formatter -> og_metadata -> unitmodule Parser : sig ... end