 
 SPARQL
 PREFIX obo: <http://purl.obolibrary.org/obo/>
-INSERT INTO <$u{ENSEMBL_GRAPH_URI}> {
+INSERT INTO <$u{ENSEMBL-SSC_URI}> {
    ?chr2 a obo:SO_0000340
 }  
 WHERE {
-   GRAPH <$u{QTLDB_GRAPH_URI}> {
+   GRAPH <$u{QTLDB_URI}> {
       ?chr1 a obo:SO_0000340 .
       BIND(uri(concat('http://rdf.ebi.ac.uk/resource/ensembl/$u{ENSEMBL_RELEASE}/sus_scrofa/Sscrofa10.2/', replace(str(?chr1), '.+/', ''))) AS ?chr2)
    }

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


-- 

-- Fix database cross-references in Ensembl RDF graph.
--

SET u{ENSEMBL_RELEASE} 86 ;
SET u{ENSEMBL-SSC_URI} http://www.ensembl.org/pig ;
SET u{ENSEMBL-HSA_URI} http://www.ensembl.org/human ;
--SET u{BIO2RDF_RELEASE} 4 ;
SET u{BIO2RDF_URI} http://bio2rdf.org/omim_resource:bio2rdf.dataset.omim.R4 ;
--SET u{QTLDB_RELEASE} 30 ;
SET u{QTLDB_URI} http://www.animalgenome.org/QTLdb/pig ;

SPARQL
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
WITH <$u{ENSEMBL-SSC_URI}>
DELETE { ?s rdfs:seeAlso ?o }
INSERT { ?s rdfs:seeAlso ?fixed }
WHERE {
