Skip to content

Commit 797b71b

Browse files
authoredMay 3, 2021
fix several typos in store.ts
human-facing comments
1 parent 1a5c538 commit 797b71b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed
 

‎src/store.ts

+6-6
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ export default class IndexedFormula extends Formula { // IN future - allow pass
169169

170170
/**
171171
* 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
173173
* @param features.sameAs - Smush together A and B nodes whenever { A sameAs B }
174174
* @param opts
175175
* @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
195195
this.whyIndex
196196
]
197197
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.
199199
// See https://github.com/linkeddata/rdflib.js/issues/458
200200
// 'sameAs',
201201
// 'InverseFunctionalProperty',
@@ -269,7 +269,7 @@ export default class IndexedFormula extends Formula { // IN future - allow pass
269269
// console.log('applyPatch: delete: ' + ds)
270270
ds = ds.statements as Statement[]
271271
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
273273
var sts = targetKB.statementsMatching(st.subject, st.predicate, st.object, target)
274274
if (sts.length === 0) {
275275
// log.info("NOT FOUND deletable " + st)
@@ -393,7 +393,7 @@ export default class IndexedFormula extends Formula { // IN future - allow pass
393393
* @param subj - The thing about which the fact a relationship is asserted.
394394
* Also accepts a statement or an array of Statements.
395395
* @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.
397397
* @param why - The document in which the triple (S,P,O) was or will be stored on the web
398398
* @returns The statement added to the store, or the store
399399
*/
@@ -868,7 +868,7 @@ export default class IndexedFormula extends Formula { // IN future - allow pass
868868
}
869869

870870
/**
871-
* Removes all statemnts in a doc
871+
* Removes all statements in a doc
872872
* @param doc - The document / graph
873873
*/
874874
removeDocument(doc: Quad_Graph): IndexedFormula {
@@ -896,7 +896,7 @@ export default class IndexedFormula extends Formula { // IN future - allow pass
896896
): void {
897897
// log.debug("entering removeMany w/ subj,pred,obj,why,limit = " + subj +", "+ pred+", " + obj+", " + why+", " + limit)
898898
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.
900900
// The fact is, this.statementsMatching returns this.whyIndex instead of a copy of it
901901
// but for perfromance consideration, it's better to just do that
902902
// so make a copy here.

0 commit comments

Comments
 (0)
Please sign in to comment.