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
+19-1Lines changed: 19 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -78,13 +78,16 @@ functionality, and does not constitute release of STI information to the product
78
78
It is not required to maintain separate python library dependencies for these different environments; the library instance may connect to either service
79
79
depending on how you instantiate it.
80
80
81
+
Note that documentation via python help functionality is provided for most of the library functions, via `help(Elink)` or `help(Elink.post_new_record)` for
82
+
example.
83
+
81
84
```python
82
85
from elinkapi import Elink
83
86
84
87
api = Elink(target="TARGET_URL", token="__Your_API_Token__")
85
88
```
86
89
87
-
Again, if you do not specify the `TARGET_URL` above, the production E-Link will be utilized. Specify `https://review.osti.gov/elink2api/` as the `TARGET_URL` above to access the Review E-Link environment. Adjust the `token` value to the appropriate API user token for the correct target environment prior to utilizing the functions.
90
+
Again, if you do not specify the `TARGET_URL` above, the production E-Link will be utilized. Specify `https://review.osti.gov/elink2api/` as the `TARGET_URL` above to access the Review E-Link environment. Adjust the `token` value to the appropriate API user token for the correct target environment prior to utilizing the functions. The production environment endpoint value is `https://www.osti.gov/elink2api/`.
88
91
89
92
If you wish to interactively change either value, there are convenience methods available:
90
93
@@ -525,6 +528,8 @@ Matches the [Identifiers model](https://www.osti.gov/elink2api/#tag/identifier_m
525
528
Matches the [Related Identifiers model](https://www.osti.gov/elink2api/#tag/related_identifier_model) described in E-Link 2.0's API documentation
526
529
527
530
### Geolocation<aid="geolocation"></a>
531
+
Information for any geolocation information (as pairs of latitude and longitude points) associated with a record's information.
532
+
528
533
<u>Schema</u>
529
534
```python
530
535
Geolocation: {
@@ -556,6 +561,13 @@ Point: {
556
561
```
557
562
558
563
### Media Info<aid="media-info"></a>
564
+
Information for a "media set" associated with a record; that is, one or more media files, such as PDF or Word documents, or off-site URLs (for dataset
565
+
records), along with any derived or processed files produced by media processing. Such derived files are usually cached URL content, text extracted
566
+
from full text files, or OCR-processed PDF files as applicable.
567
+
568
+
Each media set is uniquely identified by the generated "media_id" value, and each "osti_id" record may be associated with one or more such media sets.
569
+
The set contains individual "files" (see "Media File" below) making up its content.
570
+
559
571
<u>Schema</u>
560
572
```python
561
573
[
@@ -605,6 +617,12 @@ Point: {
605
617
606
618
607
619
### Media File<aid="media-file"></a>
620
+
An individual media file within a "media set"; usually a PDF or Word document uploaded by the user, or a processed file derived from that upload. The
621
+
"media_type" of "O" (for original) indicates the single user-provided document, which is usually the fulltext reference on OSTI.gov for this record.
622
+
Derived files, such as text extracted (media_type="T"), cached URL content (media_type="C") will also be present in the media set.
623
+
624
+
Each media file is uniquely identified by its "media_file_id" sequence number, generated by OSTI when the files are uploaded or processed.
0 commit comments