ACME Inc: Difference between revisions
Content deleted Content added
Importing NeoWiki demo data |
Importing NeoWiki demo data |
||
| (7 intermediate revisions by 2 users 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 3:
"subjects": {
"s1demo1aaaaaaa1": {
"label": "ACME Inc
"schema": "Company",
"statements": {
Line 14:
"value": [
"https://acme.example"
},▼
]
},
Line 19 ⟶ 25:
"type": "number",
"value": 42
},▼
},
"Products": {
Line 36 ⟶ 46:
}
]
▲ }
▲ }
▲ "Available since": {
▲ "type": "number",
▲ "value": 2006
},
"
"type": "
"value": [
"target": "s1demo7aaaaaaa1"
},▼
"id": "r1demo7aaaaaar2",
"target": "s1demo7aaaaaaa2"
},▼
"id": "r1demo7aaaaaar3",
"target": "s1demo7aaaaaaa3"
}
]
▲ }
▲ }
▲ "Available since": {
▲ "type": "number",
▲ "value": 2010
},
"
"type": "
"value": [
"id": "r1demo7aaaaaar4",
"target": "s1demo7aaaaaaa4"
"id": "r1demo7aaaaaar5",
"target": "s1demo7aaaaaaa5"
}
]
▲ }
▲ }
▲ "Available since": {
▲ "type": "number",
▲ "value": 2015
},
"
"type": "
"value": [
"id": "r1demo7aaaaaar6",
"target": "s1demo7aaaaaaa4"
}
]
}
| |||