@@ -169,7 +169,7 @@ export default class IndexedFormula extends Formula { // IN future - allow pass
169
169
170
170
/**
171
171
* Creates a new formula
172
- * @param features - What sort of autmatic processing to do? Array of string
172
+ * @param features - What sort of automatic processing to do? Array of string
173
173
* @param features.sameAs - Smush together A and B nodes whenever { A sameAs B }
174
174
* @param opts
175
175
* @param [opts.rdfFactory] - The data factory that should be used by the store
@@ -195,7 +195,7 @@ export default class IndexedFormula extends Formula { // IN future - allow pass
195
195
this . whyIndex
196
196
]
197
197
this . namespaces = { } // Dictionary of namespace prefixes
198
- this . features = features || [ // By deafult devs do not expect these feaures .
198
+ this . features = features || [ // By default, devs do not expect these features .
199
199
// See https://github.com/linkeddata/rdflib.js/issues/458
200
200
// 'sameAs',
201
201
// 'InverseFunctionalProperty',
@@ -269,7 +269,7 @@ export default class IndexedFormula extends Formula { // IN future - allow pass
269
269
// console.log('applyPatch: delete: ' + ds)
270
270
ds = ds . statements as Statement [ ]
271
271
var bad : Quad [ ] = [ ]
272
- var ds2 = ds . map ( function ( st : Quad ) { // Find the actual statemnts in the store
272
+ var ds2 = ds . map ( function ( st : Quad ) { // Find the actual statements in the store
273
273
var sts = targetKB . statementsMatching ( st . subject , st . predicate , st . object , target )
274
274
if ( sts . length === 0 ) {
275
275
// log.info("NOT FOUND deletable " + st)
@@ -393,7 +393,7 @@ export default class IndexedFormula extends Formula { // IN future - allow pass
393
393
* @param subj - The thing about which the fact a relationship is asserted.
394
394
* Also accepts a statement or an array of Statements.
395
395
* @param pred - The relationship which is asserted
396
- * @param obj - The object of the relationship, e.g. another thing or avalue . If passed a string, this will become a literal.
396
+ * @param obj - The object of the relationship, e.g. another thing or a value . If passed a string, this will become a literal.
397
397
* @param why - The document in which the triple (S,P,O) was or will be stored on the web
398
398
* @returns The statement added to the store, or the store
399
399
*/
@@ -868,7 +868,7 @@ export default class IndexedFormula extends Formula { // IN future - allow pass
868
868
}
869
869
870
870
/**
871
- * Removes all statemnts in a doc
871
+ * Removes all statements in a doc
872
872
* @param doc - The document / graph
873
873
*/
874
874
removeDocument ( doc : Quad_Graph ) : IndexedFormula {
@@ -896,7 +896,7 @@ export default class IndexedFormula extends Formula { // IN future - allow pass
896
896
) : void {
897
897
// log.debug("entering removeMany w/ subj,pred,obj,why,limit = " + subj +", "+ pred+", " + obj+", " + why+", " + limit)
898
898
var sts = this . statementsMatching ( subj , pred , obj , why , false )
899
- // This is a subtle bug that occcured in updateCenter.js too.
899
+ // This is a subtle bug that occurred in updateCenter.js too.
900
900
// The fact is, this.statementsMatching returns this.whyIndex instead of a copy of it
901
901
// but for perfromance consideration, it's better to just do that
902
902
// so make a copy here.
0 commit comments