RDF-RDFa-Parser includes special Open Graph Protocol support from version 1.09_04.
/* OpenGraphNode.php
* =================
*
* AUTHOR
*
* Toby Inkster <http://tobyinkster.co.uk/>.
*
* USAGE
*
* # Fetch and parse a URL
* $page = new OpenGraphNode($url);
*
* # Get the page title as a string
* print $page->title . "\n"; ## PHP 5+ only
* print $page->title() . "\n"; ## PHP 5+ only
* print $page->Get('title') . "\n";
*
* # Or as an array (in case of multiple titles)
* $titles = $page->title(1); ## PHP 5+ only
* $titles = $page->Get('title', 1);
*
* # Get an array like key=>value
* $all = $page->All();
*
* # Get an array like key=>array(values)
* $all = $page->All(1);
*
* # General RDFa is also parsed
* $data = $page->RDFa();
*
* LICENCE
*
* Choose your favourite of:
* <http://www.gnu.org/licenses/gpl-3.0.html>
* <http://www.gnu.org/licenses/gpl-2.0.html>
* <http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231>
*
* SUPPORT / WARRANTY
*
* This program is distributed in the hope that it
* will be useful, but WITHOUT ANY WARRANTY; without
* even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE.
*
* For support, try the OGP developers' mailing list
* <http://groups.google.com/group/open-graph-protocol>.
*/
The bzip2 and zip files each have the same contents.
| Name | Last modified | Size | Description | |
|---|---|---|---|---|
| Parent Directory | - | |||
| ogp-20100427.tar.bz2 | 27-Apr-2010 21:23 | 72K | ||
| ogp-20100427.zip | 27-Apr-2010 21:23 | 134K | ||