A set of SPARQL examples that are used in different SIB resources
Retrieve mapping between SwissLipids lipid identifiers and their corresponding LIPID MAPS identifiers. Output should include SwissLipids identifier and name plus the LIPID MAPS identifier.
PREFIX lipidmaps: <https://www.lipidmaps.org/rdf/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
# Example 8
SELECT ?slm ?slmName ?lipidmaps
WHERE {
?slm rdfs:label ?slmName .
# Corresponding LIPID MAPS
?slm rdfs:seeAlso ?lipidmaps .
FILTER (strstarts(str(?lipidmaps), str(lipidmaps:))) .
}
ORDER BY ?slm
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?lipidmaps"):::projected
v1("?slm"):::projected
v3("?slmName"):::projected
f0[["starts-with(str(?lipidmaps),str('lipidmaps:'))"]]
f0 --> v2
v1 --"rdfs:label"--> v3
v1 --"rdfs:seeAlso"--> v2