@prefix ex: <https://sparql.swisslipids.org/.well-known/sparql-examples/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix schema: <https://schema.org/> .
@prefix sh: <http://www.w3.org/ns/shacl#> .

ex:12 a sh:SPARQLExecutable,
        sh:SPARQLSelectExecutable ;
    rdfs:label "Mapping SwissLipids to ChEBI"@en ;
    rdfs:comment """Retrieve mapping between SwissLipids lipid identifiers and their corresponding ChEBI identifiers.
Output should include SwissLipids identifier and name plus the ChEBI identifier."""@en ;
    sh:prefixes _:sparql_examples_prefixes ;
    sh:select """PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>

# Example 12
SELECT ?slm ?slmName ?chebi
WHERE {
  ?slm rdfs:label ?slmName . 
  # Corresponding ChEBI entries
  ?slm owl:equivalentClass ?chebi .
}
ORDER BY ?slm""" ;
    schema:target <https://sparql.swisslipids.org/sparql/> .

