ACME Inc: Difference between revisions
Content deleted Content added
Update NeoWiki subject Tag: Reverted |
Importing NeoWiki demo data |
||
| (2 intermediate revisions by the same user not shown) | |||
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.
== Which departments are largest by headcount? ==
{{#invoke:NeoWikiDemo|query|MATCH (d:Department) RETURN d.name AS Department, d.Headcount AS Headcount ORDER BY Headcount DESC|columns=Department, Headcount|linkColumns=Department}}
== Browse ==
{{#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}}
== How this is built ==
* 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 1:
{
"mainSubject": "
"subjects": {
"label": "Foo",▼
"schema": "Product",▼
"statements": {▼
"Available since": {▼
"type": "number",▼
"value": 2006▼
},▼
"Website": {▼
"type": "url",▼
"value": [▼
"https://acme.example/product/foo"▼
]▼
}▼
}▼
"label": "Bar",▼
"schema": "Product",▼
"statements": {▼
"Available since": {▼
"type": "number",▼
"value": 2010▼
},▼
"Website": {▼
"type": "url",▼
"value": [▼
"https://acme.example/product/bar"▼
]▼
}▼
}▼
"label": "Baz",▼
"statements": {▼
"Available since": {▼
"type": "number",▼
"value": 2015▼
"type": "url",▼
"value": [▼
"https://acme.example/product/baz"▼
"s1demo1aaaaaaa1": {
"label": "ACME Inc
"schema": "Company",
"statements": {
Line 73 ⟶ 25:
"type": "number",
"value": 42
},
"Products": {
Line 88 ⟶ 44:
"id": "r1demo1aaaaaar3",
"target": "s1demo1aaaaaaa4"
▲ ]
▲ },
▲ "value": [
"target": "s1demo7aaaaaaa2"
"target": "s1demo7aaaaaaa3"
▲ }
▲ },
"target": "s1demo7aaaaaaa4"
"id": "r1demo7aaaaaar5",
"target": "s1demo7aaaaaaa5"
▲ }
▲ },
"id": "r1demo7aaaaaar6",
"target": "s1demo7aaaaaaa4"
}
]
| |||