Notebook Browser 1.3 Developer Documentation (How-To)

Overview of REpresentational State Transfer (REST) Web Service API for Notebook Browser integration with Symyx Notebook

The REST web services enable integration between legacy Symyx notebooks (Process Notebook, Formulations Notebook, Discovery Notebook 4.1) and Symyx Notebook 6.6 and 6.7. To allow a client to browse legacy notebook repositories and search for documents across legacy notebook repositories, the REST web services API supports searching metadata fields, structures, and reactions, as well as full-text searching of indexed PDF documents.

Examples of Searches

URL Search Parameters

The URL for conducting a search can use any of the following parameters.


Chemistry Abstract Service identifier of the material (exact match)


format is MM/dd/yyyy


format is MM/dd/yyyy


the username of the person that created the reaction/document (exact match)


name of the department or group (exact match)


returns the PDF of the document if true. Default: false


a chimestring representation of a molecule to be searched


the type of structure search to conduct (case insensitive). Valid values are STRUCTURE_EXACT OR STRUCTURE_SUB (default)


label of the material (chemical) to search for (case insensitive), such as acetone


operator. Valid values are case-insensitive: equals or contains (default)


name of the project to search for (case insensitive)


operator. Valid values are case-insensitive: equals or contains (default)


a chimestring representation of a reaction to be searched


the type of reaction search to conduct. Valid values are case insensitive: RXN_FLEX for exact match, RXNSIM which returns all hits that are at least 80% similar in the reacting center portion, and at least 20% similar in the molecule portion, or RXN_RSS for Reaction Substructure Search, that is, finding structures that contain a substructure in a reaction (default).


the role (case insensitive) of the structure (used with material searches). For Process Notebook and Formulations Notebook, possible values are: reactant or product. For Discovery Notebook, possible values are: reactant, product, fsreactant, or fsproduct, where "fs" means fractional salt.


for full-text search for matching documents

To learn how to format the full-text search values in your URLs, including the use of escape characters and reserved words, see the Oracle 10g reference for Oracle Text, which has a section on Special Characters in Oracle Text Queries at


the title of the document to search for (case insensitive)


operator. Valid values are case-insensitive: equals or contains (default)


a double


operator. Valid values are GT for greater than (>), GTE for greater than or equals (>=), LT for less than (<), LTE for less than or equals (<=), or EQUALS (default)

Browsing Legacy Notebooks

Notebook Browser provides a set of web services to allow a client to browse a legacy Symyx notebook. The web services return a set of objects including Repositories, Containers (Folders, Notebooks, Groups) and Documents.

Retrieving All Repositories

/Repositories/ GET - list all repositories returns:
		<repository href="services/Repositories/Repository.b7f380af371cec41cd6a20ffdbceda12" id="Repository.b7f380af371cec41cd6a20ffdbceda12" name="Discovery Notebook">
			<type>Discovery Notebook</type>
			<containers />
		<repository href="services/Repositories/Repository.a9c88a844919f75cb4bce50ef1d72f34" id="Repository.a9c88a844919f75cb4bce50ef1d72f34" name="Formulations">
			<containers />
		 <repository href="services/Repositories/Repository.49475481566f1173e79bc12c755f9517" id="Repository.49475481566f1173e79bc12c755f9517" name="Process Chemistry">
			 <type>Process Chemistry</type>
			 <containers />

Retrieving a Single Repository

/Repositories/{repositoryId} retrieves a single repository and all direct child objects. For Process Notebook, Formulations Notebook, and Discovery Notebook, the direct child objects are the top-level folders of the repository. All of the items in a repository are returned as the name, id, and a link to get the full object.
    <repository href="services/Repositories/Repository.b7f380af371cec41cd6a20ffdbceda12" id="Repository.b7f380af371cec41cd6a20ffdbceda12" name="Discovery Notebook">
    	   <type>Discovery Notebook</type>
    	       <container href="services/Repositories/Repository.b7f380af371cec41cd6a20ffdbceda12/Containers/Group.3" name="CROG" id="Group.3">

Retrieving Containers

A container is any repository object, such as Folders, Notebooks and Groups, that can contain other objects.

The following URL accesses the specified container.





This URL retrieves a single Container from the repository with repositoryId and the Container with containerId.

All URLs must be submitted by GET requests.

Retrieving Folders

Example: /Repositories/{repositoryId}/Containers/Folder.1 would return a Folder in the repository with folderId.

The object returned in the response contains any direct child objects.

	<Container href="services/Repositories/Repository.a9c88a844919f75cb4bce50ef1d72f34/Containers/Folder.175d2e40-735c-4cc6-b243-75b589f33fb6"
			  <container xmlns:xsi=""
			  name="Jane Smith"
			  <containers />

Retrieving Notebooks



returns a Notebook in the repository with notebookId = Notebook.1

The object returned in the response contains any direct child objects.

	<notebook href="services/Repositories/Repository.c72a4c95a3e56576be033b0262502c01/Containers/Notebook.1" name="Chris Notebook 1" id="Notebook.1">
			<document href="services/Repositories/Repository.c72a4c95a3e56576be033b0262502c01/Documents/1038342"
					  name="Clone of Rxn to produce Benzene•2[ClH]"

