apoc.data.url
Function APOC Core
apoc.data.url('url') as {protocol,host,port,path,query,file,anchor,user} | turn URL into map structure
Usage Examples
WITH apoc.data.url("https://www.neo4j.com/developer/graph-data-science?q=neo4j#heading-1") AS output
UNWIND keys(output) AS key
RETURN key, output[key] AS value;
key | value |
---|---|
"path" |
"/developer/graph-data-science" |
"protocol" |
"https" |
"file" |
"/developer/graph-data-science?q=neo4j" |
"port" |
NULL |
"query" |
"q=neo4j" |
"anchor" |
"heading-1" |
"host" |
"www.neo4j.com" |
"user" |
NULL |