liveBook · Manning

Attribute

As explained in Data Analysis with LLMs

A graph property is a named attribute associated with a graph node or relationship and holding a value.

A graph property is a named key associated with a graph element and holding a value. In a movie database, properties such as name, title, born, and released describe people and movies. section 5.4.2

Properties make graph data searchable and usable in query results:

  • A node can expose properties such as a person's name or a movie's title. section 5.4.2
  • A MATCH pattern can constrain a node by a property value, such as finding the person whose name is Tom Cruise. section 5.4.3
  • A RETURN clause can retrieve a matched node's property, while aggregation can count matched patterns. section 5.4.3

Finding a movie title

The pattern MATCH (p:Person {name: 'Tom Cruise'})-[:ACTED_IN]->(m:Movie) finds movies connected to the person whose name property is Tom Cruise. RETURN m.title outputs each matched movie's title property. section 5.4.3

 #1
MATCH (p:Person {name: 'Tom Cruise'})-[:ACTED_IN]->(m:Movie)
RETURN m.title                                       #2

View a complete Cypher example that matches a property value, follows a typed relationship, and returns another property's value. section 5.4.3

How Data Analysis with LLMs covers it

How deep it goes
Defines properties as key-value assignments and demonstrates matching and returning them, without descending into storage internals.
Examples
Demonstrates name and title properties in Movie and Person patterns, including a Tom Cruise lookup.
What it assumes
Requires a Neo4j graph whose node labels, relationship types, and relevant property keys can be identified.
What you can do after
Operate/configure Neo4j queries that match graph elements by property values and return selected property values.
How it connects
Connects properties with nodes, relationships, labels, Cypher queries, and Neo4j graph databases.

Also explained in

Compare how 26 books explain attribute →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Data Analysis with LLMs. The section links point to the parts of the book it draws on.