The Simple Standard for Sharing Ontological Mappings (SSSOM) API is a tool for accessing ontological mappings between different ontologies.
You can run the API locally using Docker:
docker-compose up --build
This will start the three services:
- The API itself (
service api
) - Triplestore RDF4J (
service triplestore
) - Upload data into the triplestore (
service upload-triplestore
)
After the service upload-triplestore
finish and stops, you can access the SSSOM API at localhost:8008/docs
.
You can access the triplestore at localhost:8080/rdf4j-workbench
.
The SSSOM API is designed to be easy to use and has the following endpoints:
POST endpoint to retrive all mappings with CURIE
as subject_id
or object_id
and optionally filtering by mapping justification and predicate id.
The request body is
{
"curies": [
"string"
],
"mapping_justification": [
"string"
],
"predicate_id": [
"string"
]
}
Only the object curies is required.
Retrieve all mappings in the triplestore. It's possible to filter your results using the filter. The filter pattern is [field]|[operator]|[value]
.
For the complete list of fields, check here.
The list of operators is:
Operator | Description |
---|---|
ge | greater than or equal to |
gt | greater than |
le | less than or equal to |
lt | less than |
contains | contains |
Retrieve the mappings with field=value
. Check here to see the complete list of fields/slots for a mapping.
Retrieve a mapping by its id.
Retrieve the mapping_sets in the triplestore.
Retrieve the mappings for a mapping set.