Class LabbcatAdmin

  • All Implemented Interfaces:
    nzilbb.ag.GraphStore, nzilbb.ag.GraphStoreAdministration, nzilbb.ag.GraphStoreQuery

    public class LabbcatAdmin
    extends LabbcatEdit
    implements nzilbb.ag.GraphStoreAdministration
    Client-side implementation of nzilbb.ag.GraphStoreAdminitration.

    This class inherits the read-write operations of LabbcatEdit and adds some administration operations, including definition of layers, registration of converters, etc., i.e. those that can be performed by users with admin permission.

    e.g.

     // create annotation store client
     LabbcatAdmin store = new LabbcatAdmin("https://labbcat.canterbury.ac.nz", "demo", "demo");
     // get some basic information
     String id = store.getId();
     String[] layers = store.getLayerIds();
     String[] corpora = store.getCorpusIds();
     String[] documents = store.getGraphIdsInCorpus(corpora[0]);
     // delete a document
     store.deleteGraph(documents[0]);
     
    Author:
    Robert Fromont robert@fromont.net.nz