| status | author | editor | spellChecked |
|---|---|---|---|
published |
masterbunny@gmail.com |
j.faassen@linkorb.com |
2018-07-17 |
Getting Started guides you through the installation of NetworQ. The terms used are covered in concepts. Assuming that you are familiar with the terms, and have the setup completed, you are ready to create a Graph. A Graph is a container for one or more Packages and their contents, creating the functioning interface for your data.
This work-through will create an imaginary school headed by Barack Obama.
The school name provides our package name; old-skool-nqp
(following the convention to name a package with the tail "NetworQ package": nqp).
The YAML files in NetworQ are used as your data store, and for configuration. Create a YAML in your directory called package.yaml.
For example:
- name
- description
- license
The ability to use existing packages is a key functionality of NetworQ. For the sake of brevity, this example will use a minimal dependency list. A real Graph may adopt many packages.
- Complete as shown:
name: old-skool:organization
description: Old Skool Organization Graph
license: MIT
dependencies:
networq:core: latest # essential
networq:resource: latest
networq:organization: latest
networq:linkedin: latest
networq:skype: latest
networq:contract: latest- Set directory to old-skool-nqp and run the command
networq install.
Using the directory containing your old skool package, following 2-4 of Applying a Package in Getting Started. 5.1) set up the dependencies. 5.2) configure NetworQ to use this old-skool-nqp as the local package. 5.3) start the server.
Success will look something like this:
NetworQ installed dependent packages into a package directory. Rather than push these back to git hub it is best to set up a git ignore. In the old-skool-nqp directory, set up a git ignore file for the packages directory:
packages/.
Barack Obama will be the head teacher for our imaginary school. That concept requires 3 nodes within our package.
Barack is an individual. Management is a group and School is an organization. The management and organisation nodes are inherited from existing packages and so provide various types.
Creating these nodes may be achieved by applying the following techniques:
- Creating 3 YAML files in the nodes directory.
- Or by running a local instance of networq-web and browsing via localhost. The
New Nodebutton provides this functionality:
-
old-skool.yaml
- This YAML must describe the organization
- Complete as shown:
networq:core:node:
name: Old Skool
description: This is the Old Skool organization
networq:organization:organization: ~
networq:organization:group: ~-
management.yaml
- This YAML must describe the management group
- Complete as shown:
networq:core:node:
name: Management group
networq:organization:group:
parentGroup: old-skool:organization:old-skool
-
barack-obama.yaml
- This YAML must describe Barack Obama and his position in the school
- Complete as shown:
networq:core:node:
name: Barack Obama
image: (enter URL)
networq:organization:member:
memberships:
barack-obama-management:
networq:organization:membership:
group: old-skool:organization:management
member: old-skool:organization:barack-obama
focus: Head teacherTo reinforce the concept, and introduce some shortcodes, let's give the school a teacher. Sarah Palin will be our Head of Mathematics and Barack Obama's assistant head. Sarah will, therefore, belong to more than one group, the management group, and the teaching group.
The management group already exists for Sarah to join however, we need to create a teaching group. The teaching group, as per a traditional school hierachy, sits under the management group.
-
teaching.yaml
- This YAML must describe the teaching group
- Complete as shown:
networq:core:node:
name: Teaching group
networq:organization:group:
parentGroup: old-skool:organization:management-
sarah-palin.yaml
- This YAML must describe Sarah Palin and her position within the school
- Complete as shown:
networq:core:node:
name: Sarah Palin
image: (enter URL)
networq:organization:member:
memberships:
~teaching:
networq:organization:membership:
group: old-skool:organization:teaching
member: $
focus: Math
~management:
networq:organization:membership:
group: old-skool:organization:management
member: $
focus: Head of MathNotice the use of $ here as shortcode to apply the document name. Similarly [] signifies many. networq:organization:membership[], for example, denotes multiple memberships.
You have created your first graph and applied some of the basic concepts involved in making use of existing packages. This system may be used for myriad purposes. One of the early applications developed is for institutional management applying the Holacracy architecture.
Found a typo or error? Create a PR.