-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathqueries.qry
62 lines (49 loc) · 1.42 KB
/
queries.qry
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/**
* query the commodity via commodityid
*/
query query_commodity {
description: "Query the specific commodity via 'commodityid' link relationship"
statement: SELECT org.ms2819.supply.chain.network.Commodity WHERE (commodityid == _$tID )
}
/**
* query the desired order (Purchase_order asset) via "order_id""
*/
query query_purchase_order {
description: "Query the order'order_id' link relationship"
statement: SELECT org.ms2819.supply.chain.network.Purchase_order WHERE (order_id == _$tID )
}
/**
* query all the suppliers
*/
query query_suppliers {
description: "Query all the suppliers"
statement: SELECT org.ms2819.supply.chain.network.Supplier
}
/**
* query all the retailers
*/
query query_retailers {
description: "Query all the retailers"
statement: SELECT org.ms2819.supply.chain.network.Retailer
}
/**
* query all the manufacturers
*/
query query_manufactuers {
description: "Query all the manufactuers"
statement: SELECT org.ms2819.supply.chain.network.Manufacturer
}
/**
* query all the customers
*/
query query_customers {
description: "Query all the customers"
statement: SELECT org.ms2819.supply.chain.network.Customer
}
/**
* query all the distributors
*/
query query_dsitributors {
description: "Query all the distributors"
statement: SELECT org.ms2819.supply.chain.network.Supplier
}