You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Returns the number of other components that have similar sequences.
1037
+
1038
+
Note that this endpoint only works if SBOLExplorer is activated.
1039
+
1040
+
```plaintext
1041
+
curl -X GET -H "Accept: text/plain" -H "X-authorization: <token>" <URI>/similarCount
1042
+
```
1043
+
1044
+
```python
1045
+
import requests
1046
+
1047
+
response = requests.get(
1048
+
'<URI>/similarCount',
1049
+
headers={
1050
+
'Accept': 'text/plain',
1051
+
'X-authorization': '<token>'
1052
+
},
1053
+
)
1054
+
1055
+
print(response.status_code)
1056
+
print(response.content)
1057
+
```
1058
+
1059
+
```javascript
1060
+
constfetch=require("node-fetch");
1061
+
constUrl='<URI>/similarCount'
1062
+
constotherPram={
1063
+
headers:{
1064
+
"content-type":"text/plain; charset=UTF-8"
1065
+
},
1066
+
method:"GET"
1067
+
};
1068
+
fetch(url)
1069
+
.then(res=>res.text())
1070
+
.then(text=> {
1071
+
constvalue=Number(text);
1072
+
console.log(value);
1073
+
})
1074
+
.catch(error=>console.error(error));
1075
+
```
1076
+
988
1077
## Search Uses
989
1078
990
1079
`GET <URI>/uses`
@@ -1037,6 +1126,51 @@ fetch(Url,otherPram)
1037
1126
.catch (error=>console.log(error))
1038
1127
```
1039
1128
1129
+
## Search Uses Count
1130
+
1131
+
`GET <URI>/usesCount`
1132
+
1133
+
Returns the number of any other object that refers to this object, for example, if this is a component, it will return the number of all other components that use this as a sub-component.
1134
+
1135
+
```plaintext
1136
+
curl -X GET -H "Accept: text/plain" -H "X-authorization: <token>" <URI>/usesCount
0 commit comments