$graph->addLiteral("http://example.com/joe", "foaf:name", "Joe Bloggs"); $graph->addLiteral("http://example.com/joe", "foaf:name", "Joseph Bloggs"); $graph->add("http://example.com/joe", "rdfs:label", "Joe"); $graph->setType("http://njh.me/", "foaf:Person"); $graph->add("http://njh.me/", "rdfs:label", "Nick"); $graph->addLiteral("http://njh.me/", "foaf:name", "Nicholas Humfrey"); $graph->addResource("http://njh.me/", "foaf:homepage", "http://www.aelius.com/njh/"); ?> <p> <b>Name:</b> <?php echo $graph->get("http://example.com/joe", "foaf:name"); ?> <br /> <b>Names:</b> <?php echo $graph->join("http://example.com/joe", "foaf:name"); ?> <br /> <b>Label:</b> <?php echo $graph->label("http://njh.me/"); ?> <br /> <b>Properties:</b> <?php echo join(', ', $graph->properties("http://example.com/joe")); ?> <br /> <b>PropertyUris:</b> <?php echo join(', ', $graph->propertyUris("http://example.com/joe")); ?> <br />