Skip to content

Commit af3eb8f

Browse files
committed
further documentation refinements
Signed-off-by: Neal Ensor <[email protected]>
1 parent 26f8159 commit af3eb8f

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@
123123
- **bug** Fix issue with access limitation validation on new records
124124
- **bug** Fix typing of pams_publication_status field
125125

126-
## 0.4.9 - 6/17/2025
126+
## 0.4.9 - 6/24/2025
127127
- Add legacy access limitation values for validation
128128
- Modify PAMS publication status constants to reflect proper values (int to str)
129129
- Add "process_exceptions" to MediaFile data

README.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,16 @@ functionality, and does not constitute release of STI information to the product
7878
It is not required to maintain separate python library dependencies for these different environments; the library instance may connect to either service
7979
depending on how you instantiate it.
8080

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+
8184
```python
8285
from elinkapi import Elink
8386

8487
api = Elink(target="TARGET_URL", token="__Your_API_Token__")
8588
```
8689

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/`.
8891

8992
If you wish to interactively change either value, there are convenience methods available:
9093

@@ -525,6 +528,8 @@ Matches the [Identifiers model](https://www.osti.gov/elink2api/#tag/identifier_m
525528
Matches the [Related Identifiers model](https://www.osti.gov/elink2api/#tag/related_identifier_model) described in E-Link 2.0's API documentation
526529

527530
### Geolocation<a id="geolocation"></a>
531+
Information for any geolocation information (as pairs of latitude and longitude points) associated with a record's information.
532+
528533
<u>Schema</u>
529534
```python
530535
Geolocation: {
@@ -556,6 +561,13 @@ Point: {
556561
```
557562

558563
### Media Info<a id="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+
559571
<u>Schema</u>
560572
```python
561573
[
@@ -605,6 +617,12 @@ Point: {
605617

606618

607619
### Media File<a id="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.
625+
608626
<u>Schema</u>
609627
```python
610628
{

0 commit comments

Comments
 (0)