Revert base query

Add domain selection to high val query
master
Rohan Vazarkar 2018-08-01 16:22:40 -04:00
parent e13896ef41
commit 3d876da2dc
2 changed files with 8 additions and 3 deletions

View File

@ -133,8 +133,8 @@ export default class GraphContainer extends Component {
this.initializeSigma();
this.doQueryNative({
//statement:'MATCH (n:Group) WHERE n.objectsid =~ "(?i)S-1-5.*-512" WITH n MATCH (n)<-[r:MemberOf*1..]-(m) RETURN n,r,m',
statement: 'MATCH (n)-[r:AdminTo]->(m) RETURN n,r,m LIMIT 5',
statement:'MATCH (n:Group) WHERE n.objectsid =~ "(?i)S-1-5.*-512" WITH n MATCH (n)<-[r:MemberOf*1..]-(m) RETURN n,r,m',
//statement: 'MATCH (n)-[r:AdminTo]->(m) RETURN n,r,m LIMIT 5',
//statement: 'MATCH p=(n:Domain)-[r]-(m:Domain) RETURN p',
allowCollapse: false,
props: {}

View File

@ -191,10 +191,15 @@
{
"name": "Shortest Paths to High Value Targets",
"queryList": [
{
"final": false,
"title": "Select a Domain",
"query": "MATCH (n:Domain) RETURN n.name ORDER BY n.name DESC"
},
{
"final": true,
"query":
"MATCH (n),(m),p=shortestPath((n)-[r:{}*1..]->(m)) WHERE m.highvalue=true AND NOT m = n RETURN p",
"MATCH (n),(m),p=shortestPath((n)-[r:{}*1..]->(m)) WHERE m.domain={result} AND m.highvalue=true AND NOT m = n RETURN p",
"allowCollapse": true,
"endNode": "{}"
}