How facebook/open-graph-protocol works
This repository hosts the Open Graph Protocol website. Its main workflow reads Markdown content, transforms it to HTML with Michelf Markdown, and embeds that output in the PHP page; the page also links to protocol vocabulary representations. The graph includes the parser’s interface and the site’s stylesheet. The namespace endpoint is included from the tree, but its implementation was not sampled, so no behavior is inferred for it.
Main entry points: index.php Page renderer · Markdown.inc.php Markdown loader · Markdown.php Markdown parser · index.markdown Page content
Components 10
Protocol website
- Page renderer
index.php - Page content
content/index.markdown - Site stylesheet
base.css
Markdown rendering
- Markdown loader
lib/Michelf/Markdown.inc.php - Markdown parser
lib/Michelf/Markdown.php - Parser interface
lib/Michelf/MarkdownInterface.php
Protocol vocabulary
- Namespace endpoint
ns/index.php - RDF vocabulary
ns/ogp.me.rdf - Turtle vocabulary
ns/ogp.me.ttl
Other components
- Web visitor
Connections 9
- Web visitor → Page renderer: requests page
- Page renderer → Page content: reads Markdown
index.php - Page renderer → Markdown loader: loads parser
index.php - Markdown loader → Parser interface: includes interface
lib/Michelf/Markdown.inc.php - Markdown loader → Markdown parser: includes parser
lib/Michelf/Markdown.inc.php - Page renderer → Markdown parser: transforms content
index.php - Page renderer → Site stylesheet: links stylesheet
index.php - Page renderer → RDF vocabulary: links vocabulary
index.php - Page renderer → Turtle vocabulary: links vocabulary
index.php