ACME Inc: Difference between revisions

Content deleted Content added
Update subject via NeoWiki UI
NeoWiki (talk | contribs)
Importing NeoWiki demo data
 
(4 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.
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:
"subjects": {
"s1demo1aaaaaaa1": {
"label": "ACME Inc.",
"schema": "Company",
"statements": {
"Founded at": {
"type": "number",
"value": 20062005
},
"Websites": {
Line 19:
"type": "select",
"value": [
"Activeo1demo1aaaaaaa1"
]
},
Line 25:
"type": "number",
"value": 42
},
"AvailableIs sincepublic": {
"type": "numberboolean",
"value": 2006true
},
"Products": {
Line 42 ⟶ 46:
}
]
}
}
},
"s1demo1aaaaaaa2": {
"label": "Foo",
"schema": "Product",
"statements": {
"Available since": {
"type": "number",
"value": 2006
},
"WebsiteDepartments": {
"type": "urlrelation",
"value": [
"https://acme.example/product/foo"{
"typeid": "numberr1demo7aaaaaar1",
"typetarget": "numbers1demo7aaaaaaa1",
},
} {
"valueid": 2010"r1demo7aaaaaar2",
"valuetarget": 2015"s1demo7aaaaaaa2"
},
"Available since": {
"id": "r1demo7aaaaaar3",
"target": "s1demo7aaaaaaa3"
}
]
}
}
},
"s1demo1aaaaaaa3": {
"label": "Bar",
"schema": "Product",
"statements": {
"Available since": {
"type": "number",
"value": 2010
},
"WebsiteOffices": {
"type": "urlrelation",
"value": [
"https://acme.example/product/bar"{
"id": "r1demo7aaaaaar4",
"target": "s1demo7aaaaaaa4"
},
"Available since": {
"id": "r1demo7aaaaaar5",
"target": "s1demo7aaaaaaa5"
}
]
}
}
},
"s1demo1aaaaaaa4": {
"label": "Baz",
"schema": "Product",
"statements": {
"Available since": {
"type": "number",
"value": 2015
},
"WebsiteHeadquarters": {
"type": "urlrelation",
"value": [
"https://acme.example/product/baz"{
"id": "r1demo7aaaaaar6",
"target": "s1demo7aaaaaaa4"
}
]
}