Skip to content

queersearch/omekasapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

omekasapi

lifecycle Lifecycle: experimental

The goal of omekasapi is to offer some functions to interact with Omeka S API.

Installation

You can install the development version of omekasapi like so:

# install.packages("credentials")
credentials::set_github_pat()
# install.packages("devtools")
devtools::install_github("cutterkom/omekasapi")

Examples

Get all items that have a certain property

library(omekasapi)

api_url <- https://myomekas.org/api

base_req <- create_base_req(
  api_url, 
  key_identity=Sys.getenv("OMEKA_KEY_ID"),
  key_credential=Sys.getenv("OMEKA_KEY_CRED")) 
  
query_items_by_property_id(base_req, property = "bibo:translator")
  

Interact with vocabularies

library(omekasapi)

api_url <- "https://myomekas.org/api"

base_req <- create_base_req(
  api_url, 
  key_identity=Sys.getenv("OMEKA_KEY_ID"),
  key_credential=Sys.getenv("OMEKA_KEY_CRED")) 
  
base_req |>
  query_ressource_classes(get_all = TRUE) 
  

Links

make changes

https://github.com/morskyjezek/networked-services-labs-2023/blob/b8efea2360ce112250e35a2bb56043f14ce52cbf/apis-02-omekas-basics.ipynb#L7

About

A #rstats package to interact with Omeka S API

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages