Help us to make LAARC catalogue better!


We would like to hear your views about how the LAARC Online Catalogue can be improved. Please click the 'Leave Feedback' link below - you will be redirected to a survey page with background information about the LAARC Online Catalogue redevelopment project. Your feedback is greatly appreciated.
   Leave Feedback
   No, Thank You

API Methods Summary

Request: Overview

Search URL

The search request is initiated by passing a URL string to the LAARC catalogue web service.

The service url is
http://www.museumoflondon.org.uk/laarcWS/v1/rest.

The search criteria is defined in the query string part of the request URL as a list of name=value pairs.

Here is an example request url:

http://www.museumoflondon.org.uk/laarcWS/v1/rest?op=SearchSites&search_type=keywords&terms=knife,Roman&pageno=1&perpage=10

The part of the URL before the question mark(?) is the path to the search API application.

The part of the URL after the question mark (?) is a query string containing the query parameters.

Query String parameters

Operation (op) and Search Type (search_type) parameters

Parameters inherited by all search operations are op and search_type.

op is a high level search handler method to whom the search request is dispatched.

Its value has a standard format: SearchXXX, GetXXX where XXX is the target domain object to feature in the search result.

For example, op=GetSites tells us that the target domain object is an archaeological site. That is we expect a list of archaeological sites in the search result.

Our convention is that 'Search' part of the parameter name means text-based search while 'Get' part means that we are looking for a collection related to the target object by primary key or foreign key.

search_type specifies which other parameters the application expects to follow in the url query string. For example, if search_type is set to values "keywords", "bycode" or "bykey" the application expects terms parameter.

The first release of the search API accepts only search_types "keywords", "bycode" and "bykey". This scheme is, however, the base for extention in order to formulate other types of searches in a uniform manner. For example, in the future we may extend it with geographical search and/or filter-based search.

Certain api methods and certain parameters take lists of values as well as a single value. The common format of passing a list as a query parameter is to separate items in it by commas.

For example, terms=knife,Roman

You can pass a word phrase, rather then a single word as a member of the list of terms. Words in a phrase are concatenated with a plus(+)sign. For example, terms=roman+knife,blade is equivalent to a term list that consists of a word phrase and a single word - roman knife, blade

Pagination parameters (pageno and perpage)

All queries that return a list of results are paged. By specifying parameters pageno and perpage we tell the API which portion of the result set we are looking for.

pageno is the page to start from.

perpage is how many results are included in one page.

Parameters pageno and perpage are optional. If not specified the API defaults pageno parameter to value 1 and perpage to the API pre-set maximum value of the perpage parameter.

If pageno value exceeds the total number of pages that the results are paged into the last page of the paged result set will be returned.

Operation: GetSite

Summary

Retrieves a complete site record mapped onto a domain object type SiteInfo which corresponds to SiteInfo element of the ResultSet . The SiteInfo object includes an associated Archive .

Query String Parameters

op

  • the name of the search operation
  • Value: GetSite
  • Type: String
  • Required

search_type

  • specifies which site identifier is used to retrieve the site record. The site record can be identified either by a numeric id (bykey parameter value) also known as Skey or by Sitecode - a special Museum of London code assigned to each site (bycode parameter value).
  • Value: bykey, bycode
  • Type: String
  • Required

term(s)

  • the unique site record identifier
  • Value: the value of the site identifier
  • Type: Integer if search_type parameter is bykey, String if the search type parameter is bycode
  • Required

Return Value

See: SiteInfo , ResultSet, SearchResult

Exceptions

See: Error, Success, ResultSet

Example URL

http://www.museumoflondon.org.uk/laarcWS/v1/rest?op=GetSite&search_type=bycode&terms=ABM97

http://www.museumoflondon.org.uk/laarcWS/v1/rest?op=GetSite&search_type=bykey&terms=3529

Operation: GetSiteArchive

Summary

Retrieves an archaeological site archive record mapped onto a domain object type Archive which corresponds to Archive element of the ResultSet .

Query String Parameters

op

  • the name of the search operation
  • Value: GetSiteArchive
  • Type: String
  • Required

search_type

  • specifies which site identifier is used to retrieve an archive record. The archive record is identified by a Sitecode - a special Museum of London code assigned to each site (bycode parameter value).
  • Value: bycode
  • Type: String
  • Required

term(s)

  • the unique site record identifier
  • Value: the value of the site identifier
  • Type: Integer if search_type parameter is bykey, String if the search type parameter is bycode
  • Required

Return Value

See: Archive , ResultSet, SearchResult

Exceptions

See: Error, Success, ResultSet

Example URL

http://www.museumoflondon.org.uk/laarcWS/v1/rest?op=GetSiteArchive&search_type=bycode&terms=ABM97

Operation: GetRegFinds

Summary

Retrieves a collection of registered finds for a given archaeological site.

Query String Parameters

op

  • the name of the search operation
  • Value: GetRegFinds
  • Type: String
  • Required

search_type

  • specifies which site identifier is used to retrieve an associated collection. The collection of archaeological finds is associated to a site record either by a numeric id (bykey parameter value) also known as Skey or by Sitecode - a special Museum of London code assigned to each site (bycode parameter value).
  • Value: bykey, bycode
  • Type: String
  • Required

