text: 'use strict';
  class DatasetUtil {
      constructor() {
  
      }
      getPropertyLabel(uri) {
          let property = '';
          let tmp = uri;
          let tmp2 = tmp.split('#');
          if (tmp2.length > 1) {
              property = tmp2[1];
          } else {
              tmp2 = tmp.split('/');
              property = tmp2[tmp2.length - 1];
          }
          return property;
      }
  
      parseResourcesByType(body, datasetURI) {
          let output = [];
          let parsed = JSON.parse(body);
          if (parsed.results.bindings.length) {
              parsed.results.bindings.forEach(function(el) {
                  output.push({
                      v: el.resource.value,
                      d: datasetURI,
                      title: el.title ? el.title.value : '',
                      label: el.label ? el.label.value : ''
                  });
              });
          }
          return output;
      }
      parseCountResourcesByType(body) {
          let total = 0;
          let parsed = JSON.parse(body);
          if (parsed.results.bindings.length) {
              total = parsed.results.bindings[0].total.value;
          }
          return total;
      }
  }
  export default DatasetUtil;
  