Skip to content

Commit e266d04

Browse files
committed
Removed some deprecations after talking with Tim
1 parent 8b84ab6 commit e266d04

5 files changed

Lines changed: 6 additions & 12 deletions

File tree

src/blank-node.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ export default class BlankNode extends Node implements TFBlankNode {
5555

5656
/**
5757
* The identifier for the blank node
58-
* @deprecated use [[value]] instead.
5958
*/
6059
public get id (): string {
6160
return this.value

src/factories/rdflib-data-factory.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ const RDFlibDataFactory: IRDFlibDataFactory = {
3333
* @param val The lexical value
3434
* @param lang The language
3535
* @param dt The datatype
36-
* @deprecated use [[literal]] with the second and third argument combined
3736
*/
3837
lit (val: string, lang?: string, dt?: NamedNode): Literal {
3938
return this.literal('' + val, lang || dt)
@@ -45,7 +44,6 @@ const RDFlibDataFactory: IRDFlibDataFactory = {
4544
* @param predicate The predicate
4645
* @param object The object
4746
* @param graph The containing graph
48-
* @deprecated use [[quad]] instead
4947
*/
5048
st (
5149
subject: Quad_Subject,

src/formula.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,10 @@ export default class Formula extends Node {
140140
return this.statements.push(statement)
141141
}
142142

143-
/** @deprecated use {this.rdfFactory.blankNode} instead */
143+
/**
144+
* Shortcut for adding blankNodes
145+
* @param [id]
146+
*/
144147
bnode (id?: string): BlankNode {
145148
return this.rdfFactory.blankNode(id)
146149
}
@@ -776,9 +779,6 @@ export default class Formula extends Node {
776779
return y as unknown as T
777780
}
778781

779-
/**
780-
* @deprecated use {rdfFactory.namedNode} instead
781-
*/
782782
sym (uri: string, name?): NamedNode {
783783
if (name) {
784784
throw new Error('This feature (kb.sym with 2 args) is removed. Do not assume prefix mappings.')

src/named-node.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,7 @@ export default class NamedNode extends Node implements TFNamedNode {
8585
return this.value.split('#')[1]
8686
}
8787

88-
/**
89-
* Legacy getter and setter alias, node.uri
90-
* @deprecated use [[value]]
91-
*/
88+
/** Alias for value, favored by Tim */
9289
get uri (): string {
9390
return this.value
9491
}

src/statement.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export default class Statement<
6565
this.graph = graph == undefined ? defaultGraph : Node.fromValue(graph) // property currently used by rdflib
6666
}
6767

68-
/** @deprecated use {graph} instead */
68+
/** Alias for graph, favored by Tim */
6969
get why () {
7070
return this.graph
7171
}

0 commit comments

Comments
 (0)