Skip to content

Commit

Permalink
changing sparql query
Browse files Browse the repository at this point in the history
  • Loading branch information
ddtxra committed Sep 23, 2015
1 parent 735b681 commit 34a2ee7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions peptides/app/js/peptide.js
Original file line number Diff line number Diff line change
Expand Up @@ -562,11 +562,12 @@ function initNXDivs() {
"?ptm :end ?ptmend ." +
"optional { ?ptm :term ?ptmterm }." +
"optional { ?ptm rdfs:comment ?ptmcomment} ." +
"?iso :peptideMapping ?map ." +
"?iso :mapping ?map ." +
"?map :peptideName ?pepName ." +
"?map :start ?mapstart ." +
"?map :end ?mapend ." +
"filter (?ptmstart >= ?mapstart && ?ptmstart <= ?mapend || ?ptmend >= ?mapstart && ?ptmend <= ?mapend)" +
"filter (?ptmstart >= ?mapstart && ?ptmstart <= ?mapend || ?ptmend >= ?mapstart && ?ptmend <= ?mapend) " +
"filter not exists {?map a :PdbMapping}" +
"}";
if (pmidFound === true) {
nx.executeSparql(query).then(function (data) {
Expand Down
Loading

0 comments on commit 34a2ee7

Please sign in to comment.