XML-RPC Server for The Noun Phrase

This is an XML-RPC interface to the corpus of The Noun Phrase.

A description of available XML-RPC methods follows.

Index of methods

Details

diddd.searchText

Basic text (string) search. Parameters: (1) string to be searched for, (2) struct with options, possible at the moment: 'limit' => number of rows to be returned (0 = unlimited), 'kloekecodes' => array of Kloeke codes (geographic codes); returns: array of structs. Sample methodcall: <methodCall> <methodName>diddd.searchText</methodName> <params> <param> <value><string>gewoond</string></value> </param> <param> <value><struct> <member><name>kloekecodes</name> <value><array> <data> <value><string>I118p</string></value> </data> </array></value> </member> <member><name>limit</name> <value><int>10</int></value> </member> </struct></value> </param> </params> </methodCall>

Signatures

  1. Parameters: string struct
    Return value: array

return to index

diddd.getRecordIDsForText

Basic text (string) search. Parameters: (1) string to be searched for, (2) struct with options, possible at the moment: 'limit' => number of rows to be returned (0 = unlimited), 'kloekecodes' => array of Kloeke codes (geographic codes); returns: array of integers: id's of found answers. Sample methodcall: <methodCall> <methodName>diddd.searchText</methodName> <params> <param> <value><string>gewoond</string></value> </param> <param> <value><struct> <member><name>kloekecodes</name> <value><array> <data> <value><string>I118p</string></value> </data> </array></value> </member> <member><name>limit</name> <value><int>10</int></value> </member> </struct></value> </param> </params> </methodCall>

Signatures

  1. Parameters: string struct
    Return value: array

return to index

diddd.searchTags

Tag search. Parameter: (1) struct with search parameters, possible at the moment: string, tags, kloekecodes, keywords (syntactic phenomena), limit. Sample methodcall: <methodCall> <methodName>diddd.searchTags</methodName> <params> <param> <value><struct> <member><name>kloekecodes</name> <value><array> <data> <value><string>E206p</string></value> </data> </array></value> </member> <member><name>tags</name> <value><array> <data> <value><struct> <member><name>category</name> <value><string>N</string></value> </member> <member><name>attributes</name> <value><array> <data> <value><string>sg</string></value> </data> </array></value> </member> </struct></value> </data> </array></value> </member> <member><name>string</name> <value><string>boeke</string></value> </member> <member><name>keywords</name> <value><array> <data> <value><string>what for</string></value> </data> </array></value> </member> <member><name>limit</name> <value><string>10</string></value> </member> </struct></value> </param> </params> </methodCall>

Signatures

  1. Parameters: struct
    Return value: array

return to index

diddd.getRecordIDsForTags

Tag search. Parameter: (1) struct with search parameters, possible at the moment: string, tags, kloekecodes, keywords (syntactic phenomena), limit. This method returns an array of strings of the form 1234:56,78 where first number = id of the answer, second comma-separated list of numbers = found word id's within the answer. Sample methodcall: <methodCall> <methodName>diddd.searchTags</methodName> <params> <param> <value><struct> <member><name>kloekecodes</name> <value><array> <data> <value><string>E206p</string></value> </data> </array></value> </member> <member><name>tags</name> <value><array> <data> <value><struct> <member><name>category</name> <value><string>N</string></value> </member> <member><name>attributes</name> <value><array> <data> <value><string>sg</string></value> </data> </array></value> </member> </struct></value> </data> </array></value> </member> <member><name>string</name> <value><string>boeke</string></value> </member> <member><name>keywords</name> <value><array> <data> <value><string>what for</string></value> </data> </array></value> </member> <member><name>limit</name> <value><string>10</string></value> </member> </struct></value> </param> </params> </methodCall>

Signatures

  1. Parameters: struct
    Return value: array

return to index

diddd.searchSyntacticPhenomena

Syntactic phenomena search. Parameters: (1) array of syntactic phenomena to be searched for (array of strings), (2) struct with options, possible at the moment: 'limit' => number of rows to be returned (0 = unlimited), 'kloekecodes' => array of Kloeke codes (geographic codes) to limit the search to. Sample methodcall: <methodCall> <methodName>diddd.searchSyntacticPhenomena</methodName> <params> <param> <value><array> <data> <value><string>what for</string></value> </data> </array></value> </param> <param> <value><struct> <member><name>kloekecodes</name> <value><array> <data> <value><string>E206p</string></value> </data> </array></value> </member> <member><name>limit</name> <value><int>10</int></value> </member> </struct></value> </param> </params> </methodCall>

Signatures

  1. Parameters: array struct
    Return value: array

return to index

diddd.getRecordIDsForSyntacticPhenomena

