Specifying an Output Format
The Anzo CLI enables you to request results in the following formats: TriG (default), RDF, RDFS, XML, NT, N3, TTL, TriX, and JSON. To change the format for results, you use the -o option with Anzo subcommands such as find, get, query, call, and analyze.
For example, the following get subcommand returns graph results in XML format:
anzo get -o xml http://cambridgesemantics.com/Movie/473086
<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF
xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<rdf:Description rdf:about="http://cambridgesemantics.com/Movie/473086">
<hasMovieCredits xmlns="http://cambridgesemantics.com/ontologies/2009/08/Film#"
rdf:resource="http://cambridgesemantics.com/movieCredits/473086"/>
<hasMovieRevenue xmlns="http://cambridgesemantics.com/ontologies/2009/08/Film#"
rdf:resource="http://cambridgesemantics.com/4dcd6ab2-1234-4c07-ab96-72b16e433e39"/>
<homepage xmlns="http://cambridgesemantics.com/ontologies/2009/08/Film#">
http://kingkongmovie.com</homepage>
<movieBudget xmlns="http://cambridgesemantics.com/ontologies/2009/08/Film#"
rdf:resource="http://cambridgesemantics.com/0af6876b-73a5-4e7c-b55a-0470e03be50f"/>
<movieId xmlns="http://cambridgesemantics.com/ontologies/2009/08/Film#">473086</movieId>
<runtime xmlns="http://cambridgesemantics.com/ontologies/2009/08/Film#"
rdf:datatype="http://www.w3.org/2001/XMLSchema#int">11280</runtime>
<title xmlns="http://cambridgesemantics.com/ontologies/2009/08/Film#">King Kong (2005 film)</title>
<location xmlns="http://cambridgesemantics.com/ontologies/2009/08/Film#">New Zealand</location>
<rdf:type rdf:resource="http://cambridgesemantics.com/ontologies/2009/08/Film#Movie"/>
</rdf:Description>