After clicking the URL, I can see the correct relationship info listed below in a browser. and I am trying to extract the value of "type" which is "RESIDENT_Of"
As @michael.hunger says, the REST API will be disappearing in Neo4j 4.0; it is being deprecated in 3.5.
If you run the Cypher through the official driver instead, you will need something like the following:
from neo4j.v1 import GraphDatabase
driver = GraphDatabase.driver("bolt://localhost:7687", auth=("neo4j", "password"))
with driver.session() as session:
result = session.run("MATCH (n:Person)-[rel]->(a:Address) RETURN rel")
for record in result:
rel = record["rel"]
print(rel.type)
Alternatively, if you're just working with graphy types (nodes and relationships) in your results, and ordering doesn't matter, you can jump into the result graph:
# ...skipping several lines
graph = session.run("MATCH (n:Person)-[rel]->(a:Address) RETURN rel").graph()
for rel in graph.relationships:
print(rel.type)