# Everything barnard59-ftp declares in RDF: operations and CLI commands
# https://barnard59.zazuko.com/packages/ftp

@prefix code: <https://code.described.at/>.
@prefix p: <https://pipeline.described.at/>.
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.

<https://barnard59.zazuko.com/operations/ftp/list> a p:Operation, p:ReadableObjectMode;
  rdfs:comment "Lists all files in the given FTP folder.";
  rdfs:label "List files (FTP)";
  code:implementedBy [ a code:EcmaScriptModule;
      code:link <node:barnard59-ftp/list.js#default>
    ].

<https://barnard59.zazuko.com/operations/ftp/move> a p:Operation, p:Readable, p:Writable;
  rdfs:comment "Moves the given file at the end of the stream processing and forwards any incoming data.";
  rdfs:label "Move file (FTP)";
  code:implementedBy [ a code:EcmaScriptModule;
      code:link <node:barnard59-ftp/move.js#default>
    ].

<https://barnard59.zazuko.com/operations/ftp/read> a p:Operation, p:Readable;
  rdfs:comment "Reads the given file.";
  rdfs:label "Read file (FTP)";
  code:implementedBy [ a code:EcmaScriptModule;
      code:link <node:barnard59-ftp/read.js#default>
    ].

<https://barnard59.zazuko.com/operations/ftp/write> a p:Operation, p:Writable;
  rdfs:comment "Uploads the stream to FTP.";
  rdfs:label "Put file (FTP)";
  code:implementedBy [ a code:EcmaScriptModule;
      code:link <node:barnard59-ftp/write.js#default>
    ].
