ACME Inc: Difference between revisions
Appearance
Content deleted Content added
Importing NeoWiki demo data |
Importing NeoWiki demo data |
||
| (6 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
A fictional company that demonstrates NeoWiki's structured-data features in a corporate knowledge-base scenario: departments, offices, products, and the relations between them. '''ACME Inc''' is the Main Subject of this page. Each related entity has its own page, linked through the relations shown in the infobox above. |
|||
The Main Subject of this page is the Company ACME Inc, shown in the infobox. |
|||
== Which departments are largest by headcount? == |
|||
The page also contains Child Subjects which are Products. |
|||
{{#invoke:NeoWikiDemo|query|MATCH (d:Department) RETURN d.name AS Department, d.Headcount AS Headcount ORDER BY Headcount DESC|columns=Department, Headcount|linkColumns=Department}} |
|||
TODO: show a table here, for now see the "View or edit JSON" developer UI at the bottom |
|||
== Browse == |
|||
You can have as many Child Subjects on a page as you want. For instance you could also define Employees. |
|||
{{#invoke:NeoWikiDemo|query|MATCH (d:Department) RETURN d.name AS Subject, 'Department' AS Type UNION MATCH (o:Office) RETURN o.name AS Subject, 'Office' AS Type UNION MATCH (p:Product) RETURN p.name AS Subject, 'Product' AS Type|columns=Subject, Type|linkColumns=Subject}} |
|||
TODO: show a table here, for now see the "View or edit JSON" developer UI at the bottom |
|||
== How this is built == |
|||
It is up to you to choose if you define products, employees and other business objects on their own pages or if you |
|||
define multiple subjects on a single page. |
|||
* Schemas: [[Schema:Company]], [[Schema:Department]], [[Schema:Office]], [[Schema:Product]], [[Schema:Employee]] |
|||
* Layout: [[Layout:CompanyOverview]] |
|||
* See the source of this page: [{{fullurl:{{FULLPAGENAME}}|action=edit}} Edit this page] |
|||
* The infobox renders automatically from the Main Subject. The tables come from Cypher queries via [[Module:NeoWikiDemo]]. |
|||
| neo | |||
|---|---|---|---|
| Line 3: | Line 3: | ||
"subjects": { |
"subjects": { |
||
"s1demo1aaaaaaa1": { |
"s1demo1aaaaaaa1": { |
||
"label": "ACME Inc |
"label": "ACME Inc", |
||
"schema": "Company", |
"schema": "Company", |
||
"statements": { |
"statements": { |
||
| Line 14: | Line 14: | ||
"value": [ |
"value": [ |
||
"https://acme.example" |
"https://acme.example" |
||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
] |
] |
||
}, |
}, |
||
| Line 19: | Line 25: | ||
"type": "number", |
"type": "number", |
||
"value": 42 |
"value": 42 |
||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
}, |
}, |
||
"Products": { |
"Products": { |
||
| Line 36: | Line 46: | ||
} |
} |
||
] |
] |
||
| ⚫ | |||
| ⚫ | |||
}, |
|||
"s1demo1aaaaaaa2": { |
|||
"label": "Foo", |
|||
"schema": "Product", |
|||
"statements": { |
|||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
}, |
}, |
||
" |
"Departments": { |
||
"type": " |
"type": "relation", |
||
"value": [ |
"value": [ |
||
{ |
|||
| ⚫ | |||
"target": "s1demo7aaaaaaa1" |
|||
| ⚫ | |||
| ⚫ | |||
"id": "r1demo7aaaaaar2", |
|||
"target": "s1demo7aaaaaaa2" |
|||
| ⚫ | |||
| ⚫ | |||
"id": "r1demo7aaaaaar3", |
|||
"target": "s1demo7aaaaaaa3" |
|||
} |
|||
] |
] |
||
| ⚫ | |||
| ⚫ | |||
}, |
|||
"s1demo1aaaaaaa3": { |
|||
"label": "Bar", |
|||
"schema": "Product", |
|||
"statements": { |
|||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
}, |
}, |
||
" |
"Offices": { |
||
"type": " |
"type": "relation", |
||
"value": [ |
"value": [ |
||
{ |
|||
"id": "r1demo7aaaaaar4", |
|||
"target": "s1demo7aaaaaaa4" |
|||
| ⚫ | |||
| ⚫ | |||
"id": "r1demo7aaaaaar5", |
|||
"target": "s1demo7aaaaaaa5" |
|||
} |
|||
] |
] |
||
| ⚫ | |||
| ⚫ | |||
}, |
|||
"s1demo1aaaaaaa4": { |
|||
"label": "Baz", |
|||
"schema": "Product", |
|||
"statements": { |
|||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
}, |
}, |
||
" |
"Headquarters": { |
||
"type": " |
"type": "relation", |
||
"value": [ |
"value": [ |
||
{ |
|||
"id": "r1demo7aaaaaar6", |
|||
"target": "s1demo7aaaaaaa4" |
|||
} |
|||
] |
] |
||
} |
} |
||
Latest revision as of 10:18, 10 June 2026
A fictional company that demonstrates NeoWiki's structured-data features in a corporate knowledge-base scenario: departments, offices, products, and the relations between them. ACME Inc is the Main Subject of this page. Each related entity has its own page, linked through the relations shown in the infobox above.
Which departments are largest by headcount?
| Department | Headcount |
|---|---|
| ACME Engineering | 184 |
| ACME Sales | 96 |
| ACME Operations | 47 |
Browse
| Subject | Type |
|---|---|
| ACME Engineering | Department |
| ACME Sales | Department |
| ACME Operations | Department |
| ACME Amsterdam HQ | Office |
| ACME Vienna Office | Office |
| ProWiki | Product |
| NeoWiki | Product |
| Acme Anvil | Product |
| Acme Rocket | Product |
| Acme TNT | Product |
| Test Subject | Product |
| Foo | Product |
| Exampleproduct | Product |
How this is built
- Schemas: Schema:Company, Schema:Department, Schema:Office, Schema:Product, Schema:Employee
- Layout: Layout:CompanyOverview
- See the source of this page: Edit this page
- The infobox renders automatically from the Main Subject. The tables come from Cypher queries via Module:NeoWikiDemo.