 --
 -- Delete triples
 --
--- PREFIX obo: <http://purl.obolibrary.org/obo/>
--- WITH  <$u{QTLDB_GRAPH_URI}>
--- DELETE { ?s ?p ?o }
--- { ?s ?p ?o ; obo:SO_overlaps ?o } ;
+--SPARQL
+--PREFIX obo: <http://purl.obolibrary.org/obo/>
+--WITH  <$u{QTLDB_URI}>
+--DELETE WHERE { ?s obo:SO_overlaps ?o } ;
+
+
+--
+-- Cross-link human protein-coding genes in OMIM and Ensembl.
+--
+
+SPARQL
+PREFIX owl: <http://www.w3.org/2002/07/owl#>
+PREFIX obo: <http://purl.obolibrary.org/obo/>
+INSERT INTO <$u{ENSEMBL-HSA_URI}> {
+   ?gene1 owl:sameAs ?gene2 ;
+      obo:RO_0002331 ?omim
+} WHERE {
+   GRAPH <$u{BIO2RDF_URI}> {
+      ?gene2 ^<http://BIO2RDF_URI.org/omim_vocabulary:x-ensembl> ?omim ;
+         <http://BIO2RDF_URI.org/BIO2RDF_URI_vocabulary:identifier> ?o .
+      BIND(uri(concat('http://rdf.ebi.ac.uk/resource/ensembl/', ?o)) AS ?gene1)
+   }
+   GRAPH <$u{ENSEMBL-HSA_URI}> {
+      ?gene1 a obo:SO_0001217
+   }
+} ;
+
+--
+-- Delete triples
+--
+--SPARQL
+--PREFIX obo: <http://purl.obolibrary.org/obo/>
+--PREFIX owl: <http://www.w3.org/2002/07/owl#>
+--WITH  <$u{ENSEMBL-HSA_URI}>
+--DELETE WHERE {
+--   ?gene1 owl:sameAs ?gene2;
+--      obo:RO_0002331 ?omim
+--} ;

--
-- Delete triples
--
-- PREFIX obo: <http://purl.obolibrary.org/obo/>
-- WITH  <$u{ENSEMBL_GRAPH_URI}>
-- DELETE WHERE
-- { ?s a obo:SO_0000340 } ;


-- 

--
-- Delete triples
--
--SPARQL
--PREFIX owl: <http://www.w3.org/2002/07/owl#>
--WITH  <$u{QTLDB_URI}>
--DELETE WHERE { ?s owl:sameAs ?o } ;


--