Retrieving Groups



returns a Group in the repository with groupId = Group.1

	<Container href="services/Repositories/Repository.c72a4c95a3e56576be033b0262502c01/Containers/Group.1"
			<container xsi:type="folder" href="services/Repositories/Repository.c72a4c95a3e56576be033b0262502c01/Containers/User.1"
			name="Ada Admin" id="User.1">

Retrieving Users

retrieves all Users from a repository
retrieves a single User from a repository

Response for all users:

	  <user href="services/Repositories/Repository.a9c88a844919f75cb4bce50ef1d72f34/Users/User.51a5916d-5355-4bfc-911f-096c303b036e"
	  name="Jane Smith"

Response for a specified user:

  <user href="services/Repositories/Repository.a9c88a844919f75cb4bce50ef1d72f34/Users/User.51a5916d-5355-4bfc-911f-096c303b036e"
      name="Marie Curie"

Retrieving Documents

Retrieve a document as a PDF, which includes any images.


Retrieve multiple documents (in this case, three) by assigning a set of documentId parameters, as shown in the URL.


retrieves a single document from a repository if the parameter is set to true as shown above with pdf=true.

Legacy Note:
In version 1.1, only one (1) document could be retrieved, and the syntax to specify the Document was different: http://your_server/NotebookBrowser/services/Repositories/Repository.a9c88a844919f75cb4bce50ef1d72f34/Documents/Document.f2da9551-d469-4574-b25e-30fcd880c4dd?properties=true&pdf=true

Parameters for the Documentation Service

documentId (new in 1.2)
the identifier for the document to retrieve
intermediateFile (new in 1.2)
returns the XML that Symyx Notebook 6.5 uses to import
includes material data in the returned document if true. Default: false. See Material Properties of Retrieved Documents
includes a PDF (Base 64 encoded) in the returned document if true. Default: false
previewImage (new in 1.2)
includes the document's preview image (Base 64 encoded) if true. Default: false
previewImageHeight (new in 1.2)
specifies the height in pixels of the previewImage. Default: 250
previewImageWidth (new in 1.2)
specifies the width in pixels of the previewImage. Default: 645
includes the document properties in the returned document if true. Default: false
includes reaction data in the returned document if true. Default: false.
includes the XML representation the returned document if true. Default: false
Tip: Instead of setting any of these boolean parameters to false, omit the parameter.

XML Tags of Documents Returned

The web service returns a predefined set of XML elements and attributes, which means that the document returned in the response is a representation of the original legacy document. For example,
<document href="services/Repositories/Repository.a9c88a844919f75cb4bce50ef1d72f34/Documents/Document.f2da9551-d469-4574-b25e-30fcd880c4dd"
			 name="Trilayer Coated Tablet" id="Document.f2da9551-d469-4574-b25e-30fcd880c4dd">

    <name>Trilayer Coated Tablet</name>
    <state>Checked In</state>
    <stage>In Progress</stage>
<formula>C12 H22 O11</formula>

Material Properties of Retrieved Documents

The web service returns a material with the following property set. Some properties might not be populated with values.
the name of the material
the role of the material
a Base 64 encoded molfile
the formula of the material
the molecular weight of the material
Cas number
the CAS number of the material (for Process Notebook and Formulations Notebook)

Retrieving the Version Number of Symyx Notebook Browser on the Web Server

(new in 1.2):



The result might be:

Web Application Description Language (WADL) XML file

The Web Application Description Language XML file describes all the services provided and the types of parameters used. It is generated automatically and available on the server where Notebook Browser is deployed. For example, http://your_server/NotebookBrowser/services/application.wadl

The following WADL section lists the parameters that can be included for a Search method (Repositories/{repositoryId}/Search) in a GET request.
                <param type="xs:string" style="query" name="repository"/>
		<param type="xs:string" style="query" name="text"/>
		<param type="xs:string" style="query" name="title"/>
		<param default="CONTAINS" type="xs:string" style="query" name="titleOper"/>
		<param default="RXN_RSS" type="xs:string" style="query" name="reactionOper"/>
		<param type="xs:string" style="query" name="reaction"/>
		<param default="STRUCTURE_SUB" type="xs:string" style="query" name="materialOper"/>
		<param type="xs:string" style="query" name="material"/>
		<param default="CONTAINS" type="xs:string" style="query" name="projectOper"/>
		<param type="xs:string" style="query" name="project"/>
		<param type="xs:string" style="query" name="createdBy"/>
		<param type="xs:string" style="query" name="createdAfter"/>
		<param type="xs:string" style="query" name="createdBefore"/>
		<param default="CONTAINS" type="xs:string" style="query" name="materialLabelOper"/>
		<param type="xs:string" style="query" name="materialLabel"/>
		<param type="xs:string" style="query" name="casNumber"/>
		<param default="EQUALS" type="xs:string" style="query" name="yieldOper"/>
		<param type="xs:string" style="query" name="yield"/>
		<param type="xs:string" style="query" name="deptGroup"/>
		<param type="xs:string" style="query" name="role"/>