1. Start by expressing that you are using the global space
2. Create your graph elements (Vertices and Edges)
CREATE VERTEX Organization (PRIMARY_ID organization_id STRING , name STRING) WITH primary_id_as_attribute="true"
CREATE VERTEX Filing (PRIMARY_ID filing_id UINT, idicij_sar_id UINT, transaction_count FLOAT, transaction_amount FLOAT) WITH primary_id_as_attribute="true"
CREATE VERTEX Country (PRIMARY_ID name STRING , iso STRING, latitude DOUBLE, longitude DOUBLE, population FLOAT, growth_rate FLOAT, area FLOAT, density FLOAT) WITH primary_id_as_attribute="true"
CREATE DIRECTED EDGE FILED (FROM Organization, TO Filing, begin_date STRING, end_date STRING) WITH REVERSE_EDGE="REVERSE_FILING"
CREATE DIRECTED EDGE BENEFICIARY (FROM Filing, TO Organization) WITH REVERSE_EDGE="REVERSE_BENEFICIARY"
CREATE DIRECTED EDGE ORIGINATOR (FROM Organization, TO Filing) WITH REVERSE_EDGE="REVERESE_ORIGINATOR"
CREATE UNDIRECTED EDGE LOCATED (FROM Country, TO Organization)
3. Create your first graph that will use some or all elements in the globally defined schema
CREATE GRAPH fincen_filing(Organization, Filing, FILED, BENEFICIARY, ORIGINATOR, REVERSE_FILING, REVERSE_BENEFICIARY, REVERESE_ORIGINATOR)
4. Create your second graph by pulling in elements from global
CREATE GRAPH fincen_geo(Organization, Country, LOCATED)
And that is it! You can see that Organization is defined in both graphs. When data is added to Organization that will be accessible by either graph. However, you cannot access Country from graph fincen_filing because it isn’t accessible through that graph.
Hopefully, that helps with some clarity. If you have questions feel free to ask below.