Skip to content

Commit

Permalink
Use surrogate IDs in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
wrygiel committed Jan 9, 2017
1 parent e66750d commit 27f892e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ There are a couple of consequences of this strategy:
* Each exposed LOS MUST have type.

* LOSes MUST NOT change their type, ever. If, for some reason, HEI wants to
change a type of the LOS entity, it MUST expose is under a different ID.
change a type of the LOS entity, it MUST expose it under a different ID.

* For safety, it is HIGHLY RECOMMENDED that all implementers use [surrogate
IDs](https://en.wikipedia.org/wiki/Surrogate_key) in their LOS ID suffixes.
Expand Down
12 changes: 6 additions & 6 deletions response-example.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
solely on the example file.
-->
<learningOpportunitySpecification>
<los-id>CR/MA100</los-id>
<los-id>CR/f6d14b1f-f330-4956-8819-e24feb12d519</los-id>
<title xml:lang="no">Grunnkurs i matematikk</title>
<title xml:lang="en">Introductory calculus</title>
<type>Course</type>
Expand All @@ -26,7 +26,7 @@
<description xml:lang="en">Some description</description>
<specifies>
<learningOpportunityInstance>
<loi-id>CRI/2016/2017-MA100</loi-id>
<loi-id>CRI/13466290</loi-id> <!-- we recommend UUIDs though -->
<start>2016-07-01</start>
<end>2016-12-31</end>
<trm:academic-term>
Expand Down Expand Up @@ -58,18 +58,18 @@
<engagementHours>60</engagementHours>
</learningOpportunityInstance>
<learningOpportunityInstance>
<loi-id>CRI/2015/2016-MA100</loi-id>
<loi-id>CRI/14061212</loi-id>
<start>2015-07-01</start>
<end>2015-12-31</end>
</learningOpportunityInstance>
</specifies>
<contains>
<los-id>CLS/MA100-A</los-id>
<los-id>CLS/MA100-B</los-id>
<los-id>CLS/95153879-1ba9-43a0-a845-0a50b4d52f9b</los-id>
<los-id>CLS/06e518cc-a67c-4595-a7bb-367978d93e70</los-id>
</contains>
</learningOpportunitySpecification>
<learningOpportunitySpecification>
<los-id>DEP/STAVH</los-id>
<los-id>DEP/a1a43018-558c-45ed-a187-3c966e7bac77</los-id>
<title xml:lang="no">Statsvitenskap hovedfag</title>
<title xml:lang="en">Political science, main subject</title>
<type>Degree Programme</type>
Expand Down

0 comments on commit 27f892e

Please sign in to comment.