Home | Trees | Indices | Help |
|
---|
|
object --+ | Path
A path represents a connection between records and fields
>>> service = Service("http://www.flymine.org/query/service") model = service.model path = model.make_path("Gene.organism.name") path.is_attribute() ... True >>> path2 = model.make_path("Gene.proteins") path2.is_attribute() ... False >>> path2.is_reference() ... True >>> path2.get_class() ... <intermine.model.Class: gene>
This class is used for performing validation on dotted path strings. The simple act of parsing it into existence will validate the path to some extent, but there are additional methods for verifying certain relationships as well
|
|||
|
|||
|
|||
|
|||
model.Class |
|
||
boolean |
|
||
boolean |
|
||
boolean |
|
||
Inherited from |
|
|||
model.Class or model.Field |
end The descriptor for the last part of the string. |
||
Inherited from |
|
Constructor>>> path = Path("Gene.name", model) You will not need to use this constructor directly. Instead, use the "make_path" method on the model to construct paths for you.
|
str(x)
|
repr(x)
|
Return the class object for this path, if it refers to a class or a reference. Attribute paths return None
|
|
endThe descriptor for the last part of the string.
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu Apr 7 18:06:27 2011 | http://epydoc.sourceforge.net |