Let’s assume the API url is https://myomekas.org/api.
URL = https://myomekas.org/
Get all items of ressource class `foaf:person`
Look up the resource of foaf:person.
e.g. all foaf:
URL + api/resource_classes?vocabulary_prefix=foaf
e.g. specifically look for foaf:Person, beware this is case sensitive! foaf:person will have no results.
URL + api/resource_classes?term=foaf:Person
Look for the o:id value, this is the ressource_id. Then get all items of that ressource_id:
URL + api/items?&resource_class_id=96
Get all items of that have a certain property
e.g. all items that have a bibo:translator
URL + api/items?&property[0][property]=bibo:translator&property[0][type]=ex
Get all items with title prename lastname
URL + api/items?property[0][joiner]=and&property[0][property]=dcterms:title&property[0][type]=eq&property[0][text]=prename%20lastname
All metadata, e.g. dcterms, skos and so on can be queried using the parameter key called property. The documentation is pretty thin, but the gist in this few lines: https://omeka.org/s/docs/developer/api/api_reference/#parameters-for-rdf-resources
All items that contain aids in dcterms:description
URL + api/items?property[0][joiner]=and&property[0][property]=dcterms:title&property[0][type]=in&property[0][text]=aids
Get all items that use a specific resource template
First, get the ID of your desired resource template, e.g. 2.
URL + api/items?resource_template_id=2
Links
https://omeka.org/s/docs/developer/api/api_reference
Uni Bern: Omeka S API nutzen https://github.com/DHBern/HistFalk-OralHistoryArchive/blob/a236e0fcfec17d8326259d920f576e2731ff7dc3/doc/Omeka-API_nutzen.md
Omeka S Forum: https://forum.omeka.org/t/example-api-usage-using-curl/8083/4