55. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 12/21/2017 6:15:14 PM Eastern Standard Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.

55.1 Files compared

# Location File Last Modified
1 Genisis_2.0_v7_bld7.zip\TS\Service\testing\cli-test-scripts\src\main\java\gov\va\genisis2 FusekiClient.java Thu Dec 14 19:57:06 2017 UTC
2 Genisis_2.0_v7_bld7.zip\TS\Service\testing\cli-test-scripts\src\main\java\gov\va\genisis2 FusekiClient.java Thu Dec 21 22:18:42 2017 UTC

55.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 2 112
Changed 1 2
Inserted 0 0
Removed 0 0

55.3 Comparison options

Whitespace
Character case Differences in character case are significant
Line endings Differences in line endings (CR and LF characters) are ignored
CR/LF characters Not shown in the comparison detail

55.4 Active regular expressions

No regular expressions were active.

55.5 Comparison detail

  1   package go v.va.genis is2;
  2  
  3   import org .apache.je na.query.Q ueryExecut ion;
  4   import org .apache.je na.query.Q ueryExecut ionFactory ;
  5   import org .apache.je na.query.R esultSet;
  6  
  7   /**
  8    * 
  9    * @author   PII
  10    *
  11    */
  12   public cla ss FusekiC lient {
  13           
  14           pr ivate Fuse kiClient()  {}
  15           
  16           pr ivate stat ic class F usekiClien tHolder{
  17                    priv ate static  final Fus ekiClient  instance =  new Fusek iClient();
  18           }
  19           
  20           pu blic stati c FusekiCl ient getIn stance() {
  21                    retu rn FusekiC lientHolde r.instance ;
  22           }
  23           
  24           /* *
  25            *  
  26            *  @param qe
  27            *  @param sp arqlEndPoi nt
  28            *  @param qu ery
  29            *  @return
  30            * /
  31           pu blic Resul tSet perfo rmSelectQu ery(QueryE xecution q e) {
  32                    retu rn qe.exec Select();
  33           }
  34  
  35           /* *
  36            *  Returns t rue or fal se if the  given quer y string i s containd  in the tr iple
  37            *  store Que ry should  be in the  format of  ASK {?s ?p  ?o}
  38            *  
  39            *  @param qu ery
  40            *  @param sp arqlEndpoi nt
  41            *  @return
  42            *  @throws E xception
  43            * /
  44           pu blic boole an perform Ask(String  query, St ring sparq lEndpoint)  throws Ex ception {
  45                    Quer yExecution  qe = Quer yExecution Factory.sp arqlServic e(sparqlEn dpoint, qu ery);
  46                    Bool ean exists  = null;
  47                    try  {
  48                             exists  = qe.exec Ask();
  49                    } ca tch (Excep tion e) {
  50                             throw  new Except ion("Error  trying to  exceute c ommand: "  + e);
  51                    } fi nally {
  52                             if (qe  != null)
  53                                      qe.close ();
  54                    }
  55                    retu rn exists;
  56           }
  57   }