8
Retrieve mapping between SwissLipids lipid identifiers and their corresponding LIPID MAPS identifiers. Output should include SwissLipids identifier and name plus the LIPID MAPS identifier.
Use at
PREFIX lipidmaps: <https://www.lipidmaps.org/rdf/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX oboInOwl: <http://www.geneontology.org/formats/oboInOwl#>
# Example 8
SELECT ?slm ?slmName ?lipidmaps
WHERE {
?slm rdfs:label ?slmName .
# Corresponding LIPID MAPS
?slm oboInOwl:hasDbXref ?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 --"oboInOwl:hasDbXref"--> v2