Skip to content

Update Open Context API URL #414

@ekansa

Description

@ekansa

OPENCONTEXT_API = f"https://opencontext.org/query/.json?attributes=iSamples&cat=oc-gen-cat-sample-col%7C%7Coc-gen-cat-bio-subj-ecofact%7C%7Coc-gen-cat-object&cursorMark=%2a&response=metadata,uri-meta&sort=updated--desc,context--asc&type=subjects&rows={OPENCONTEXT_PAGE_SIZE}"

@dannymandel I made a smallish change to the Open Context API so that we handle what types of records are relevant to iSamples, rather than requiring iSamples to know what types of records to fetch from Open Context. This new API URL should be used. It will also return the radiocarbon samples that we provide:

OPENCONTEXT_API = f"https://opencontext.org/query/.json?attributes=iSamples&cat=iSamples&cursorMark=%2a&response=metadata,uri-meta&sort=updated--desc---context--asc&type=subjects&rows={OPENCONTEXT_PAGE_SIZE}"

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions