-
Notifications
You must be signed in to change notification settings - Fork 1
URL patterns and their differences between Explorer 1 and Explorer 2
- Exp1: http://explorer.openphacts.org/#!p=CmpdByNameForm&u=http://www.conceptwiki.org/concept/dd758846-1dac-4f0d-a329-06af9a7fa413
- Exp2: http://explorer2.openphacts.org/compounds?uri=http://www.conceptwiki.org/concept/dd758846-1dac-4f0d-a329-06af9a7fa413
Explorer 1 | Explorer 2 |
---|---|
#!p=CmpdByNameForm&u= | compounds?uri= |
- Exp1: http://explorer.openphacts.org/#!p=PharmByCmpdNameForm&u=http://www.conceptwiki.org/concept/dd758846-1dac-4f0d-a329-06af9a7fa413
- Exp2: http://explorer2.openphacts.org/compounds/pharmacology?uri=http://www.conceptwiki.org/concept/dd758846-1dac-4f0d-a329-06af9a7fa413
Explorer 1 | Explorer 2 |
---|---|
#!p=PharmByCmpdNameForm&u= | compounds/pharmacology?uri= |
- Exp1: No URL, is a function of structure search form and the functionality is often broken due to third part dependencies
- Exp2: http://explorer2.openphacts.org/compounds/draw?smiles=CC1%3DC(C(%3DCC%3DC1)C(%3DO)O)OC(%3DO)C
URL pattern is compounds/draw?smiles= where the SMILES has been URL encoded.
-
Explorer 1 exact http://explorer.openphacts.org/#!p=SimSearchForm&sm=CC(=O)OC1=CC=CC=C1C(=O)O&st=exact
-
Explorer 1 substructure http://explorer.openphacts.org/#!p=SimSearchForm&sm=CC(=O)OC1=CC=CC=C1C(=O)O&st=sub
-
Explorer 1 similarity http://explorer.openphacts.org/#!p=SimSearchForm&sm=CC(=O)OC1=CC=CC=C1C(=O)O&st=sim
-
Explorer 2 exact http://explorer2.openphacts.org/compounds/structure?smiles=CC(%3DO)OC1%3DCC%3DCC%3DC1C(%3DO)O&type=exact
-
Explorer 2 substructure http://explorer2.openphacts.org/compounds/structure?match=0&records=100&smiles=CC(%3DO)OC1%3DCC%3DCC%3DC1C(%3DO)O&threshold=0.9&thresholdtype=0&type=substructure
-
Explorer 2 similarity http://explorer2.openphacts.org/compounds/structure?match=0&records=100&smiles=CC(%3DO)OC1%3DCC%3DCC%3DC1C(%3DO)O&threshold=0.9&thresholdtype=0&type=similarity
The start of the URL pattern in Explorer 1 is #!p=SimSearchForm&sm= and in Explorer 2 is compounds/structure?smiles=
The URL then includes parameters defining the type of structure search:
Explorer 1 | Explorer 2 |
---|---|
&st=exact | &type=exact |
&st=sub | &type=substructure |
&st=sim | &type=similarity |
There are also additional parameters for substructure and similarity search for threshold
, match
, records
and thresholdtype
. See the API docs for further details. Substructure only uses records
and ignores the rest.
- Explorer 1 http://explorer.openphacts.org/#!p=TargetByNameForm&u=http://www.conceptwiki.org/concept/b932a1ed-b6c3-4291-a98a-e195668eda49
- Explorer 2 http://explorer2.openphacts.org/targets?uri=http://www.conceptwiki.org/concept/b932a1ed-b6c3-4291-a98a-e195668eda49
Explorer 1 | Explorer 2 |
---|---|
#!p=TargetByNameForm&u= | targets?uri= |
- Explorer 1 http://explorer.openphacts.org/#!p=PharmByTargetNameForm&u=http://www.conceptwiki.org/concept/b932a1ed-b6c3-4291-a98a-e195668eda49
- Explorer 2 http://explorer2.openpahcts.org/targets/pharmacology?uri=http://www.conceptwiki.org/concept/b932a1ed-b6c3-4291-a98a-e195668eda49
Explorer 1 | Explorer 2 |
---|---|
#!p=PharmByTargetNameForm&u= | targets/pharmacology?uri= |
Explorer 1 can only show the enzyme hierarchy.
- Explorer 1 http://explorer.openphacts.org/#!p=PharmEnzymeForm&ec=1.1.1.1
- Explorer 2 http://explorer2.openphacts.org/trees/pharmacology?uri=http%3A%2F%2Fpurl.uniprot.org%2Fenzyme%2F1.1.1.1
Explorer 1 | Explorer 2 |
---|---|
#!p=PharmEnzymeForm&ec= | trees/pharmacology?uri= |
Explorer 2 can also show the other hierarchies available in API version 1.3+.