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 |
|
|||
intermine.model.Class |
root The descriptor for the first part of the string. |
||
model.Class or model.Field |
end The descriptor for the last part of the string. |
||
model.Class |
end_class Return the class object for this path, if it refers to a class or a reference. |
||
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
|
|
rootThe descriptor for the first part of the string. This should always a class descriptor.
|
endThe descriptor for the last part of the string.
|
end_classReturn the class object for this path, if it refers to a class or a reference. Attribute paths return None
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu Jul 28 19:30:51 2011 | http://epydoc.sourceforge.net |