new edge(subject, object, predicateopt) → {this}
Sublcass of bbop-graph.edge for use with Noctua ideas and concepts.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
subject |
String | required subject id | |
object |
String | required object id | |
predicate |
String |
<optional> |
preidcate id; if not provided, will use defined default (you probably want to provide one--explicit is better) |
Returns:
- Type
- this
Methods
clone() → {edge}
Get a fresh new copy of the current edge--no shared structure.
Returns:
- new copy of edge
- Type
- edge
id() → {String}
Access to the immutable "id".
Returns:
string
- Type
- String
label(valueopt) → {String|null}
Access to the mutable "label" for the edge.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
value |
String |
<optional> |
lbl |
Returns:
string
- Type
- String | null
relation(valueopt) → {String}
Get/set "relation" of edge.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
value |
String |
<optional> |
string |
Returns:
string
- Type
- String
source(valueopt) → {String}
Get/set "source" of edge.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
value |
String |
<optional> |
string |
Returns:
string
- Type
- String
target(valueopt) → {String}
Get/set "target" of edge.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
value |
String |
<optional> |
string |
Returns:
string
- Type
- String