added writes to each loop in functions
updated to use new API
Merge pull request #386 from micheldumontier/sgd

added writes to each loop in functions
Merge branch 'sgd' of github.com:micheldumontier/bio2rdf-scripts into sgd

Conflicts:
	sgd/sgd.php
Merge branch 'release3' of github.com:bio2rdf/bio2rdf-scripts into sgd
Merge pull request #387 from micheldumontier/sgd

SGD: use new NCBO API