Syntactic phenomena search. Parameters: (1) array of syntactic phenomena to be searched for (array of strings), (2) struct with options, possible at the moment: 'limit' => number of rows to be returned (0 = unlimited), 'kloekecodes' => array of Kloeke codes (geographic codes) to limit the search to. Returns: array of integers: id's of found answersSample methodcall: <methodCall> <methodName>diddd.searchSyntacticPhenomena</methodName> <params> <param> <value><array> <data> <value><string>what for</string></value> </data> </array></value> </param> <param> <value><struct> <member><name>kloekecodes</name> <value><array> <data> <value><string>E206p</string></value> </data> </array></value> </member> <member><name>limit</name> <value><int>10</int></value> </member> </struct></value> </param> </params> </methodCall>

Signatures

  1. Parameters: array struct
    Return value: array

return to index

diddd.getFullResultsTextByID

To be written

Signatures

  1. Parameters: array
    Return value: array

return to index

diddd.getFullResultsTagsByID

To be written

Signatures

  1. Parameters: array
    Return value: array

return to index

diddd.getFullResultsSyntacticPhenomenaByID

To be written

Signatures

  1. Parameters: array
    Return value: array

return to index

diddd.getSyntacticPhenomena

Returns a list of syntactic phenomena. Possible parameter: string 'en' or 'nl' for English or Dutch terms. Default: English terms.

Signatures

  1. Parameters: string
    Return value: array
  2. Parameters: none
    Return value: array

return to index

diddd.getTitlesForFullResultsText

Returns an empty structure for the diddd.searchText and diddd.getFullResultsTextByID methods

Signatures

  1. Parameters: none
    Return value: struct

return to index

diddd.getTitlesForFullResultsSyntacticPhenomena

Returns an empty structure for the diddd.searchSyntacticPhenomena and diddd.getFullResultsSyntacticPhenomenaByID methods

Signatures

  1. Parameters: none
    Return value: struct

return to index

diddd.getTitlesForFullResultsTags

Returns an empty structure for the diddd.searchTags and diddd.getFullResultsTagsByID methods

Signatures

  1. Parameters: none
    Return value: struct

return to index

diddd.search

General search method. Parameter: (1) struct with search parameters, possible at the moment: string, tags, kloekecodes, keywords (syntactic phenomena), limit. Sample methodcall: <methodCall> <methodName>diddd.searchTags</methodName> <params> <param> <value><struct> <member><name>kloekecodes</name> <value><array> <data> <value><string>E206p</string></value> </data> </array></value> </member> <member><name>tags</name> <value><array> <data> <value><struct> <member><name>category</name> <value><string>N</string></value> </member> <member><name>attributes</name> <value><array> <data> <value><string>sg</string></value> </data> </array></value> </member> </struct></value> </data> </array></value> </member> <member><name>string</name> <value><string>boeke</string></value> </member> <member><name>keywords</name> <value><array> <data> <value><string>what for</string></value> </data> </array></value> </member> <member><name>limit</name> <value><string>10</string></value> </member> </struct></value> </param> </params> </methodCall>

Signatures

  1. Parameters: struct
    Return value: array

return to index

diddd.getRecordIDs

General search method. Parameter: (1) struct with search parameters, possible at the moment: string, tags, kloekecodes, keywords (syntactic phenomena), limit. This method returns an array of strings of the form 1234:56,78 where first number = id of the answer, second comma-separated list of numbers = found word id's within the answer. Sample methodcall: <methodCall> <methodName>diddd.searchTags</methodName> <params> <param> <value><struct> <member><name>kloekecodes</name> <value><array> <data> <value><string>E206p</string></value> </data> </array></value> </member> <member><name>tags</name> <value><array> <data> <value><struct> <member><name>category</name> <value><string>N</string></value> </member> <member><name>attributes</name> <value><array> <data> <value><string>sg</string></value> </data> </array></value> </member> </struct></value> </data> </array></value> </member> <member><name>string</name> <value><string>boeke</string></value> </member> <member><name>keywords</name> <value><array> <data> <value><string>what for</string></value> </data> </array></value> </member> <member><name>limit</name> <value><string>10</string></value> </member> </struct></value> </param> </params> </methodCall>

Signatures

  1. Parameters: struct
    Return value: array

return to index

system.listMethods

This method lists all the methods that the XML-RPC server knows how to dispatch

Signatures

  1. Parameters: string
    Return value: array
  2. Parameters: none
    Return value: array

return to index

system.methodHelp

Returns help text if defined for the method passed, otherwise returns an empty string

Signatures

  1. Parameters: string
    Return value: string

return to index

system.methodSignature

Returns an array of known signatures (an array of arrays) for the method name passed. If no signatures are known, returns a none-array (test for type != array to detect missing signature)

Signatures

  1. Parameters: string
    Return value: array

return to index

system.describeMethods

Fully describes the methods implemented by this XML-RPC server

Signatures

  1. Parameters: array
    Return value: struct
  2. Parameters: none
    Return value: struct

return to index