Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updating the Readme

  • Loading branch information...
commit 2c612511ad147a9bdddc2e2d3f4112d1d164188f 1 parent 626301c
Jonathan Moss authored
Showing with 4 additions and 5 deletions.
  1. +4 −5 README.md
View
9 README.md
@@ -20,20 +20,19 @@ This will run all tests, create documentation (in the /docs folder) and creates
### Basic Usage
-Fetch a topic:
+_Fetch a topic:_
$freebase = new freebase\Freebase();
$result = $freebase->fetchByTopicId('/en/philip_k_dick');
-Perform a basic search:
+_Perform a basic search:{
$freebase = new freebase\Freebase();
$query = new freebase\Query();
$query->addField('id', '/topic/en/philip_k_dick')
->addField('/book/author/works_written', array()); //placeholder for results
$result = $freebase->fetchByQuery($query);
-Using the returned results:
-
- The results returned from Freebase are formated into a DOM (Document Object Model) which exposes a number of methods to allow you to traverse it and extract the data you need
+_Using the returned results:_
+The results returned from Freebase are formated into a DOM (Document Object Model) which exposes a number of methods to allow you to traverse it and extract the data you need
$result->getChildByName("properties"); //returns the 'properties' Child Node
$result->getChildByPath("properties./book/author/works_written"); fetches the /book/author/works_written node within the properties node
Please sign in to comment.
Something went wrong with that request. Please try again.