Skip to content

Commit 1733d62

Browse files
Working through syntax
1 parent b82f0ed commit 1733d62

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

examples/AutomotiveCommerce.ts

+8
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
import { createGraph } from '../packages/core/index'
2+
import { Schema } from '../packages/schema/index'
3+
4+
const nouns = Schema()
5+
.Listing.isOffer.ofVehicle.atPriceSpecification.byAutoDealer()
6+
// .Buyer.Buys.Vehicle.inDeal()
7+
.Dealer.isAutoDealer()
8+
.Consumer.isPerson()
9+
.Vehicle.isCar()
210

311
export const AutomotiveServices = createGraph({
412
nouns: {

examples/AutomotiveServices.ts

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ export const AutoServices = createGraph({
2929
OrderStatus: { is: 'OrderStatus', of: 'OrderAction' },
3030
Delivery: { is: 'TransferAction', of: 'Vehicle', to: 'Person' },
3131
Provider: { is: 'AutomotiveBusiness', with: 'Service' },
32+
Buyer: { is: ['Person','Organization'] },
3233
},
3334
// nouns,
3435
verbs: {

0 commit comments

Comments
 (0)