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
Copy file name to clipboardExpand all lines: README.md
+78-73Lines changed: 78 additions & 73 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -51,79 +51,7 @@ The access token can be retrieved after login to the [Open PermID](https://permi
51
51
52
52

53
53
54
-
### 3. Entity Lookup
55
-
56
-
This function is used to look up the entity information by the PermID.
57
-
58
-
```
59
-
lookup(id, format='dataframe', orient='row')
60
-
```
61
-
62
-
It accepts three parameters:
63
-
64
-
|Parameter Name|Required|Description|
65
-
|--------------|--------|-----------|
66
-
|id|Yes|The PermID used to lookup e.g. 1-5064690523|
67
-
|format|No|The format of the output. Possible values are **dataframe**, **json-ld**, or **turtle**. The default value is **dataframe**|
68
-
|orient|No|The format of the returned data frame. Possible values are **row**, or **column**. The default value is **row**|
69
-
70
-
This function returns a tuple containing a result and error string. The result could be a data frame, JSON, or turtle string depending on the **format** parameter.
71
-
72
-
__**Sample Usages**__
73
-
74
-
-**Call the lookup method to retrieve the entity information of the 1-5064690523 PermID with the default parameters**
75
-
76
-
```Python
77
-
df,err = opid.lookup("1-5064690523")
78
-
```
79
-
It uses the default values of the **format** and **orient** parameters, so the returned result is a data frame with the row orient.
80
-
81
-

82
-
83
-
-**Call the lookup method to retrieve the entity information of the 1-5064690523 PermID with the 'column' orient parameter**
This function is used to search an entity's PermID value from a string.
129
57
```
@@ -228,6 +156,80 @@ The returned result is a JSON string.
228
156
}
229
157
}
230
158
```
159
+
160
+
### 4. Entity Lookup
161
+
162
+
This function is used to look up the entity information by the PermID.
163
+
164
+
```
165
+
lookup(id, format='dataframe', orient='row')
166
+
```
167
+
168
+
It accepts three parameters:
169
+
170
+
|Parameter Name|Required|Description|
171
+
|--------------|--------|-----------|
172
+
|id|Yes|The PermID used to lookup e.g. 1-5064690523|
173
+
|format|No|The format of the output. Possible values are **dataframe**, **json-ld**, or **turtle**. The default value is **dataframe**|
174
+
|orient|No|The format of the returned data frame. Possible values are **row**, or **column**. The default value is **row**|
175
+
176
+
This function returns a tuple containing a result and error string. The result could be a data frame, JSON, or turtle string depending on the **format** parameter.
177
+
178
+
__**Sample Usages**__
179
+
180
+
-**Call the lookup method to retrieve the entity information of the 1-5064690523 PermID with the default parameters**
181
+
182
+
```Python
183
+
df,err = opid.lookup("1-5064690523")
184
+
```
185
+
It uses the default values of the **format** and **orient** parameters, so the returned result is a data frame with the row orient.
186
+
187
+

188
+
189
+
-**Call the lookup method to retrieve the entity information of the 1-5064690523 PermID with the 'column' orient parameter**
0 commit comments