pymetadata 0.5.3__py3-none-any.whl → 0.5.4__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of pymetadata might be problematic. Click here for more details.
- pymetadata/__init__.py +1 -1
- pymetadata/chebi.py +21 -29
- pymetadata/core/annotation.py +4 -1
- {pymetadata-0.5.3.dist-info → pymetadata-0.5.4.dist-info}/METADATA +1 -2
- {pymetadata-0.5.3.dist-info → pymetadata-0.5.4.dist-info}/RECORD +7 -8
- pymetadata/resources/chebi_webservice_wsdl.xml +0 -509
- {pymetadata-0.5.3.dist-info → pymetadata-0.5.4.dist-info}/WHEEL +0 -0
- {pymetadata-0.5.3.dist-info → pymetadata-0.5.4.dist-info}/licenses/LICENSE +0 -0
pymetadata/__init__.py
CHANGED
pymetadata/chebi.py
CHANGED
|
@@ -1,28 +1,19 @@
|
|
|
1
1
|
"""Module for working with chebi."""
|
|
2
2
|
|
|
3
3
|
from pathlib import Path
|
|
4
|
-
from pprint import pprint
|
|
5
4
|
from typing import Any, Dict, Optional
|
|
6
|
-
|
|
7
|
-
from zeep import Client
|
|
8
|
-
|
|
5
|
+
import requests
|
|
9
6
|
|
|
10
7
|
import pymetadata
|
|
11
8
|
from pymetadata import log
|
|
12
9
|
from pymetadata.cache import DataclassJSONEncoder, read_json_cache, write_json_cache
|
|
10
|
+
from pymetadata.console import console
|
|
13
11
|
|
|
14
12
|
logger = log.get_logger(__name__)
|
|
15
13
|
|
|
16
|
-
# FIXME: copy the file to the cache dir
|
|
17
|
-
client = Client(str(pymetadata.RESOURCES_DIR / "chebi_webservice_wsdl.xml"))
|
|
18
|
-
|
|
19
14
|
|
|
20
15
|
class ChebiQuery:
|
|
21
|
-
"""Class to query information from ChEBI.
|
|
22
|
-
|
|
23
|
-
An overview over available methods:
|
|
24
|
-
python -mzeep https://www.ebi.ac.uk/webservices/chebi/2.0/webservice?wsdl
|
|
25
|
-
"""
|
|
16
|
+
"""Class to query information from ChEBI."""
|
|
26
17
|
|
|
27
18
|
@staticmethod
|
|
28
19
|
def query(
|
|
@@ -52,27 +43,28 @@ class ChebiQuery:
|
|
|
52
43
|
|
|
53
44
|
# fetch and cache data
|
|
54
45
|
if not data:
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
46
|
+
response = requests.get(
|
|
47
|
+
url=f"https://www.ebi.ac.uk/chebi/backend/api/public/compounds/?chebi_ids={chebi}"
|
|
48
|
+
)
|
|
49
|
+
if response.status_code == 200:
|
|
50
|
+
result = response.json()
|
|
51
|
+
else:
|
|
59
52
|
logger.error(f"CHEBI information could not be retrieved for: {chebi}")
|
|
60
53
|
return dict()
|
|
61
54
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
if formulae:
|
|
66
|
-
formula = formulae[0]["data"]
|
|
67
|
-
|
|
55
|
+
result = result[chebi]["data"]
|
|
56
|
+
chemical_data = result["chemical_data"]
|
|
57
|
+
default_structure = result["default_structure"]
|
|
68
58
|
data = {
|
|
69
59
|
"chebi": chebi,
|
|
70
|
-
"name": result["
|
|
60
|
+
"name": result["ascii_name"],
|
|
71
61
|
"definition": result["definition"],
|
|
72
|
-
"formula": formula,
|
|
73
|
-
"charge":
|
|
74
|
-
"mass":
|
|
75
|
-
"inchikey":
|
|
62
|
+
"formula": chemical_data["formula"] if chemical_data else None,
|
|
63
|
+
"charge": chemical_data["charge"] if chemical_data else None,
|
|
64
|
+
"mass": chemical_data["mass"] if chemical_data else None,
|
|
65
|
+
"inchikey": default_structure["standard_inchi_key"]
|
|
66
|
+
if default_structure
|
|
67
|
+
else None,
|
|
76
68
|
}
|
|
77
69
|
|
|
78
70
|
logger.info(f"Write chebi: {chebi_path}")
|
|
@@ -86,7 +78,7 @@ class ChebiQuery:
|
|
|
86
78
|
if __name__ == "__main__":
|
|
87
79
|
chebis = ["CHEBI:2668", "CHEBI:138366", "CHEBI:9637", "CHEBI:155897"]
|
|
88
80
|
for chebi in chebis:
|
|
89
|
-
|
|
81
|
+
console.rule(chebi, align="left", style="bold white")
|
|
90
82
|
d = ChebiQuery.query(chebi=chebi, cache=False)
|
|
91
|
-
|
|
83
|
+
console.print(d)
|
|
92
84
|
d = ChebiQuery.query(chebi=chebi, cache=True)
|
pymetadata/core/annotation.py
CHANGED
|
@@ -98,6 +98,8 @@ class RDFAnnotation:
|
|
|
98
98
|
f"{resource} does not conform to "
|
|
99
99
|
f"http(s)://identifiers.org/collection/id or http(s)://identifiers.org/id",
|
|
100
100
|
)
|
|
101
|
+
|
|
102
|
+
# handle urns
|
|
101
103
|
elif resource.startswith("urn:miriam:"):
|
|
102
104
|
match3 = MIRIAM_URN_PATTERN.match(resource)
|
|
103
105
|
if match3:
|
|
@@ -113,13 +115,14 @@ class RDFAnnotation:
|
|
|
113
115
|
else:
|
|
114
116
|
# handle short notation
|
|
115
117
|
tokens = resource.split("/")
|
|
116
|
-
if len(tokens)
|
|
118
|
+
if len(tokens) > 1:
|
|
117
119
|
self.collection = tokens[0]
|
|
118
120
|
self.term = "/".join(tokens[1:])
|
|
119
121
|
elif len(tokens) == 1 and ":" in tokens[0]:
|
|
120
122
|
self.collection = tokens[0].split(":")[0].lower()
|
|
121
123
|
self.term = tokens[0]
|
|
122
124
|
|
|
125
|
+
# validation
|
|
123
126
|
if len(tokens) < 2 and not self.collection:
|
|
124
127
|
logger.error(
|
|
125
128
|
f"Resource `{resource}` could not be split in collection and term. "
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pymetadata
|
|
3
|
-
Version: 0.5.
|
|
3
|
+
Version: 0.5.4
|
|
4
4
|
Summary: pymetadata are python utilities for working with metadata.
|
|
5
5
|
Author-email: Matthias König <konigmatt@googlemail.com>
|
|
6
6
|
Maintainer-email: Matthias König <konigmatt@googlemail.com>
|
|
@@ -27,7 +27,6 @@ Requires-Dist: pydantic>=2.10.4
|
|
|
27
27
|
Requires-Dist: requests>=2.32.3
|
|
28
28
|
Requires-Dist: rich>=13.9.4
|
|
29
29
|
Requires-Dist: xmltodict>=0.14.2
|
|
30
|
-
Requires-Dist: zeep>=4.3.1
|
|
31
30
|
Provides-Extra: dev
|
|
32
31
|
Requires-Dist: bump-my-version>=0.29.0; extra == 'dev'
|
|
33
32
|
Requires-Dist: mypy>=1.9.0; extra == 'dev'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
pymetadata/__init__.py,sha256=
|
|
1
|
+
pymetadata/__init__.py,sha256=jesaxsDSp7xbL8JFTMU_pSdcTcYx1NdgzY_XV8wgoD0,357
|
|
2
2
|
pymetadata/cache.py,sha256=tQuMIcd1cOfO0dvODQMG92_IrHqgswPfshhFjtl7Pd0,1409
|
|
3
|
-
pymetadata/chebi.py,sha256=
|
|
3
|
+
pymetadata/chebi.py,sha256=P9OWSf8fzcjfMscPG8LORMNnFRUye-Ai-Y3NiGyG0uc,2822
|
|
4
4
|
pymetadata/console.py,sha256=ouDYOx_81ndvtMW5GVrut71uzPC5xlvibGu9N5YdbRA,332
|
|
5
5
|
pymetadata/log.py,sha256=3uRVMYolalrS0PVWS_4qSme8RYhot3_W2ad1JopI88g,664
|
|
6
6
|
pymetadata/omex.py,sha256=ZFsX9Xbh8sgT1UeBpKMgdrOh2PGTxrH2IAdYo_R9xc0,29927
|
|
@@ -8,7 +8,7 @@ pymetadata/omex_v2.py,sha256=HZBg_wmQWixweOZG3qVj2zqG_o1x9Ljxy-JEP6-ZFhM,584
|
|
|
8
8
|
pymetadata/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
9
9
|
pymetadata/unichem.py,sha256=SCdljAA6dsR3DrD_OrjRoXIMhgwVV-MiXoCiNMVo_-0,6894
|
|
10
10
|
pymetadata/core/__init__.py,sha256=VWZCD9TgSGldzdtXoarvp_2oUHKXQkC1T-VUSvMLwNA,28
|
|
11
|
-
pymetadata/core/annotation.py,sha256=
|
|
11
|
+
pymetadata/core/annotation.py,sha256=aAkgWzx-Qmp2fUO3Qn-yq0-Ht3fEiwaR1yAlqXvvQJ4,13742
|
|
12
12
|
pymetadata/core/creator.py,sha256=0_z0HPhO2Tq8FnAED_4kuVzUiPfm_tYMiZSvyw73Aho,1307
|
|
13
13
|
pymetadata/core/synonym.py,sha256=-2_1ouSWAtQK5eZv2-p6CIJgYZX4xGKua-09ubBg5uo,155
|
|
14
14
|
pymetadata/core/xref.py,sha256=qlUfAb5wk4bOwPiUCEV0s9gIWVdWf5yup1W8UxR5uHY,1594
|
|
@@ -33,10 +33,9 @@ pymetadata/metadata/sbo.py,sha256=x8Sg6k4VhqkcFF_NjBRF_RixCYIwJvUAz2YSuq-77HU,13
|
|
|
33
33
|
pymetadata/ontologies/__init__.py,sha256=vIpTqwqrhOAOYfnavWBQL149dNMAPv-OE5IyloYQCrQ,18
|
|
34
34
|
pymetadata/ontologies/ols.py,sha256=lKmhRMKuEx29QAZsxCRlzUwH48CGtl8YKM2AcsiDFVk,6814
|
|
35
35
|
pymetadata/ontologies/ontology.py,sha256=-3_AAq-HxRBOZReuLb3dj56HPPFUXsW22ULwaYQLIBc,9153
|
|
36
|
-
pymetadata/resources/chebi_webservice_wsdl.xml,sha256=a5P4An0PAANmrBbkLKkFnm4JObFPm2Xq5DbcwO-rbN8,23847
|
|
37
36
|
pymetadata/resources/ontologies/README.md,sha256=h1LIKpr42-s0RzwpCufkR_YJ2nWiwOapZX_frRXk3Qg,163
|
|
38
37
|
pymetadata/resources/templates/ontology_enum.pytemplate,sha256=nona0KbGoFumgJo2v_J-pcTniXveiTGb8bz-1rMoDR8,1672
|
|
39
|
-
pymetadata-0.5.
|
|
40
|
-
pymetadata-0.5.
|
|
41
|
-
pymetadata-0.5.
|
|
42
|
-
pymetadata-0.5.
|
|
38
|
+
pymetadata-0.5.4.dist-info/METADATA,sha256=0U53rnyuNU9DAru79B-TAmujpzBCzvFbYTYEg5iCIxE,4936
|
|
39
|
+
pymetadata-0.5.4.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
40
|
+
pymetadata-0.5.4.dist-info/licenses/LICENSE,sha256=4oZhYj-TN8e6NrD0wup4nJfQUH9zX0v3gz43xN6F2hs,1059
|
|
41
|
+
pymetadata-0.5.4.dist-info/RECORD,,
|
|
@@ -1,509 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<!-- Published by JAX-WS RI (http://jax-ws.java.net). RI's version is JAX-WS RI 2.3.0.2 svn-revision#b53771461f7d15f7842d8b88fd794780f6b9c4b4. -->
|
|
3
|
-
<definitions xmlns:tns="https://www.ebi.ac.uk/webservices/chebi" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" name="ChebiWebServices" targetNamespace="https://www.ebi.ac.uk/webservices/chebi">
|
|
4
|
-
<types>
|
|
5
|
-
<xsd:schema xmlns="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="https://www.ebi.ac.uk/webservices/chebi">
|
|
6
|
-
|
|
7
|
-
<xsd:complexType name="LiteEntity">
|
|
8
|
-
<xsd:sequence>
|
|
9
|
-
<xsd:element maxOccurs="1" minOccurs="1" name="chebiId" type="xsd:string"/>
|
|
10
|
-
<xsd:element maxOccurs="1" minOccurs="0" name="chebiAsciiName" type="xsd:string"/>
|
|
11
|
-
<xsd:element maxOccurs="1" minOccurs="0" name="searchScore" type="xsd:float"/>
|
|
12
|
-
<xsd:element maxOccurs="1" minOccurs="0" name="entityStar" type="xsd:int"/>
|
|
13
|
-
</xsd:sequence>
|
|
14
|
-
</xsd:complexType>
|
|
15
|
-
|
|
16
|
-
<xsd:complexType name="LiteEntityList">
|
|
17
|
-
<xsd:sequence>
|
|
18
|
-
<xsd:element maxOccurs="unbounded" minOccurs="0" name="ListElement" type="tns:LiteEntity"/>
|
|
19
|
-
</xsd:sequence>
|
|
20
|
-
</xsd:complexType>
|
|
21
|
-
|
|
22
|
-
<xsd:complexType name="OntologyDataItemList">
|
|
23
|
-
<xsd:sequence>
|
|
24
|
-
<xsd:element maxOccurs="unbounded" minOccurs="0" name="ListElement" type="tns:OntologyDataItem"/>
|
|
25
|
-
</xsd:sequence>
|
|
26
|
-
</xsd:complexType>
|
|
27
|
-
|
|
28
|
-
<xsd:complexType name="CommentDataItem">
|
|
29
|
-
<xsd:sequence>
|
|
30
|
-
<xsd:element maxOccurs="1" minOccurs="1" name="text" type="xsd:string"/>
|
|
31
|
-
<xsd:element maxOccurs="1" minOccurs="1" name="date" type="xsd:string"/>
|
|
32
|
-
</xsd:sequence>
|
|
33
|
-
</xsd:complexType>
|
|
34
|
-
|
|
35
|
-
<xsd:complexType name="DataItem">
|
|
36
|
-
<xsd:sequence>
|
|
37
|
-
<xsd:element maxOccurs="1" minOccurs="1" name="data" type="xsd:string"/>
|
|
38
|
-
<xsd:element maxOccurs="1" minOccurs="0" name="type" type="xsd:string"/>
|
|
39
|
-
<xsd:element maxOccurs="1" minOccurs="0" name="source" type="xsd:string"/>
|
|
40
|
-
<xsd:element maxOccurs="unbounded" minOccurs="0" name="Comments" type="tns:CommentDataItem"/>
|
|
41
|
-
</xsd:sequence>
|
|
42
|
-
</xsd:complexType>
|
|
43
|
-
|
|
44
|
-
<xsd:complexType name="StructureDataItem">
|
|
45
|
-
<xsd:sequence>
|
|
46
|
-
<xsd:element maxOccurs="1" minOccurs="1" name="structure" type="xsd:string"/>
|
|
47
|
-
<xsd:element maxOccurs="1" minOccurs="1" name="type" type="xsd:string"/>
|
|
48
|
-
<xsd:element maxOccurs="1" minOccurs="0" name="dimension" type="xsd:string"/>
|
|
49
|
-
<xsd:element maxOccurs="1" minOccurs="0" name="defaultStructure" type="xsd:boolean"/>
|
|
50
|
-
<xsd:element maxOccurs="unbounded" minOccurs="0" name="Comments" type="tns:CommentDataItem"/>
|
|
51
|
-
</xsd:sequence>
|
|
52
|
-
</xsd:complexType>
|
|
53
|
-
|
|
54
|
-
<xsd:complexType name="OntologyDataItem">
|
|
55
|
-
<xsd:sequence>
|
|
56
|
-
<xsd:element maxOccurs="1" minOccurs="1" name="chebiName" type="xsd:string"/>
|
|
57
|
-
<xsd:element maxOccurs="1" minOccurs="1" name="chebiId" type="xsd:string"/>
|
|
58
|
-
<xsd:element maxOccurs="1" minOccurs="1" name="type" type="xsd:string"/>
|
|
59
|
-
<xsd:element maxOccurs="1" minOccurs="1" name="status" type="xsd:string"/>
|
|
60
|
-
<xsd:element maxOccurs="1" minOccurs="1" name="cyclicRelationship" type="xsd:boolean"/>
|
|
61
|
-
<xsd:element maxOccurs="unbounded" minOccurs="0" name="Comments" type="tns:CommentDataItem"/>
|
|
62
|
-
<xsd:element maxOccurs="unbounded" minOccurs="0" name="OntologyElement" type="tns:OntologyDataItem"/>
|
|
63
|
-
</xsd:sequence>
|
|
64
|
-
</xsd:complexType>
|
|
65
|
-
|
|
66
|
-
<xsd:complexType name="CompoundOriginDataItem">
|
|
67
|
-
<xsd:sequence>
|
|
68
|
-
<xsd:element maxOccurs="1" minOccurs="1" name="speciesText" type="xsd:string"/>
|
|
69
|
-
<xsd:element maxOccurs="1" minOccurs="0" name="speciesAccession" type="xsd:string"/>
|
|
70
|
-
<xsd:element maxOccurs="1" minOccurs="0" name="componentText" type="xsd:string"/>
|
|
71
|
-
<xsd:element maxOccurs="1" minOccurs="0" name="componentAccession" type="xsd:string"/>
|
|
72
|
-
<xsd:element maxOccurs="1" minOccurs="0" name="strainText" type="xsd:string"/>
|
|
73
|
-
<xsd:element maxOccurs="1" minOccurs="0" name="strainAccession" type="xsd:string"/>
|
|
74
|
-
<xsd:element maxOccurs="1" minOccurs="1" name="SourceType" type="xsd:string"/>
|
|
75
|
-
<xsd:element maxOccurs="1" minOccurs="1" name="SourceAccession" type="xsd:string"/>
|
|
76
|
-
</xsd:sequence>
|
|
77
|
-
</xsd:complexType>
|
|
78
|
-
|
|
79
|
-
<xsd:complexType name="Entity">
|
|
80
|
-
<xsd:sequence>
|
|
81
|
-
<xsd:element maxOccurs="1" minOccurs="1" name="chebiId" type="xsd:string"/>
|
|
82
|
-
<xsd:element maxOccurs="1" minOccurs="1" name="chebiAsciiName" type="xsd:string"/>
|
|
83
|
-
<xsd:element maxOccurs="1" minOccurs="0" name="definition" type="xsd:string"/>
|
|
84
|
-
<xsd:element maxOccurs="1" minOccurs="1" name="status" type="xsd:string"/>
|
|
85
|
-
<xsd:element maxOccurs="1" minOccurs="0" name="smiles" type="xsd:string"/>
|
|
86
|
-
<xsd:element maxOccurs="1" minOccurs="0" name="inchi" type="xsd:string"/>
|
|
87
|
-
<xsd:element maxOccurs="1" minOccurs="0" name="inchiKey" type="xsd:string"/>
|
|
88
|
-
<xsd:element maxOccurs="1" minOccurs="0" name="charge" type="xsd:string"/>
|
|
89
|
-
<xsd:element maxOccurs="1" minOccurs="0" name="mass" type="xsd:string"/>
|
|
90
|
-
<xsd:element maxOccurs="1" minOccurs="0" name="monoisotopicMass" type="xsd:string"/>
|
|
91
|
-
<xsd:element maxOccurs="1" minOccurs="0" name="entityStar" type="xsd:int"/>
|
|
92
|
-
<xsd:element maxOccurs="unbounded" minOccurs="0" name="SecondaryChEBIIds" type="xsd:string"/>
|
|
93
|
-
<xsd:element maxOccurs="unbounded" minOccurs="0" name="Synonyms" type="tns:DataItem"/>
|
|
94
|
-
<xsd:element maxOccurs="unbounded" minOccurs="0" name="IupacNames" type="tns:DataItem"/>
|
|
95
|
-
<xsd:element maxOccurs="unbounded" minOccurs="0" name="Formulae" type="tns:DataItem"/>
|
|
96
|
-
<xsd:element maxOccurs="unbounded" minOccurs="0" name="RegistryNumbers" type="tns:DataItem"/>
|
|
97
|
-
<xsd:element maxOccurs="unbounded" minOccurs="0" name="Citations" type="tns:DataItem"/>
|
|
98
|
-
<xsd:element maxOccurs="unbounded" minOccurs="0" name="ChemicalStructures" type="tns:StructureDataItem"/>
|
|
99
|
-
<xsd:element maxOccurs="unbounded" minOccurs="0" name="DatabaseLinks" type="tns:DataItem"/>
|
|
100
|
-
<xsd:element maxOccurs="unbounded" minOccurs="0" name="OntologyParents" type="tns:OntologyDataItem"/>
|
|
101
|
-
<xsd:element maxOccurs="unbounded" minOccurs="0" name="OntologyChildren" type="tns:OntologyDataItem"/>
|
|
102
|
-
<xsd:element maxOccurs="unbounded" minOccurs="0" name="GeneralComments" type="tns:CommentDataItem"/>
|
|
103
|
-
<xsd:element maxOccurs="unbounded" minOccurs="0" name="CompoundOrigins" type="tns:CompoundOriginDataItem"/>
|
|
104
|
-
</xsd:sequence>
|
|
105
|
-
</xsd:complexType>
|
|
106
|
-
|
|
107
|
-
<xsd:complexType name="UpdatedPolymer">
|
|
108
|
-
<xsd:sequence>
|
|
109
|
-
<xsd:element maxOccurs="1" minOccurs="1" name="updatedStructure" type="xsd:string"/>
|
|
110
|
-
<xsd:element maxOccurs="1" minOccurs="1" name="globalFormula" type="xsd:string"/>
|
|
111
|
-
<xsd:element maxOccurs="1" minOccurs="1" name="globalCharge" type="xsd:string"/>
|
|
112
|
-
<xsd:element maxOccurs="1" minOccurs="1" name="chebiId" type="xsd:string"/>
|
|
113
|
-
</xsd:sequence>
|
|
114
|
-
</xsd:complexType>
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
<complexType name="getLiteEntityResponse">
|
|
118
|
-
<sequence>
|
|
119
|
-
<element name="return" type="tns:LiteEntityList"/>
|
|
120
|
-
</sequence>
|
|
121
|
-
</complexType>
|
|
122
|
-
<element name="getLiteEntityResponse" type="tns:getLiteEntityResponse"/>
|
|
123
|
-
|
|
124
|
-
<simpleType name="SearchCategory">
|
|
125
|
-
<restriction base="xsd:string">
|
|
126
|
-
<enumeration value="ALL"/>
|
|
127
|
-
<enumeration value="CHEBI ID"/>
|
|
128
|
-
<enumeration value="CHEBI NAME"/>
|
|
129
|
-
<enumeration value="DEFINITION"/>
|
|
130
|
-
<enumeration value="ALL NAMES"/>
|
|
131
|
-
<enumeration value="IUPAC NAME"/>
|
|
132
|
-
<enumeration value="CITATIONS"/>
|
|
133
|
-
<enumeration value="REGISTRY NUMBERS"/>
|
|
134
|
-
<enumeration value="MANUAL XREFS"/>
|
|
135
|
-
<enumeration value="AUTOMATIC XREFS"/>
|
|
136
|
-
<enumeration value="FORMULA"/>
|
|
137
|
-
<enumeration value="MASS"/>
|
|
138
|
-
<enumeration value="MONOISOTOPIC MASS"/>
|
|
139
|
-
<enumeration value="CHARGE"/>
|
|
140
|
-
<enumeration value="INCHI/INCHI KEY"/>
|
|
141
|
-
<enumeration value="SMILES"/>
|
|
142
|
-
<enumeration value="SPECIES"/>
|
|
143
|
-
</restriction>
|
|
144
|
-
</simpleType>
|
|
145
|
-
|
|
146
|
-
<simpleType name="StructureSearchCategory">
|
|
147
|
-
<restriction base="xsd:string">
|
|
148
|
-
<enumeration value="IDENTITY"/>
|
|
149
|
-
<enumeration value="SUBSTRUCTURE"/>
|
|
150
|
-
<enumeration value="SIMILARITY"/>
|
|
151
|
-
</restriction>
|
|
152
|
-
</simpleType>
|
|
153
|
-
|
|
154
|
-
<simpleType name="StructureType">
|
|
155
|
-
<restriction base="xsd:string">
|
|
156
|
-
<enumeration value="MOLFILE"/>
|
|
157
|
-
<enumeration value="CML"/>
|
|
158
|
-
<enumeration value="SMILES"/>
|
|
159
|
-
<!--<enumeration value="INCHI"/>-->
|
|
160
|
-
</restriction>
|
|
161
|
-
</simpleType>
|
|
162
|
-
|
|
163
|
-
<simpleType name="RelationshipType">
|
|
164
|
-
<restriction base="xsd:string">
|
|
165
|
-
<enumeration value="is a"/>
|
|
166
|
-
<enumeration value="has part"/>
|
|
167
|
-
<enumeration value="is conjugate base of"/>
|
|
168
|
-
<enumeration value="is conjugate acid of"/>
|
|
169
|
-
<enumeration value="is tautomer of"/>
|
|
170
|
-
<enumeration value="is enantiomer of"/>
|
|
171
|
-
<enumeration value="has functional parent"/>
|
|
172
|
-
<enumeration value="has parent hydride"/>
|
|
173
|
-
<enumeration value="is substituent group from"/>
|
|
174
|
-
<enumeration value="has role"/>
|
|
175
|
-
</restriction>
|
|
176
|
-
</simpleType>
|
|
177
|
-
|
|
178
|
-
<simpleType name="StarsCategory">
|
|
179
|
-
<restriction base="xsd:string">
|
|
180
|
-
<enumeration value="ALL"/>
|
|
181
|
-
<enumeration value="TWO ONLY"/>
|
|
182
|
-
<enumeration value="THREE ONLY"/>
|
|
183
|
-
</restriction>
|
|
184
|
-
</simpleType>
|
|
185
|
-
|
|
186
|
-
<complexType name="getLiteEntity">
|
|
187
|
-
<sequence>
|
|
188
|
-
<element name="search" type="xsd:string"/>
|
|
189
|
-
<element name="searchCategory" type="tns:SearchCategory"/>
|
|
190
|
-
<element name="maximumResults" type="xsd:int"/>
|
|
191
|
-
<element name="stars" type="tns:StarsCategory"/>
|
|
192
|
-
</sequence>
|
|
193
|
-
</complexType>
|
|
194
|
-
<element name="getLiteEntity" type="tns:getLiteEntity"/>
|
|
195
|
-
|
|
196
|
-
<complexType name="getCompleteEntityResponse">
|
|
197
|
-
<sequence>
|
|
198
|
-
<element name="return" type="tns:Entity"/>
|
|
199
|
-
</sequence>
|
|
200
|
-
</complexType>
|
|
201
|
-
<element name="getCompleteEntityResponse" type="tns:getCompleteEntityResponse"/>
|
|
202
|
-
|
|
203
|
-
<complexType name="getCompleteEntity">
|
|
204
|
-
<sequence>
|
|
205
|
-
<element name="chebiId" type="xsd:string"/>
|
|
206
|
-
</sequence>
|
|
207
|
-
</complexType>
|
|
208
|
-
<element name="getCompleteEntity" type="tns:getCompleteEntity"/>
|
|
209
|
-
|
|
210
|
-
<!--Returns a the complete entity's using a list of LiteEntities. The maximum list passed is 50-->
|
|
211
|
-
<complexType name="getCompleteEntityByListResponse">
|
|
212
|
-
<sequence>
|
|
213
|
-
<xsd:element maxOccurs="unbounded" minOccurs="0" name="return" type="tns:Entity"/>
|
|
214
|
-
</sequence>
|
|
215
|
-
</complexType>
|
|
216
|
-
<element name="getCompleteEntityByListResponse" type="tns:getCompleteEntityByListResponse"/>
|
|
217
|
-
|
|
218
|
-
<complexType name="getCompleteEntityByList">
|
|
219
|
-
<sequence>
|
|
220
|
-
<xsd:element maxOccurs="50" minOccurs="0" name="ListOfChEBIIds" type="xsd:string"/>
|
|
221
|
-
</sequence>
|
|
222
|
-
</complexType>
|
|
223
|
-
<element name="getCompleteEntityByList" type="tns:getCompleteEntityByList"/>
|
|
224
|
-
|
|
225
|
-
<complexType name="getOntologyParentsResponse">
|
|
226
|
-
<sequence>
|
|
227
|
-
<element name="return" type="tns:OntologyDataItemList"/>
|
|
228
|
-
</sequence>
|
|
229
|
-
</complexType>
|
|
230
|
-
<element name="getOntologyParentsResponse" type="tns:getOntologyParentsResponse"/>
|
|
231
|
-
|
|
232
|
-
<complexType name="getOntologyParents">
|
|
233
|
-
<sequence>
|
|
234
|
-
<element name="chebiId" type="xsd:string"/>
|
|
235
|
-
</sequence>
|
|
236
|
-
</complexType>
|
|
237
|
-
<element name="getOntologyParents" type="tns:getOntologyParents"/>
|
|
238
|
-
|
|
239
|
-
<complexType name="getOntologyChildrenResponse">
|
|
240
|
-
<sequence>
|
|
241
|
-
<element name="return" type="tns:OntologyDataItemList"/>
|
|
242
|
-
</sequence>
|
|
243
|
-
</complexType>
|
|
244
|
-
<element name="getOntologyChildrenResponse" type="tns:getOntologyChildrenResponse"/>
|
|
245
|
-
|
|
246
|
-
<complexType name="getOntologyChildren">
|
|
247
|
-
<sequence>
|
|
248
|
-
<element name="chebiId" type="xsd:string"/>
|
|
249
|
-
</sequence>
|
|
250
|
-
</complexType>
|
|
251
|
-
<element name="getOntologyChildren" type="tns:getOntologyChildren"/>
|
|
252
|
-
<complexType name="getAllOntologyChildrenInPathResponse">
|
|
253
|
-
<sequence>
|
|
254
|
-
<element name="return" type="tns:OntologyDataItemList"/>
|
|
255
|
-
</sequence>
|
|
256
|
-
</complexType>
|
|
257
|
-
<element name="getAllOntologyChildrenInPathResponse" type="tns:getAllOntologyChildrenInPathResponse"/>
|
|
258
|
-
|
|
259
|
-
<complexType name="getAllOntologyChildrenInPath">
|
|
260
|
-
<sequence>
|
|
261
|
-
<element name="chebiId" type="xsd:string"/>
|
|
262
|
-
<element name="relationshipType" type="tns:RelationshipType"/>
|
|
263
|
-
<element name="structureOnly" type="xsd:boolean"/>
|
|
264
|
-
</sequence>
|
|
265
|
-
</complexType>
|
|
266
|
-
<element name="getAllOntologyChildrenInPath" type="tns:getAllOntologyChildrenInPath"/>
|
|
267
|
-
|
|
268
|
-
<complexType name="getStructureSearchResponse">
|
|
269
|
-
<sequence>
|
|
270
|
-
<element name="return" type="tns:LiteEntityList"/>
|
|
271
|
-
</sequence>
|
|
272
|
-
</complexType>
|
|
273
|
-
<element name="getStructureSearchResponse" type="tns:getLiteEntityResponse"/>
|
|
274
|
-
|
|
275
|
-
<complexType name="getStructureSearch">
|
|
276
|
-
<sequence>
|
|
277
|
-
<element name="structure" type="xsd:string"/>
|
|
278
|
-
<element name="type" type="tns:StructureType"/>
|
|
279
|
-
<element name="structureSearchCategory" type="tns:StructureSearchCategory"/>
|
|
280
|
-
<element name="totalResults" type="xsd:int"/>
|
|
281
|
-
<element name="tanimotoCutoff" type="xsd:float"/>
|
|
282
|
-
</sequence>
|
|
283
|
-
</complexType>
|
|
284
|
-
<element name="getStructureSearch" type="tns:getStructureSearch"/>
|
|
285
|
-
|
|
286
|
-
<complexType name="getUpdatedPolymer">
|
|
287
|
-
<sequence>
|
|
288
|
-
<element name="chebiId" type="xsd:string"/>
|
|
289
|
-
<xsd:element maxOccurs="unbounded" minOccurs="1" name="polymerisationIndex" type="xsd:string"/>
|
|
290
|
-
</sequence>
|
|
291
|
-
</complexType>
|
|
292
|
-
<element name="getUpdatedPolymer" type="tns:getUpdatedPolymer"/>
|
|
293
|
-
|
|
294
|
-
<complexType name="getUpdatedPolymerResponse">
|
|
295
|
-
<sequence>
|
|
296
|
-
<element name="return" type="tns:UpdatedPolymer"/>
|
|
297
|
-
</sequence>
|
|
298
|
-
</complexType>
|
|
299
|
-
<element name="getUpdatedPolymerResponse" type="tns:getUpdatedPolymerResponse"/>
|
|
300
|
-
|
|
301
|
-
<element name="ChebiWebServiceFault" type="tns:ChebiWebServiceFault"/>
|
|
302
|
-
|
|
303
|
-
<complexType name="ChebiWebServiceFault">
|
|
304
|
-
<sequence>
|
|
305
|
-
<element name="faultInfo" type="xsd:string"/>
|
|
306
|
-
<element name="message" type="xsd:string"/>
|
|
307
|
-
</sequence>
|
|
308
|
-
</complexType>
|
|
309
|
-
|
|
310
|
-
</xsd:schema>
|
|
311
|
-
</types>
|
|
312
|
-
<message name="getLiteEntity">
|
|
313
|
-
<part name="parameters" element="tns:getLiteEntity"/>
|
|
314
|
-
</message>
|
|
315
|
-
<message name="getLiteEntityResponse">
|
|
316
|
-
<part name="result" element="tns:getLiteEntityResponse"/>
|
|
317
|
-
</message>
|
|
318
|
-
<message name="getCompleteEntity">
|
|
319
|
-
<part name="parameters" element="tns:getCompleteEntity"/>
|
|
320
|
-
</message>
|
|
321
|
-
<message name="getCompleteEntityResponse">
|
|
322
|
-
<part name="result" element="tns:getCompleteEntityResponse"/>
|
|
323
|
-
</message>
|
|
324
|
-
<message name="getCompleteEntityByList">
|
|
325
|
-
<part name="parameters" element="tns:getCompleteEntityByList"/>
|
|
326
|
-
</message>
|
|
327
|
-
<message name="getCompleteEntityByListResponse">
|
|
328
|
-
<part name="result" element="tns:getCompleteEntityByListResponse"/>
|
|
329
|
-
</message>
|
|
330
|
-
<message name="getOntologyParents">
|
|
331
|
-
<part name="parameters" element="tns:getOntologyParents"/>
|
|
332
|
-
</message>
|
|
333
|
-
<message name="getOntologyParentsResponse">
|
|
334
|
-
<part name="result" element="tns:getOntologyParentsResponse"/>
|
|
335
|
-
</message>
|
|
336
|
-
<message name="getOntologyChildren">
|
|
337
|
-
<part name="parameters" element="tns:getOntologyChildren"/>
|
|
338
|
-
</message>
|
|
339
|
-
<message name="getOntologyChildrenResponse">
|
|
340
|
-
<part name="result" element="tns:getOntologyChildrenResponse"/>
|
|
341
|
-
</message>
|
|
342
|
-
<message name="getAllOntologyChildrenInPath">
|
|
343
|
-
<part name="parameters" element="tns:getAllOntologyChildrenInPath"/>
|
|
344
|
-
</message>
|
|
345
|
-
<message name="getAllOntologyChildrenInPathResponse">
|
|
346
|
-
<part name="result" element="tns:getAllOntologyChildrenInPathResponse"/>
|
|
347
|
-
</message>
|
|
348
|
-
<message name="getStructureSearch">
|
|
349
|
-
<part name="parameters" element="tns:getStructureSearch"/>
|
|
350
|
-
</message>
|
|
351
|
-
<message name="getStructureSearchResponse">
|
|
352
|
-
<part name="result" element="tns:getStructureSearchResponse"/>
|
|
353
|
-
</message>
|
|
354
|
-
<message name="getUpdatedPolymer">
|
|
355
|
-
<part name="parameters" element="tns:getUpdatedPolymer"/>
|
|
356
|
-
</message>
|
|
357
|
-
<message name="getUpdatedPolymerResponse">
|
|
358
|
-
<part name="result" element="tns:getUpdatedPolymerResponse"/>
|
|
359
|
-
</message>
|
|
360
|
-
<message name="chebiWebServiceFault">
|
|
361
|
-
<part name="ChebiWebServiceFault" element="tns:ChebiWebServiceFault"/>
|
|
362
|
-
</message>
|
|
363
|
-
<portType name="ChebiWebServicePortType">
|
|
364
|
-
<operation name="getLiteEntity">
|
|
365
|
-
<input message="tns:getLiteEntity"/>
|
|
366
|
-
<output message="tns:getLiteEntityResponse"/>
|
|
367
|
-
<fault name="chebiWebServiceFault" message="tns:chebiWebServiceFault"/>
|
|
368
|
-
</operation>
|
|
369
|
-
<operation name="getCompleteEntity">
|
|
370
|
-
<input message="tns:getCompleteEntity"/>
|
|
371
|
-
<output message="tns:getCompleteEntityResponse"/>
|
|
372
|
-
<fault name="chebiWebServiceFault" message="tns:chebiWebServiceFault"/>
|
|
373
|
-
</operation>
|
|
374
|
-
<operation name="getCompleteEntityByList">
|
|
375
|
-
<input message="tns:getCompleteEntityByList"/>
|
|
376
|
-
<output message="tns:getCompleteEntityByListResponse"/>
|
|
377
|
-
<fault name="chebiWebServiceFault" message="tns:chebiWebServiceFault"/>
|
|
378
|
-
</operation>
|
|
379
|
-
<operation name="getOntologyParents">
|
|
380
|
-
<input message="tns:getOntologyParents"/>
|
|
381
|
-
<output message="tns:getOntologyParentsResponse"/>
|
|
382
|
-
<fault name="chebiWebServiceFault" message="tns:chebiWebServiceFault"/>
|
|
383
|
-
</operation>
|
|
384
|
-
<operation name="getOntologyChildren">
|
|
385
|
-
<input message="tns:getOntologyChildren"/>
|
|
386
|
-
<output message="tns:getOntologyChildrenResponse"/>
|
|
387
|
-
<fault name="chebiWebServiceFault" message="tns:chebiWebServiceFault"/>
|
|
388
|
-
</operation>
|
|
389
|
-
<operation name="getAllOntologyChildrenInPath">
|
|
390
|
-
<input message="tns:getAllOntologyChildrenInPath"/>
|
|
391
|
-
<output message="tns:getLiteEntityResponse"/>
|
|
392
|
-
<fault name="chebiWebServiceFault" message="tns:chebiWebServiceFault"/>
|
|
393
|
-
</operation>
|
|
394
|
-
<operation name="getStructureSearch">
|
|
395
|
-
<input message="tns:getStructureSearch"/>
|
|
396
|
-
<output message="tns:getStructureSearchResponse"/>
|
|
397
|
-
<fault name="chebiWebServiceFault" message="tns:chebiWebServiceFault"/>
|
|
398
|
-
</operation>
|
|
399
|
-
<operation name="getUpdatedPolymer">
|
|
400
|
-
<input message="tns:getUpdatedPolymer"/>
|
|
401
|
-
<output message="tns:getUpdatedPolymerResponse"/>
|
|
402
|
-
<fault name="chebiWebServiceFault" message="tns:chebiWebServiceFault"/>
|
|
403
|
-
</operation>
|
|
404
|
-
</portType>
|
|
405
|
-
<binding name="ChebiWebServiceBinding" type="tns:ChebiWebServicePortType">
|
|
406
|
-
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
|
|
407
|
-
<operation name="getCompleteEntity">
|
|
408
|
-
<soap:operation soapAction=""/>
|
|
409
|
-
<input>
|
|
410
|
-
<soap:body use="literal"/>
|
|
411
|
-
</input>
|
|
412
|
-
<output>
|
|
413
|
-
<soap:body use="literal"/>
|
|
414
|
-
</output>
|
|
415
|
-
<fault name="chebiWebServiceFault">
|
|
416
|
-
<soap:fault name="chebiWebServiceFault" use="literal"/>
|
|
417
|
-
</fault>
|
|
418
|
-
</operation>
|
|
419
|
-
<operation name="getCompleteEntityByList">
|
|
420
|
-
<soap:operation soapAction=""/>
|
|
421
|
-
<input>
|
|
422
|
-
<soap:body use="literal"/>
|
|
423
|
-
</input>
|
|
424
|
-
<output>
|
|
425
|
-
<soap:body use="literal"/>
|
|
426
|
-
</output>
|
|
427
|
-
<fault name="chebiWebServiceFault">
|
|
428
|
-
<soap:fault name="chebiWebServiceFault" use="literal"/>
|
|
429
|
-
</fault>
|
|
430
|
-
</operation>
|
|
431
|
-
<operation name="getLiteEntity">
|
|
432
|
-
<soap:operation soapAction=""/>
|
|
433
|
-
<input>
|
|
434
|
-
<soap:body use="literal"/>
|
|
435
|
-
</input>
|
|
436
|
-
<output>
|
|
437
|
-
<soap:body use="literal"/>
|
|
438
|
-
</output>
|
|
439
|
-
<fault name="chebiWebServiceFault">
|
|
440
|
-
<soap:fault name="chebiWebServiceFault" use="literal"/>
|
|
441
|
-
</fault>
|
|
442
|
-
</operation>
|
|
443
|
-
<operation name="getOntologyParents">
|
|
444
|
-
<soap:operation soapAction=""/>
|
|
445
|
-
<input>
|
|
446
|
-
<soap:body use="literal"/>
|
|
447
|
-
</input>
|
|
448
|
-
<output>
|
|
449
|
-
<soap:body use="literal"/>
|
|
450
|
-
</output>
|
|
451
|
-
<fault name="chebiWebServiceFault">
|
|
452
|
-
<soap:fault name="chebiWebServiceFault" use="literal"/>
|
|
453
|
-
</fault>
|
|
454
|
-
</operation>
|
|
455
|
-
<operation name="getOntologyChildren">
|
|
456
|
-
<soap:operation soapAction=""/>
|
|
457
|
-
<input>
|
|
458
|
-
<soap:body use="literal"/>
|
|
459
|
-
</input>
|
|
460
|
-
<output>
|
|
461
|
-
<soap:body use="literal"/>
|
|
462
|
-
</output>
|
|
463
|
-
<fault name="chebiWebServiceFault">
|
|
464
|
-
<soap:fault name="chebiWebServiceFault" use="literal"/>
|
|
465
|
-
</fault>
|
|
466
|
-
</operation>
|
|
467
|
-
<operation name="getAllOntologyChildrenInPath">
|
|
468
|
-
<soap:operation soapAction=""/>
|
|
469
|
-
<input>
|
|
470
|
-
<soap:body use="literal"/>
|
|
471
|
-
</input>
|
|
472
|
-
<output>
|
|
473
|
-
<soap:body use="literal"/>
|
|
474
|
-
</output>
|
|
475
|
-
<fault name="chebiWebServiceFault">
|
|
476
|
-
<soap:fault name="chebiWebServiceFault" use="literal"/>
|
|
477
|
-
</fault>
|
|
478
|
-
</operation>
|
|
479
|
-
<operation name="getStructureSearch">
|
|
480
|
-
<soap:operation soapAction=""/>
|
|
481
|
-
<input>
|
|
482
|
-
<soap:body use="literal"/>
|
|
483
|
-
</input>
|
|
484
|
-
<output>
|
|
485
|
-
<soap:body use="literal"/>
|
|
486
|
-
</output>
|
|
487
|
-
<fault name="chebiWebServiceFault">
|
|
488
|
-
<soap:fault name="chebiWebServiceFault" use="literal"/>
|
|
489
|
-
</fault>
|
|
490
|
-
</operation>
|
|
491
|
-
<operation name="getUpdatedPolymer">
|
|
492
|
-
<soap:operation soapAction=""/>
|
|
493
|
-
<input>
|
|
494
|
-
<soap:body use="literal"/>
|
|
495
|
-
</input>
|
|
496
|
-
<output>
|
|
497
|
-
<soap:body use="literal"/>
|
|
498
|
-
</output>
|
|
499
|
-
<fault name="chebiWebServiceFault">
|
|
500
|
-
<soap:fault name="chebiWebServiceFault" use="literal"/>
|
|
501
|
-
</fault>
|
|
502
|
-
</operation>
|
|
503
|
-
</binding>
|
|
504
|
-
<service name="ChebiWebServiceService">
|
|
505
|
-
<port name="ChebiWebServicePort" binding="tns:ChebiWebServiceBinding">
|
|
506
|
-
<soap:address location="http://www.ebi.ac.uk:80/webservices/chebi/2.0/webservice"/>
|
|
507
|
-
</port>
|
|
508
|
-
</service>
|
|
509
|
-
</definitions>
|
|
File without changes
|
|
File without changes
|