Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Please note that the documentation contained on this page is outdated. 


The following documention outlines the API calls for the Ontario Data Extraction Service and Infrastructure Application (ODESI) which harvests data from several sources including IPCSR, CORA, Dataverse, etc. These API calls are the same as used by the ODESI application itself and can be used by your institution to provide your users with an alternate interface to access these resources. 

...

Also, by default, only 10 results are returned at a time. To increase the number of results to another amount append "%26pageLength%3D" plus the number results desired (noting the maximum number of results is dependant on your search criteria). E.g. http://search1.odesi.ca/search?requestURL=((smoking))%26options%3Dodesi-opts2%26format%3Djson%26pageLength%3D100 for 100 results.

 


Searches can be quite complex afforded by the underlying MarkLogic database. See https://docs.marklogic.com/guide/search-dev/string-query#id_98389 for examples of more complex searches. 


To retrieve the metadata for a record, take the URI of a record and append to the end of the GetDetails Base URL 'http://search1.odesi.ca/getDetails?requestURL='.
E.g to show the metadata for the first record of the 'smoking' search results, add '/odesi/sos-82M0008E-E-1994.xml' to the end of the GetDetails Base URL as follows http://search1.odesi.ca/getDetails?requestURL=/odesi/sos-82M0008E-E-1994.xml&format=xml

...