class documentation
class Concept(object): (source)
Constructor: Concept(prefLabel, arity, altLabels, closures, extension)
A Concept class, loosely based on SKOS (http://www.w3.org/TR/swbp-skos-core-guide/).
Method | __init__ |
@keyword altLabels: other (related) labels :type altLabels: list @keyword closures: closure properties of the extension (list items can be symmetric, reflexive, transitive) :type closures: list @keyword extension: the extensional value of the concept :type extension: set... |
Method | __repr__ |
Undocumented |
Method | __str__ |
Undocumented |
Method | augment |
Add more data to the Concept's extension set. |
Method | close |
Close a binary relation in the Concept's extension set. |
Instance Variable | alt |
Undocumented |
Instance Variable | arity |
Undocumented |
Instance Variable | closures |
Undocumented |
Instance Variable | extension |
Undocumented |
Instance Variable | pref |
Undocumented |
Method | _make |
Convert a set of pairs into an adjacency linked list encoding of a graph. |
Method | _make |
Convert an adjacency linked list back into a set of pairs. |
Method | _transclose |
Compute the transitive closure of a graph represented as a linked list. |
Instance Variable | _extension |
Undocumented |
@keyword altLabels: other (related) labels :type altLabels: list @keyword closures: closure properties of the extension (list items can be symmetric, reflexive, transitive) :type closures: list @keyword extension: the extensional value of the concept :type extension: set
Parameters | |
pref | the preferred label for the concept |
arity:int | the arity of the concept |
alt | Undocumented |
closures | Undocumented |
extension | Undocumented |
Add more data to the Concept's extension set.
Parameters | |
data:string or pair of strings | a new semantic value |
Returns | |
set | Undocumented |
Close a binary relation in the Concept's extension set.
Returns | |
a new extension for the Concept in which the relation is closed under a given property |