Organization Learning
- Domain
- Goal
- Model
- Setup
- The graph
- Queries:
- What are the prerequisites for Certification 3?
- What learning paths does Cert1 have?
- To be certified in Cert1, which paths can I take which contain only web based courses?
- What certifications does Person1 need to move up to Position2?
- Which people do not hold required certifications for their position?
- Based on his current certifications, what are the potential positions for Person2?
Learning Management Systems (LMS) are typically deployed in large organizations to support learning processes that align with business goals These systems tie together their employees, organizations, certifications, courses, jobs in order to supplement business strategy. This graph gist models a slice of this ecosystem- certification paths and position dependencies on certifications.
Domain
A certification has one or more learning paths. A learning path is an ordered sequence of items that must be completed in order to acquire the certification. A learning item can be completed by taking a course or proving work experience. A course has a delivery type- it can be web based or classroom. Work Experience specifies the number of hours one must put in to complete it. To acquire a certification, an employee can take take any learning path and complete every item in it.
Employees hold certifications and complete courses and work experience. An employee may fill a position which requires that the incumbent possess certain certifications.
Exclusions
Career paths, employee skills, course pricing, goals, recertification etc. Also missing are institutes and instructors (see: https://gist.neo4j.org/?8021580 )
Goal
The model will help us answer the following questions:
-
As an employee, what are the prerequisites for a certification?
-
As an employee, what are the certification paths I can take to be certified in X?
-
As an employee, if I am targeting Position Y, what certifications am I missing?
-
As an organization, which people in my organization are not certified for the positions they hold?
-
As an organization, what are the potential positions available for an employee?
Model
Entities
-
Certification with attribute name
-
Learning Item with attribute name
-
Course with attributes name and delivery mode
-
Work Experience with attribute hours
-
Position with attribute name
-
Person with attribute name
Each entity will be labeled according to its type. In addition, the delivery mode on a course is modeled as a label. For the queries we want to answer above, this is sufficient, there is no need to model the delivery mode as an attribute as well.
Relationships
-
A certification has one or more learning paths.
-
A certification is a prerequisite for one or more certifications.
-
A learning path has an ordered list of learning items.
-
A learning item is fulfilled by a course or work experience.
-
A position requires one or more certifications.
-
An employee holds a position.
-
An employee holds one or more certifications.
-
An employee completes one or more courses.
-
An employee completes one or more work experiences.
A certification path consists of one or more ordered learning items. Since a certification can have more than one path, and items on the path can be common, we need a way to identify which items constitute one learning path. So a certification path is modelled as a chain where each "next" relation is qualified by the learning path name.
Note above that the relation from a certification to its learning items are modeled using the same relation type: NEXT_LEARNING
.
This makes it easier to query for an entire path starting at the certification.
This evolved from a model where a the following is true:
(certification)-[:HAS_LEARNING_PATH]->(learningItem)-[:NEXT]->(learningItem)-[:NEXT]->(learningItem)
Two relations added no immediate value and more complexity to the kinds of queries targeted, so it was remodeled as a single relation.
The other relations are self explanatory.
The nice advantage with the schema free property of a graph is the ability to attach any kinds of entities to fulfill learning items and still run the same kinds of queries as you would with a simplified model as above.
Queries:
What are the prerequisites for Certification 3?
MATCH (c:Certification {name:"Cert3"})<-[:IS_PREREQUISITE]-(prereq)
RETURN prereq.name
What learning paths does Cert1 have?
MATCH p=(c:Certification {name:"Cert1"})-[lp:NEXT_LEARNING*]->(li)-[:FULFILLED_BY]->(f)
WITH head(lp).path as startPath,lp,p,f
WHERE ALL (x in lp where x.path=startPath)
RETURN p
To be certified in Cert1, which paths can I take which contain only web based courses?
MATCH p=(cert:Certification {name:"Cert1"})-[lp:NEXT_LEARNING*]->(li)
WITH (last(nodes(p))) as lastItem,li,p,lp
WHERE ((li)-[:FULFILLED_BY]->(:Web)) and (not(lastItem)-[:NEXT_LEARNING]->())
WITH head(lp).path as startPath,lp,p
WHERE ALL (x in lp where x.path=startPath)
RETURN p
What certifications does Person1 need to move up to Position2?
MATCH (position:Position {name:"Position2"})-[:REQUIRES]->(cert)
WITH cert
MATCH (person:Person {name:"Person1"})
WITH cert,person
WHERE NOT((person)-[:HAS_CERTIFICATION]->(cert))
RETURN cert.name as missingCert
Which people do not hold required certifications for their position?
MATCH (person:Person)-[:HOLDS_POSITION]->(position:Position)-[:REQUIRES]->(cert)
WHERE NOT((person)-[:HAS_CERTIFICATION]->(cert))
RETURN person.name, COLLECT(cert.name) as missingCerts
Based on his current certifications, what are the potential positions for Person2?
MATCH (person:Person)-[:HAS_CERTIFICATION]->(cert)
WITH COLLECT(cert) as heldCerts,person
MATCH (position:Position)-[:REQUIRES]->(requiredCert)
WHERE NOT((person)-[:HOLDS_POSITION]->(position))
WITH COLLECT(requiredCert) as requiredCerts,heldCerts,position
WHERE ALL(rc in requiredCerts where rc in heldCerts)
RETURN position.name
Created by Luanne Misquitta:
Is this page helpful?