Log in |
Installation InstructionsUse within Zope
The queryResultsAsList-Method takes three Arguments:
Example use in dtml: <dtml-in "queryResultsAsList('FORALL X,Y <- X::Y.','localhost',1234)"> Use within PythonA simple way of testing the "ontobroker_client.py" script is putting these three lines in a seperate script: import ontobroker_client list = ontobroker_client.query('FORALL X,Y <-X::Y.', 'localhost', 1234) for item in list: print item You may have to correct the host and/or the port. You can add further functions, specialised for your purpose of use. You can download the test script here: Test.py back |