term(s)

  • the unique site record identifier
  • Value: the value of the site identifier
  • Type: Integer if search_type parameter is bykey, String if the search type parameter is bycode
  • Required

pageno

  • the page to start from
  • Value: any positive integer
  • Type: Integer
  • Optional, Default: 1

perpage

  • number of records per page
  • Value: any positive integer not exceeding 10 - the max allowed by default.
  • Type: Integer
  • Optional, Default: 10 - the global configurable setting of max allowed results per page.

Return Value

See: RegFind , ResultSet, SearchResult

Exceptions

See: Error, Success, ResultSet

Example URL

http://www.museumoflondon.org.uk/laarcWS/v1/rest?op=GetRegFinds&search_type=bycode&terms=85BHS90&pageno=2&perpage=3

http://www.museumoflondon.org.uk/laarcWS/v1/rest?op=GetRegFinds&search_type=bycode&terms=85BHS90&pageno=2&perpage=3

Operation: GetBulkFinds

Summary

Retrieves a collection of bulk finds for a given archaeological site.

Query String Parameters

op

  • the name of the search operation
  • Value: GetBulkFinds
  • Type: String
  • Required

search_type

  • specifies which site identifier is used to retrieve an associated collection. The collection of archaeological finds is associated to a site record either by a numeric id (bykey parameter value) also known as Skey or by Sitecode - a special Museum of London code assigned to each site (bycode parameter value).
  • Value: bykey, bycode
  • Type: String
  • Required

term(s)

  • the unique site record identifier
  • Value: the value of the site identifier
  • Type: Integer if search_type parameter is bykey, String if the search type parameter is bycode
  • Required

pageno

  • the page to start from
  • Value: any positive integer
  • Type: Integer
  • Optional, Default: 1

perpage

  • number of records per page
  • Value: any positive integer not exceeding 10 - the max allowed by default.
  • Type: Integer
  • Optional, Default: 10 - the global configurable setting of max allowed results per page.

Return Value

See: BulkFind , ResultSet, SearchResult

Exceptions

See: Error, Success, ResultSet

Example URL

http://www.museumoflondon.org.uk/laarcWS/v1/rest?op=GetBulkFinds&search_type=bycode&terms=85BHS90&pageno=2&perpage=3

http://www.museumoflondon.org.uk/laarcWS/v1/rest?op=GetBulkFinds&search_type=bykey&terms=377&pageno=2&perpage=3

Operation: GetAllFinds

Summary

Retrieves a collection of registered and bulk finds for a given archaeological site.

Query String Parameters

op

  • the name of the search operation
  • Value: GetAllFinds
  • Type: String
  • Required

search_type

  • specifies which site identifier is used to retrieve an associated collection. The collection of archaeological finds is associated to a site record either by a numeric id (bykey parameter value) also known as Skey or by Sitecode - a special Museum of London code assigned to each site (bycode parameter value).
  • Value: bykey, bycode
  • Type: String
  • Required

term(s)

  • the unique site record identifier
  • Value: the value of the site identifier
  • Type: Integer if search_type parameter is bykey, String if the search type parameter is bycode
  • Required

pageno

  • the page to start from
  • Value: any positive integer
  • Type: Integer
  • Optional, Default: 1

perpage

  • number of records per page
  • Value: any positive integer not exceeding 10 - the max allowed by default.
  • Type: Integer
  • Optional, Default: 10 - the global configurable setting of max allowed results per page.

Return Value

See: MolObject , ResultSet, SearchResult

Exceptions

See: Error, Success, ResultSet

Example URL

http://www.museumoflondon.org.uk/laarcWS/v1/rest?op=GetAllFinds&search_type=bycode&terms=85BHS90&pageno=2&perpage=3

http://www.museumoflondon.org.uk/laarcWS/v1/rest?op=GetAllFinds&search_type=bykey&terms=377&pageno=2&perpage=3

Operation: GetPubs

Summary

Retrieves a collection of publications related to a given archaeological site.

Query String Parameters

op

  • the name of the search operation
  • Value: GetPubs
  • Type: String
  • Required

search_type

  • specifies which site identifier is used to retrieve an associated collection. The collection of archaeological finds is associated to a site record either by a numeric id (bykey parameter value) also known as Skey or by Sitecode - a special Museum of London code assigned to each site (bycode parameter value).
  • Value: bykey, bycode
  • Type: String
  • Required

term(s)

  • the unique site record identifier
  • Value: the value of the site identifier
  • Type: Integer if search_type parameter is bykey, String if the search type parameter is bycode
  • Required

pageno

  • the page to start from
  • Value: any positive integer
  • Type: Integer
  • Optional, Default: 1

perpage

  • number of records per page
  • Value: any positive integer not exceeding 10 - the max allowed by default.
  • Type: Integer
  • Optional, Default: 10 - the global configurable setting of max allowed results per page.

Return Value

See: Publication , ResultSet, SearchResult

Exceptions

See: Error, Success, ResultSet

Example URL

