@@ -29,9 +29,10 @@ shinyServer(function(input, output) {
2929 $('td:eq(0)',nRow).html(aData[0].replace(/</g,'<').replace(/>/g,'>'));
3030 $('td:eq(1)',nRow).html(aData[1].replace(/</g,'<').replace(/>/g,'>'));
3131 $('td:eq(2)',nRow).html(aData[2].replace(/</g,'<').replace(/>/g,'>'));
32+ $('td:eq(3)',nRow).html(aData[3].replace(/</g,'<').replace(/>/g,'>'));
3233 }" ),
3334 autoWidth = FALSE ,
34- columns = list (list (sWidth = " 10%" ), list (sWidth = " 10%" ), list (sWidth = " 80 %" )))
35+ columns = list (list (sWidth = " 10%" ), list (sWidth = " 10%" ), list (sWidth = " 70% " ), list ( sWidth = " 10 %" )))
3536
3637
3738
@@ -40,13 +41,14 @@ shinyServer(function(input, output) {
4041 query <- paste("
4142PREFIX mms: <http://rdf.cdisc.org/mms#>
4243PREFIX cts:<http://rdf.cdisc.org/ct/schema#>
43- SELECT ?id ?SubmissionValue ?Definition ?domainsubv ?nciCode
44+ SELECT ?id ?SubmissionValue ?Definition ?Synonyms ? domainsubv ?nciCode
4445WHERE
4546{
4647 ?id cts:cdiscDefinition ?Definition .
4748 ?id cts:cdiscSubmissionValue ?SubmissionValue .
49+ ?id cts:cdiscSynonyms ?Synonyms .
4850 ?id cts:nciCode ?nciCode .
49- FILTER ( regex(?nciCode,'" , interm()," ','i') ||regex(?Definition,'" , interm()," ','i') || regex(?SubmissionValue, '" , interm()," ','i')) .
51+ FILTER ( regex(?nciCode,'" , interm()," ','i') ||regex(?Definition,'" , interm()," ','i') || regex(?Synonyms, ' " , interm(), " ','i') || regex(? SubmissionValue, '" , interm()," ','i')) .
5052 ?id mms:inValueDomain ?valuedomain .
5153 ?valuedomain cts:cdiscSubmissionValue ?domainsubv .
5254 } LIMIT 300" ,sep = " " )
8991 if (intermMatch() != " ()" ) {
9092 d1 $ results $ SubmissionValue <- gsub(intermMatch()," <span style='background-color: #FFFF00'>\\ 1</span>" , d1 $ results $ SubmissionValue ,ignore.case = TRUE )
9193 d1 $ results $ Definition <- gsub(intermMatch()," <span style='background-color: #FFFF00'>\\ 1</span>" , d1 $ results $ Definition ,ignore.case = TRUE )
94+ d1 $ results $ Synonyms <- gsub(intermMatch()," <span style='background-color: #FFFF00'>\\ 1</span>" , d1 $ results $ Synonyms ,ignore.case = TRUE )
9295 }
9396 d1 $ results
9497 },options = dto )
0 commit comments