From 7b14ce444c7cdae5e616e6216e5017b2383e7b46 Mon Sep 17 00:00:00 2001 From: Robert Buels Date: Mon, 10 Sep 2012 14:42:30 -0400 Subject: [PATCH] commit test configurations for leechuck and jerven data --- sparql_branch_todo.txt | 1 + sparql_jerven.json | 9 +++++++++ sparql_local.json | 10 ++++++++++ 3 files changed, 20 insertions(+) create mode 100644 sparql_jerven.json create mode 100644 sparql_local.json diff --git a/sparql_branch_todo.txt b/sparql_branch_todo.txt index 058e929acf..7438ddf8da 100644 --- a/sparql_branch_todo.txt +++ b/sparql_branch_todo.txt @@ -1,3 +1,4 @@ - block aggregation - factor block aggregation into BlockBased.js - support for subfeatures +- remove todo and example-query files from root dir diff --git a/sparql_jerven.json b/sparql_jerven.json new file mode 100644 index 0000000000..d45dec6d3a --- /dev/null +++ b/sparql_jerven.json @@ -0,0 +1,9 @@ +{ + "storeClass" : "JBrowse/Store/SeqFeature/SPARQL", + "urlTemplate" : "http://192.168.100.5:8098/sparql", + "type" : "JBrowse/View/Track/HTMLFeatures", + "label" : "sparql", + "key" : "SPARQL Test", + "style": { "className": "feature5" }, + "queryTemplate": "PREFIX pos: PREFIX up: PREFIX rdfs: SELECT ?start ?end ?strand ?id ?Protein WHERE { ?Protein up:encodedBy ?id . ?id pos:locationOn ?location . ?location pos:begin ?sp . ?location pos:end ?ep . ?sp a pos:Position . ?sp pos:reference ?ref . ?ref rdfs:label ?strand . ?sp pos:position ?start . ?ep a pos:Position . ?ep pos:position ?end . FILTER( !(?start > {end} || ?end < {start}) ) }" +} diff --git a/sparql_local.json b/sparql_local.json new file mode 100644 index 0000000000..623b088554 --- /dev/null +++ b/sparql_local.json @@ -0,0 +1,10 @@ +{ + "storeClass" : "JBrowse/Store/SeqFeature/SPARQL", + "urlTemplate" : "/sparql", + "type" : "JBrowse/View/Track/HTMLFeatures", + "label" : "sparql", + "key" : "SPARQL Test", + "style": { "className": "feature5", "arrowheadClass": "arrowhead" }, + + "queryTemplate": "PREFIX xsd: PREFIX rdf: PREFIX rdfs: PREFIX pos: SELECT ?id ?name ?type ?start ?end ?strand WHERE { ?id rdf:type ?te . ?te rdfs:label ?type . ?id pos:location ?location . ?location pos:start ?sp . ?sp pos:position ?start . ?location pos:end ?ep . ?ep pos:position ?end . ?sp rdf:type ?spt . ?spt rdf:label ?strand . ?id rdfs:label ?name . FILTER( !(?start > {end} || ?end < {start}) ) . FILTER( ?type = \"gene\"^^xsd:string ) }" +}