Specifying an Output Format

The anzo CLI is an advanced administration tool for managing Anzo. It is primarily used for migrations and deployments. To script user interface operations or control Anzo with the CLI, please contact Cambridge Semantics.

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 data set details in XML format:

anzo get -o xml http://csi.com/FileBasedLinkedDataSet/059060234accd1d2d44b6bbb4207ee54
<?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#"
    xmlns:ld="http://cambridgesemantics.com/ontologies/2009/05/LinkedData#"
    xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
<rdf:Description rdf:about="http://csi.com/DataLocation/059060234accd1d2d44b6bbb4207ee54">
<fileConnection xmlns="http://cambridgesemantics.com/ontologies/DataSources#" 
    rdf:resource="http://cambridgesemantics.com/File_Connection/local"/>
<filePath xmlns="http://cambridgesemantics.com/ontologies/DataSources#">
    /nfs/data/store/LoadMovies_223d3/</filePath>
<isPrimary xmlns="http://cambridgesemantics.com/ontologies/DataSources#" 
    rdf:datatype="http://www.w3.org/2001/XMLSchema#boolean">true</isPrimary>
<rdf:type rdf:resource="http://cambridgesemantics.com/ontologies/DataSources#DataLocation"/>
<rdf:type rdf:resource="http://cambridgesemantics.com/ontologies/DataSources#PathConnection"/>
</rdf:Description>