http://www.museumoflondon.org.uk/laarcWS/v1/rest?op=GetPubs&search_type=bycode&terms=BIG82&pageno=2&perpage=5

http://www.museumoflondon.org.uk/laarcWS/v1/rest?op=GetPubs&search_type=bykey&terms=1716&pageno=2&perpage=5

Operation: SearchSites

Summary

Does text based search given a keyword, a word phrase or a list of keyword/phrases. Retrieves a list of archaeological sites.

Query String Parameters

op

  • the name of the search operation
  • Value: SearchSites
  • Type: String
  • Required

search_type

  • If search_type parameter has value keywords, the application expects parameter terms be set to a list of search terms.
  • Value: keywords
  • Type: String
  • Required

term(s)

  • A single keyword, or a comma separated list of keywords. Terms in the list are AND'ed, e.g. terms=knife,Roman is equivalent to a search query 'knife and Roman'. Use plus(+) to concatenate keywords in a search phrase, e.g. terms=iron+knife,Roman is equivalent to a search query 'iron knife and Roman'. A restriction on max 4 search terms applies until we optimise the data retrieval.
  • Value: arbitrary
  • Type: String
  • Required

pageno

  • the page to start from
  • Value: any positive integer
  • Type: Integer
  • Optional, Default: 1

perpage

  • number of records per page
  • Value: any positive integer not exceeding 10 - the max allowed by default.
  • Type: Integer
  • Optional, Default: 10 - the global configurable setting of max allowed results per page.

Return Value

See: Site , ResultSet, SearchResult

Exceptions

See: Error, Success, ResultSet

Example URL

http://www.museumoflondon.org.uk/laarcWS/v1/rest?op=SearchSites&search_type=keywords&terms=knife,Roman&pageno=1&perpage=10

Operation: SearchRegFinds

Summary

Does text based search given a keyword, a word phrase or a list of keyword/phrases. Retrieves a list of registered archaeological finds.

Query String Parameters

op

  • the name of the search operation
  • Value: SearchRegFinds
  • Type: String
  • Required

search_type

  • If search_type parameter has value keywords, the application expects parameter terms be set to a list of search terms.
  • Value: keywords
  • Type: String
  • Required

term(s)

  • A single keyword, or a comma separated list of keywords. Terms in the list are AND'ed, e.g. terms=knife,Roman is equivalent to a search query 'knife and Roman'. Use plus(+) to concatenate keywords in a search phrase, e.g. terms=iron+knife,Roman is equivalent to a search query 'iron knife and Roman'. A restriction on max 4 search terms applies until we optimise the data retrieval.
  • Value: arbitrary
  • Type: String
  • Required

pageno

  • the page to start from
  • Value: any positive integer
  • Type: Integer
  • Optional, Default: 1

perpage

  • number of records per page
  • Value: any positive integer not exceeding 10 - the max allowed by default.
  • Type: Integer
  • Optional, Default: 10 - the global configurable setting of max allowed results per page.

Return Value

See: RegFind , ResultSet, SearchResult

Exceptions

See: Error, Success, ResultSet

Example URL

http://www.museumoflondon.org.uk/laarcWS/v1/rest?op=SearchRegFinds&search_type=keywords&terms=knife&pageno=1&perpage=10

Operation: SearchPubs

Summary

Does text based search given a keyword, a word phrase or a list of keyword/phrases. Retrieves a list of publications.

Query String Parameters

op

  • the name of the search operation
  • Value: SearchPubs
  • Type: String
  • Required

search_type

  • If search_type parameter has value keywords, the application expects parameter terms be set to a list of search terms.
  • Value: keywords
  • Type: String
  • Required

term(s)

  • A single keyword, or a comma separated list of keywords. Terms in the list are AND'ed, e.g. terms=knife,Roman is equivalent to a search query 'knife and Roman'. Use plus(+) to concatenate keywords in a search phrase, e.g. terms=iron+knife,Roman is equivalent to a search query 'iron knife and Roman'. A restriction on max 4 search terms applies until we optimise the data retrieval.
  • Value: arbitrary
  • Type: String
  • Required

pageno

  • the page to start from
  • Value: any positive integer
  • Type: Integer
  • Optional, Default: 1

perpage

  • number of records per page
  • Value: any positive integer not exceeding 10 - the max allowed by default.
  • Type: Integer
  • Optional, Default: 10 - the global configurable setting of max allowed results per page.

Return Value

See: Publication , ResultSet, SearchResult

Exceptions

See: Error, Success, ResultSet

Example URL

http://www.museumoflondon.org.uk/laarcWS/v1/rest?op=SearchPubs&search_type=keywords&terms=knife&pageno=1&perpage=10

 

Museum of London Home | About the Group | Contact us | News | Support us | Venue hire & services | Jobs | Site map

Mortimer Wheeler House, 46 Eagle Wharf Road, London N1 7ED. Tel: +44 (0)20 7490 8447, fax: +44 (0)20 7490 5047. Email laarc@museumoflondon.org.uk.
The development of the LAARC information systems has been supported by the Museum of London, Heritage Lottery Fund and Getty Grant Program