Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
A simple TinkerPop version 3 syntax model
Synopsis
- data Edge v e p = Edge {
- edgeLabel :: EdgeLabel
- edgeId :: e
- edgeOut :: v
- edgeIn :: v
- edgeProperties :: Map PropertyKey p
- _Edge :: Name
- _Edge_label :: FieldName
- _Edge_id :: FieldName
- _Edge_out :: FieldName
- _Edge_in :: FieldName
- _Edge_properties :: FieldName
- newtype EdgeLabel = EdgeLabel {}
- _EdgeLabel :: Name
- data Element v e p
- = ElementVertex (Vertex v p)
- | ElementEdge (Edge v e p)
- _Element :: Name
- _Element_vertex :: FieldName
- _Element_edge :: FieldName
- data Graph v e p = Graph {
- graphVertices :: Set (Vertex v p)
- graphEdges :: Set (Edge v e p)
- _Graph :: Name
- _Graph_vertices :: FieldName
- _Graph_edges :: FieldName
- data Property p = Property {
- propertyKey :: PropertyKey
- propertyValue :: p
- _Property :: Name
- _Property_key :: FieldName
- _Property_value :: FieldName
- newtype PropertyKey = PropertyKey {}
- _PropertyKey :: Name
- data Vertex v p = Vertex {
- vertexLabel :: VertexLabel
- vertexId :: v
- vertexProperties :: Map PropertyKey p
- _Vertex :: Name
- _Vertex_label :: FieldName
- _Vertex_id :: FieldName
- _Vertex_properties :: FieldName
- newtype VertexLabel = VertexLabel {}
- _VertexLabel :: Name
Documentation
An edge
Edge | |
|
Instances
(Read e, Read v, Read p) => Read (Edge v e p) Source # | |
(Show e, Show v, Show p) => Show (Edge v e p) Source # | |
(Eq e, Eq v, Eq p) => Eq (Edge v e p) Source # | |
(Ord e, Ord v, Ord p) => Ord (Edge v e p) Source # | |
The (required) label of an edge
EdgeLabel | |
|
_EdgeLabel :: Name Source #
Either a vertex or an edge
ElementVertex (Vertex v p) | |
ElementEdge (Edge v e p) |
Instances
(Read v, Read p, Read e) => Read (Element v e p) Source # | |
(Show v, Show p, Show e) => Show (Element v e p) Source # | |
(Eq v, Eq p, Eq e) => Eq (Element v e p) Source # | |
(Ord v, Ord p, Ord e) => Ord (Element v e p) Source # | |
Defined in Hydra.Ext.Tinkerpop.V3 compare :: Element v e p -> Element v e p -> Ordering # (<) :: Element v e p -> Element v e p -> Bool # (<=) :: Element v e p -> Element v e p -> Bool # (>) :: Element v e p -> Element v e p -> Bool # (>=) :: Element v e p -> Element v e p -> Bool # |
A graph; a self-contained collection of vertices and edges
Graph | |
|
Instances
(Read v, Read p, Read e, Ord v, Ord p, Ord e) => Read (Graph v e p) Source # | |
(Show v, Show p, Show e) => Show (Graph v e p) Source # | |
(Eq v, Eq p, Eq e) => Eq (Graph v e p) Source # | |
(Ord v, Ord p, Ord e) => Ord (Graph v e p) Source # | |
Defined in Hydra.Ext.Tinkerpop.V3 |
A key/value property
Property | |
|
Instances
Read p => Read (Property p) Source # | |
Show p => Show (Property p) Source # | |
Eq p => Eq (Property p) Source # | |
Ord p => Ord (Property p) Source # | |
newtype PropertyKey Source #
A property key
PropertyKey | |
|
Instances
Read PropertyKey Source # | |
Defined in Hydra.Ext.Tinkerpop.V3 readsPrec :: Int -> ReadS PropertyKey # readList :: ReadS [PropertyKey] # readPrec :: ReadPrec PropertyKey # readListPrec :: ReadPrec [PropertyKey] # | |
Show PropertyKey Source # | |
Defined in Hydra.Ext.Tinkerpop.V3 showsPrec :: Int -> PropertyKey -> ShowS # show :: PropertyKey -> String # showList :: [PropertyKey] -> ShowS # | |
Eq PropertyKey Source # | |
Defined in Hydra.Ext.Tinkerpop.V3 (==) :: PropertyKey -> PropertyKey -> Bool # (/=) :: PropertyKey -> PropertyKey -> Bool # | |
Ord PropertyKey Source # | |
Defined in Hydra.Ext.Tinkerpop.V3 compare :: PropertyKey -> PropertyKey -> Ordering # (<) :: PropertyKey -> PropertyKey -> Bool # (<=) :: PropertyKey -> PropertyKey -> Bool # (>) :: PropertyKey -> PropertyKey -> Bool # (>=) :: PropertyKey -> PropertyKey -> Bool # max :: PropertyKey -> PropertyKey -> PropertyKey # min :: PropertyKey -> PropertyKey -> PropertyKey # |
_PropertyKey :: Name Source #
A vertex
Vertex | |
|
Instances
(Read v, Read p) => Read (Vertex v p) Source # | |
(Show v, Show p) => Show (Vertex v p) Source # | |
(Eq v, Eq p) => Eq (Vertex v p) Source # | |
(Ord v, Ord p) => Ord (Vertex v p) Source # | |
newtype VertexLabel Source #
The label of a vertex. The default (null) vertex is represented by the empty string
VertexLabel | |
|
Instances
Read VertexLabel Source # | |
Defined in Hydra.Ext.Tinkerpop.V3 readsPrec :: Int -> ReadS VertexLabel # readList :: ReadS [VertexLabel] # readPrec :: ReadPrec VertexLabel # readListPrec :: ReadPrec [VertexLabel] # | |
Show VertexLabel Source # | |
Defined in Hydra.Ext.Tinkerpop.V3 showsPrec :: Int -> VertexLabel -> ShowS # show :: VertexLabel -> String # showList :: [VertexLabel] -> ShowS # | |
Eq VertexLabel Source # | |
Defined in Hydra.Ext.Tinkerpop.V3 (==) :: VertexLabel -> VertexLabel -> Bool # (/=) :: VertexLabel -> VertexLabel -> Bool # | |
Ord VertexLabel Source # | |
Defined in Hydra.Ext.Tinkerpop.V3 compare :: VertexLabel -> VertexLabel -> Ordering # (<) :: VertexLabel -> VertexLabel -> Bool # (<=) :: VertexLabel -> VertexLabel -> Bool # (>) :: VertexLabel -> VertexLabel -> Bool # (>=) :: VertexLabel -> VertexLabel -> Bool # max :: VertexLabel -> VertexLabel -> VertexLabel # min :: VertexLabel -> VertexLabel -> VertexLabel # |
_VertexLabel :: Name Source #