Jump to content

ACME Inc: Difference between revisions

From NeoWiki Demo
Content deleted Content added
NeoWiki (talk | contribs)
Importing NeoWiki demo data
 
NeoWiki (talk | contribs)
Importing NeoWiki demo data
 
(7 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}}
{{#table:Product}}


== 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}}
{{#table:Employee}}


== 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]]
For a similar example, see [[F_capture_actuals]].
* 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"
]
},
"Status": {
"type": "select",
"value": [
"o1demo1aaaaaaa1"
]
]
},
},
Line 19: Line 25:
"type": "number",
"type": "number",
"value": 42
"value": 42
},
"Is public": {
"type": "boolean",
"value": true
},
},
"Products": {
"Products": {
Line 36: Line 46:
}
}
]
]
}
}
},
"s1demo1aaaaaaa2": {
"label": "Foo",
"schema": "Product",
"statements": {
"Available since": {
"type": "number",
"value": 2006
},
},
"Website": {
"Departments": {
"type": "url",
"type": "relation",
"value": [
"value": [
"https://acme.example/product/foo"
{
"id": "r1demo7aaaaaar1",
"target": "s1demo7aaaaaaa1"
},
{
"id": "r1demo7aaaaaar2",
"target": "s1demo7aaaaaaa2"
},
{
"id": "r1demo7aaaaaar3",
"target": "s1demo7aaaaaaa3"
}
]
]
}
}
},
"s1demo1aaaaaaa3": {
"label": "Bar",
"schema": "Product",
"statements": {
"Available since": {
"type": "number",
"value": 2010
},
},
"Website": {
"Offices": {
"type": "url",
"type": "relation",
"value": [
"value": [
"https://acme.example/product/bar"
{
"id": "r1demo7aaaaaar4",
"target": "s1demo7aaaaaaa4"
},
{
"id": "r1demo7aaaaaar5",
"target": "s1demo7aaaaaaa5"
}
]
]
}
}
},
"s1demo1aaaaaaa4": {
"label": "Baz",
"schema": "Product",
"statements": {
"Available since": {
"type": "number",
"value": 2015
},
},
"Website": {
"Headquarters": {
"type": "url",
"type": "relation",
"value": [
"value": [
"https://acme.example/product/baz"
{
"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