Skip to content
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
Cannot retrieve contributors at this time
33 lines (29 sloc) 773 Bytes
* Basic "Hello World" type example
* A new EasyRdf\Graph object is created and then the contents
* of my FOAF profile is loaded from the web. An EasyRdf\Resource for
* the primary topic of the document (me, Nicholas Humfrey) is returned
* and then used to display my name.
* @package EasyRdf
* @copyright Copyright (c) 2009-2014 Nicholas J Humfrey
* @license
require_once realpath(__DIR__.'/..')."/vendor/autoload.php";
<title>Basic FOAF example</title>
$foaf = \EasyRdf\Graph::newAndLoad('');
$me = $foaf->primaryTopic();
My name is: <?= $me->get('foaf:name') ?>