Generate cypher without running it.
The unsafe flag is required to inline parameters.
Beware of cypher injection, use schemas to restrict the shape of the source data.
transmute graph \
--accept 'application/vnd.transmute.cypher' \
--input 'examples/vcdm/did.jsonld' \
--unsafe
transmute graph \
--env '.env' \
--input 'examples/vcdm/did.jsonld'
transmute graph \
--env '.env' \
--input 'examples/vcdm/did.json'
transmute graph \
--env '.env' \
--input 'examples/vcdm/credential-with-location.json'
transmute graph \
--env '.env' \
--input 'examples/vcdm/credential.jwt.flat.json'
transmute graph \
--env '.env' \
--input 'examples/vcdm/presentation-with-location.json'
transmute graph \
--env '.env' \
--input 'examples/vcdm/presentation.jwt.flat.json'
MATCH (holder:`https://www.w3.org/2018/credentials#holder`)-[:Location]->(place:`https://schema.org/Place`)
MATCH (place)-[:Geo]->(point:`https://schema.org/GeoCoordinates`)
RETURN holder, point
MATCH (issuer:`https://www.w3.org/2018/credentials#issuer`)-[:Location]->(place:`https://schema.org/Place`)
MATCH (place)-[:Geo]->(point:`https://schema.org/GeoCoordinates`)
RETURN issuer, point
MATCH (issuer:`https://www.w3.org/2018/credentials#issuer`)-[:Location]->(p1:`https://schema.org/Place`)
MATCH (p1)-[:Geo]->(p2:`https://schema.org/GeoCoordinates`)
MATCH (holder:`https://www.w3.org/2018/credentials#holder`)-[:Location]->(p3:`https://schema.org/Place`)
MATCH (p3)-[:Geo]->(p4:`https://schema.org/GeoCoordinates`)
WITH
point({longitude: toFloat(p2.`https://schema.org/longitude`), latitude: toFloat(p2.`https://schema.org/latitude`)}) AS issuerPoint,
point({longitude: toFloat(p4.`https://schema.org/longitude`), latitude: toFloat(p4.`https://schema.org/latitude`)}) AS holderPoint
RETURN round(point.distance(issuerPoint, holderPoint)) AS presentationDistance
transmute graph \
--env '.env' \
--input 'examples/neo4j/example-0.json'
transmute graph \
--env '.env' \
--input 'examples/neo4j/simple-presentation-with-errors.json'
transmute graph \
--env '.env' \
--input 'examples/neo4j/simple-presentation-making-corrections.json'
transmute graph \
--env '.env' \
--input 'examples/neo4j/credential-schema.0.json'