✒️ Contribute
🛸 GitHub
Preparing search index...
The search index is not available
nanopub-js
nanopub-js
@nanopub/display
NanopubWriter
Class NanopubWriter
Hierarchy
Writer
NanopubWriter
Index
Constructors
constructor
Properties
_base
Length
_base
Matcher
_blocked
Write
_encode
Object
_encode
Predicate
_encode
Subject
_end
Stream
_graph
_in
Default
Graph
_lists
_output
Stream
_predicate
_prefixIRIs
_prefix
Regex
_subject
_write
Methods
_encode
Iri
Or
Blank
_write
Quad
add
Prefix
add
Prefixes
add
Quad
add
Quads
blank
end
list
quad
To
String
quads
To
String
Constructors
constructor
new
Nanopub
Writer
(
options
?:
WriterOptions
)
:
NanopubWriter
Parameters
Optional
options:
WriterOptions
Returns
NanopubWriter
new
Nanopub
Writer
(
fd
:
any
, options
?:
WriterOptions
)
:
NanopubWriter
Parameters
fd:
any
Optional
options:
WriterOptions
Returns
NanopubWriter
Properties
_base
Length
_base
Length
:
any
_base
Matcher
_base
Matcher
:
any
_blocked
Write
_blocked
Write
:
any
_encode
Object
_encode
Object
:
any
_encode
Predicate
_encode
Predicate
:
any
_encode
Subject
_encode
Subject
:
any
_end
Stream
_end
Stream
:
any
_graph
_graph
:
any
_in
Default
Graph
_in
Default
Graph
:
any
_lists
_lists
:
any
_output
Stream
_output
Stream
:
any
_predicate
_predicate
:
any
_prefixIRIs
_prefixIRIs
:
any
_prefix
Regex
_prefix
Regex
:
any
_subject
_subject
:
any
_write
_write
:
any
Methods
_encode
Iri
Or
Blank
_encode
Iri
Or
Blank
(
entity
:
any
)
:
any
Parameters
entity:
any
Returns
any
_write
Quad
_write
Quad
(
subject
:
any
, predicate
:
any
, object
:
any
, graph
:
any
, done
:
any
)
:
void
Parameters
subject:
any
predicate:
any
object:
any
graph:
any
done:
any
Returns
void
add
Prefix
add
Prefix
(
prefix
:
string
, iri
:
string
|
NamedNode
<
string
>
, done
?:
(
(
)
=>
void
)
)
:
void
Parameters
prefix:
string
iri:
string
|
NamedNode
<
string
>
Optional
done:
(
(
)
=>
void
)
(
)
:
void
Returns
void
Returns
void
add
Prefixes
add
Prefixes
(
prefixes
:
any
, done
:
any
)
:
any
Parameters
prefixes:
any
done:
any
Returns
any
add
Quad
add
Quad
(
subject
:
Quad_Subject
, predicate
:
Quad_Predicate
, object
:
Quad_Object
|
Quad_Object
[]
, graph
?:
Quad_Graph
, done
?:
(
(
)
=>
void
)
)
:
void
Parameters
subject:
Quad_Subject
predicate:
Quad_Predicate
object:
Quad_Object
|
Quad_Object
[]
Optional
graph:
Quad_Graph
Optional
done:
(
(
)
=>
void
)
(
)
:
void
Returns
void
Returns
void
add
Quad
(
quad
:
Quad
)
:
void
Parameters
quad:
Quad
Returns
void
add
Quads
add
Quads
(
quads
:
Quad
[]
)
:
void
Parameters
quads:
Quad
[]
Returns
void
blank
blank
(
predicate
:
Quad_Predicate
, object
:
Quad_Object
)
:
BlankNode
Parameters
predicate:
Quad_Predicate
object:
Quad_Object
Returns
BlankNode
blank
(
triple
:
Quad
|
Quad
[]
|
BlankTriple
<
Quad
>
|
BlankTriple
<
Quad
>
[]
)
:
BlankNode
Parameters
triple:
Quad
|
Quad
[]
|
BlankTriple
<
Quad
>
|
BlankTriple
<
Quad
>
[]
Returns
BlankNode
end
end
(
done
:
any
)
:
any
Parameters
done:
any
Returns
any
list
list
(
triple
:
Quad_Object
[]
)
:
Quad_Object
[]
Parameters
triple:
Quad_Object
[]
Returns
Quad_Object
[]
quad
To
String
quad
To
String
(
subject
:
Quad_Subject
, predicate
:
Quad_Predicate
, object
:
Quad_Object
, graph
?:
Quad_Graph
)
:
string
Parameters
subject:
Quad_Subject
predicate:
Quad_Predicate
object:
Quad_Object
Optional
graph:
Quad_Graph
Returns
string
quads
To
String
quads
To
String
(
quads
:
Quad
[]
)
:
string
Parameters
quads:
Quad
[]
Returns
string
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
Modules
nanopub-
js
@nanopub/display
@nanopub/utils
Nanopub
Writer
constructor
_base
Length
_base
Matcher
_blocked
Write
_encode
Object
_encode
Predicate
_encode
Subject
_end
Stream
_graph
_in
Default
Graph
_lists
_output
Stream
_predicate
_prefixIRIs
_prefix
Regex
_subject
_write
_encode
Iri
Or
Blank
_write
Quad
add
Prefix
add
Prefixes
add
Quad
add
Quads
blank
end
list
quad
To
String
quads
To
String
Generated using
TypeDoc