<commit_before>extends ../layout
block content
      section#post
        article
          header.wrpl
            h1 Interoperability
            time Last update: #{lastUpdate}
            details
              summary Description:
              p
                | The interoperability empirically analyses the SPARQL 1.0 and SPARQL 1.1 features supported by an endpoint.
      .line
      section#posts.default-area
        article.wrp(style='padding-bottom: 1em;')
          .wrplInnerBox(style='height: 100%;width:100%')
            - function numberWithCommas(x) {if (x) return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");}
            div
              b #{parseFloat((nbCompliantSPARQL1Features/nbEndpointsTotal*100).toFixed(2))+ '%'} 
              | (#{nbCompliantSPARQL1Features}/#{nbEndpointsTotal}) of the available endpoints are 
              b compliant with some SPARQL 1.0 features
            div
              b #{parseFloat((nbFullCompliantSPARQL1Features/nbEndpointsTotal*100).toFixed(2))+ '%'} 
              | (#{nbFullCompliantSPARQL1Features}/#{nbEndpointsTotal}) of the available endpoints are 
              b Fully compliant with some SPARQL 1.0
            div
              b #{parseFloat((nbCompliantSPARQL11Features/nbEndpointsTotal*100).toFixed(2))+ '%'} 
              | (#{nbCompliantSPARQL11Features}/#{nbEndpointsTotal}) of the available endpoints are 
              b compliant with some SPARQL 1.1 features
            div
              b #{parseFloat((nbFullCompliantSPARQL11Features/nbEndpointsTotal*100).toFixed(2))+ '%'} 
              | (#{nbFullCompliantSPARQL11Features}/#{nbEndpointsTotal}) of the available endpoints are 
              b Fully compliant with some SPARQL 1.1
        article.wrp(style='padding-bottom: 1em;')
          .wrplInnerBox(style='height: 100%;')
            section
              .wrpl(style='padding-left: 2em;')
                img(src='/images/green.png')
                span(style='padding-left: 0.75em;') Compliant with 
                b 100% 
                | of the features
              .wrpl(style='padding-left: 2em;')
                img(src='/images/orange.png')
                span(style='padding-left: 0.75em;') Compliant with 
                b [50%-100%[ 
                |of the features
              .wrpl(style='padding-left: 2em;')
                img(src='/images/red.png')
                span(style='padding-left: 0.75em;') Compliant with 
                b ]0%-50%[ 
                |of the features
              .wrpl(style='padding-left: 2em;')
                img(src='/images/gray.png')
                span(style='padding-left: 0.75em;') Compliant with 
                b 0% 
                | of the features
        article.wrp
          .wrplInnerBox(style='height: 100%;')
            table#table_current.psp-table(cellspacing='0', cellpadding='0', border='0', width='100%')
              thead
                tr
                  th.tablehead(scope='col', width='50%') SPARQL Endpoint
                  th.tablehead(width='25%') 
                    span(onmouseover='tooltip.show(\'#{configInterop['SPARQL 1.0']}\')', onmouseout='tooltip.hide();') SPARQL 1.0 features
                  th.tablehead(width='25%') 
                    span(onmouseover='tooltip.show(\'#{configInterop['SPARQL 1.1']}\')', onmouseout='tooltip.hide();') SPARQL 1.1 features
              tbody
                - each ep, i in ftasks_agg
                  tr(class=(i % 2 == 0) ? 'odd' : 'even')
                    //-Display Endpoint Label
                    //-TODO: if more than one endpoint then display how many and their names 
                    if ep.endpoint.datasets.length>1
                      - var generateTooltip = function(datasets){tooltipHtml='This endpoint includes <b>'+datasets.length+' datasets</b>:<ul>';
                      -   for(var i in datasets){tooltipHtml+='<li>'+datasets[i].label+'</li>';}
                      -   tooltipHtml+='</ul>';
                      -   return tooltipHtml;
                      - }
                      td
                        a(href="/endpoint/#{encodeURIComponent(ep.endpoint.uri)}")
                          span(onmouseover='tooltip.show(\'#{generateTooltip(ep.endpoint.datasets)}\')', onmouseout='tooltip.hide();') #{ep.endpoint.uri} (#{ep.endpoint.datasets.length})
                  	else
                      if ep.endpoint.datasets.length>0
                        td 
                          a(href="/endpoint/#{encodeURIComponent(ep.endpoint.uri)}") #{ep.endpoint.datasets[0].label}
                      else 
                        td
                          a(href="/endpoint/#{encodeURIComponent(ep.endpoint.uri)}") #{ep.endpoint.uri}
                     //-Display SPARQL 1.0 
                    td.tdcenter
                      if ep.nbCompliantSPARQL1Features==nbSPARQL1Features
                        img(src='/images/green.png')
                      else
                        if ep.nbCompliantSPARQL1Features>0 && (ep.nbCompliantSPARQL1Features/nbSPARQL1Features)<0.5
                          img(src='/images/orange.png')
                        else
                          if ep.nbCompliantSPARQL1Features>0 && (ep.nbCompliantSPARQL1Features/nbSPARQL1Features)>=0.5
                            img(src='/images/red.png')
                          else 
                            if ep.nbCompliantSPARQL11Features==0
                              .textDisabled n/a
                            else
                              img(src='/images/gray.png')
                    //-Display SPARQL 1.0 
                    td.tdcenter
                      if ep.nbCompliantSPARQL11Features==nbSPARQL11Features
                        img(src='/images/green.png')
                      else
                        if ep.nbCompliantSPARQL11Features>0 && (ep.nbCompliantSPARQL11Features/nbSPARQL11Features)<0.5
                          img(src='/images/orange.png')
                        else
                          if ep.nbCompliantSPARQL11Features>0 && (ep.nbCompliantSPARQL11Features/nbSPARQL11Features)>=0.5
                            img(src='/images/red.png')
                          else 
                            if ep.nbCompliantSPARQL1Features==0
                              .textDisabled n/a
                            else
                              img(src='/images/gray.png')<commit_msg>changed indention in interoperability.jade<commit_after>extends ../layout
block content
      section#post
        article
          header.wrpl
            h1 Interoperability
            time Last update: #{lastUpdate}
            details
              summary Description:
              p
                | The interoperability empirically analyses the SPARQL 1.0 and SPARQL 1.1 features supported by an endpoint.
      .line
      section#posts.default-area
        article.wrp(style='padding-bottom: 1em;')
          .wrplInnerBox(style='height: 100%;width:100%')
            - function numberWithCommas(x) {if (x) return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");}
            div
              b #{parseFloat((nbCompliantSPARQL1Features/nbEndpointsTotal*100).toFixed(2))+ '%'} 
              | (#{nbCompliantSPARQL1Features}/#{nbEndpointsTotal}) of the available endpoints are 
              b compliant with some SPARQL 1.0 features
            div
              b #{parseFloat((nbFullCompliantSPARQL1Features/nbEndpointsTotal*100).toFixed(2))+ '%'} 
              | (#{nbFullCompliantSPARQL1Features}/#{nbEndpointsTotal}) of the available endpoints are 
              b Fully compliant with some SPARQL 1.0
            div
              b #{parseFloat((nbCompliantSPARQL11Features/nbEndpointsTotal*100).toFixed(2))+ '%'} 
              | (#{nbCompliantSPARQL11Features}/#{nbEndpointsTotal}) of the available endpoints are 
              b compliant with some SPARQL 1.1 features
            div
              b #{parseFloat((nbFullCompliantSPARQL11Features/nbEndpointsTotal*100).toFixed(2))+ '%'} 
              | (#{nbFullCompliantSPARQL11Features}/#{nbEndpointsTotal}) of the available endpoints are 
              b Fully compliant with some SPARQL 1.1
        article.wrp(style='padding-bottom: 1em;')
          .wrplInnerBox(style='height: 100%;')
            section
              .wrpl(style='padding-left: 2em;')
                img(src='/images/green.png')
                span(style='padding-left: 0.75em;') Compliant with 
                b 100% 
                | of the features
              .wrpl(style='padding-left: 2em;')
                img(src='/images/orange.png')
                span(style='padding-left: 0.75em;') Compliant with 
                b [50%-100%[ 
                |of the features
              .wrpl(style='padding-left: 2em;')
                img(src='/images/red.png')
                span(style='padding-left: 0.75em;') Compliant with 
                b ]0%-50%[ 
                |of the features
              .wrpl(style='padding-left: 2em;')
                img(src='/images/gray.png')
                span(style='padding-left: 0.75em;') Compliant with 
                b 0% 
                | of the features
        article.wrp
          .wrplInnerBox(style='height: 100%;')
            table#table_current.psp-table(cellspacing='0', cellpadding='0', border='0', width='100%')
              thead
                tr
                  th.tablehead(scope='col', width='50%') SPARQL Endpoint
                  th.tablehead(width='25%') 
                    span(onmouseover='tooltip.show(\'#{configInterop['SPARQL 1.0']}\')', onmouseout='tooltip.hide();') SPARQL 1.0 features
                  th.tablehead(width='25%') 
                    span(onmouseover='tooltip.show(\'#{configInterop['SPARQL 1.1']}\')', onmouseout='tooltip.hide();') SPARQL 1.1 features
              tbody
                - each ep, i in ftasks_agg
                  tr(class=(i % 2 == 0) ? 'odd' : 'even')
                    //-Display Endpoint Label
                    //-TODO: if more than one endpoint then display how many and their names 
                    if ep.endpoint.datasets.length>1
                      - var generateTooltip = function(datasets){tooltipHtml='This endpoint includes <b>'+datasets.length+' datasets</b>:<ul>';
                      -   for(var i in datasets){tooltipHtml+='<li>'+datasets[i].label+'</li>';}
                      -   tooltipHtml+='</ul>';
                      -   return tooltipHtml;
                      - }
                      td
                        a(href="/endpoint/#{encodeURIComponent(ep.endpoint.uri)}")
                          span(onmouseover='tooltip.show(\'#{generateTooltip(ep.endpoint.datasets)}\')', onmouseout='tooltip.hide();') #{ep.endpoint.uri} (#{ep.endpoint.datasets.length})
                    else
                      if ep.endpoint.datasets.length>0
                        td 
                          a(href="/endpoint/#{encodeURIComponent(ep.endpoint.uri)}") #{ep.endpoint.datasets[0].label}
                      else 
                        td
                          a(href="/endpoint/#{encodeURIComponent(ep.endpoint.uri)}") #{ep.endpoint.uri}
                     //-Display SPARQL 1.0 
                    td.tdcenter
                      if ep.nbCompliantSPARQL1Features==nbSPARQL1Features
                        img(src='/images/green.png')
                      else
                        if ep.nbCompliantSPARQL1Features>0 && (ep.nbCompliantSPARQL1Features/nbSPARQL1Features)<0.5
                          img(src='/images/orange.png')
                        else
                          if ep.nbCompliantSPARQL1Features>0 && (ep.nbCompliantSPARQL1Features/nbSPARQL1Features)>=0.5
                            img(src='/images/red.png')
                          else 
                            if ep.nbCompliantSPARQL11Features==0
                              .textDisabled n/a
                            else
                              img(src='/images/gray.png')
                    //-Display SPARQL 1.0 
                    td.tdcenter
                      if ep.nbCompliantSPARQL11Features==nbSPARQL11Features
                        img(src='/images/green.png')
                      else
                        if ep.nbCompliantSPARQL11Features>0 && (ep.nbCompliantSPARQL11Features/nbSPARQL11Features)<0.5
                          img(src='/images/orange.png')
                        else
                          if ep.nbCompliantSPARQL11Features>0 && (ep.nbCompliantSPARQL11Features/nbSPARQL11Features)>=0.5
                            img(src='/images/red.png')
                          else 
                            if ep.nbCompliantSPARQL1Features==0
                              .textDisabled n/a
                            else
                              img(src='/images/gray.png')
{'fraction_non_alphanumeric': 0.11672095548317046, 'fraction_numerical': 0.023887079261672096, 'mean_word_length': 1.4580632863133816, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 31, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4656225', 'n_tokens_mistral': 3785, 'n_tokens_neox': 3414, 'n_words': 592}