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

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

# Example 10
SELECT ?slm ?slmName ?hmdb
WHERE {
  ?slm rdfs:label ?slmName . 
  # Corresponding HMDB entries
  ?slm rdfs:seeAlso ?hmdb .
  FILTER regex(str(?hmdb), "hmdb") .
}
ORDER BY ?slm""" ;
    schema:target <https://sparql.swisslipids.org/sparql/> .

