Skip to content

Commit

Permalink
adding variables explanations in the compeleteness measure
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmadassaf committed Feb 10, 2015
1 parent 48caa7b commit 7b90fe7
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion parsers/CKAN/profiler/profilers/quality/measures/completeness.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,21 @@ function completeness(parent, dataset) {
var dataAccessPoints = [], dataSerializations = [];
var num_resources = _.size(root.resources);
var unreachableURLs = 0, URLs = 0, inCorrectURLs = 0, inCorrectMIME = 0, inCorrectSize = 0, sizeInformation = 0, MIMEInformation = 0, tagsErrors = 0, groupsErrors = 0;
var availableAPI = false. containsExemplaryURL = false;
var availableAPI = false, containsExemplaryURL = false;

/* Variable Explanations
*
* unreachableURLs: URLs that couldnt be reached via a HTTP HEAD request
* URLs: number of URLs defined in the dataset
* inCorrectURLs: number of URLs that do not correspond to the HTTP URI scheme
* MIMEInformation: number of mimetype field instances for the resources
* inCorrectMIME: incorrect mimetype value compared to the content-type value extracted from the HTTP HEAD request
* sizeInformation: number of size field instances for the resources
* incorrectSize: incorrect size value compared to the content-length value extracted from the HTTP HEAD request
* tagsErrors: errors in the general metadata for tags
* groupsErrors: errors in the general metadata for groups
*
*/

checkMetaField("url", root, URLs);

Expand Down

0 comments on commit 7b90fe7

Please sign in to comment.