Skip to content

Commit

Permalink
Update documentation and CTIDs
Browse files Browse the repository at this point in the history
  • Loading branch information
ottonomy committed Sep 28, 2023
1 parent 6fb521b commit c323f6b
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 3 deletions.
3 changes: 1 addition & 2 deletions LearningProgram/1/LearningProgram-1-graph.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
{
"@context": "https://credreg.net/ctdl/schema/context/json",
"@id": "https://credentialengine.github.io/credential-registry-ingest-examples/LearningProgram/1/LearningProgram-1-graph.json",
"@graph": [
{
"@id": "https://credentialengine.github.io/credential-registry-ingest-examples/LearningProgram/1/LearningProgram-1.json",
"@type": "ceterms:LearningProgram",
"ceterms:ctid": "ce-bada0d68-f026-441d-80c1-cdabace4e525",
"ceterms:ctid": "ce-23b0e606-545c-4383-8630-f97ec3b190fa",
"ceterms:name": { "en-US": "Lifelong Learning Accelerator" },
"ceterms:hasPart": [
"https://credentialengine.github.io/credential-registry-ingest-examples/LearningProgram/1/Course-1a.json",
Expand Down
2 changes: 1 addition & 1 deletion LearningProgram/1/LearningProgram-1.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"@context": "https://credreg.net/ctdl/schema/context/json",
"@id": "https://credentialengine.github.io/credential-registry-ingest-examples/LearningProgram/1/LearningProgram-1.json",
"@type": "ceterms:LearningProgram",
"ceterms:ctid": "ce-bada0d68-f026-441d-80c1-cdabace4e525",
"ceterms:ctid": "ce-23b0e606-545c-4383-8630-f97ec3b190fa",
"ceterms:name": { "en-US": "Lifelong Learning Accelerator" },
"ceterms:hasPart": [
"https://credentialengine.github.io/credential-registry-ingest-examples/LearningProgram/1/Course-1a.json",
Expand Down
11 changes: 11 additions & 0 deletions LearningProgram/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,17 @@ JSON-LD metadata about a `LearningProgram` so that it can be easily ingested
into the Credential Registry with the Credential Registry Publish Action tool on
GitHub Actions.

### Publish Graphs in CTDL format for LearningPrograms

The Credential Registry Publish Action tool supports the ingestion of a
`LearningProgram` (a subclass of `LearningOpportunity`) published as a JSON-LD
`@graph`. This enables the incorporation of a variety of entities into a single
file rather than requiring URI IDs for a number of dependent objects, each of
which must be fetched independently. With a graph format, the data can be
closest to the Credential Registry API input format, which expects string IDs
for certain relationship values, even if those are "blank node identifiers". For
example if an organization wanted to describe that their Credential

## Learning Program Identifiers

The recommended practice for identifying a `LearningProgram` is to use the URL
Expand Down
5 changes: 5 additions & 0 deletions index.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,11 @@ jobs:
this case, the value is a single URL, but multiple URLs may be specified,
separated by commas. The Credential Registry Publish Action will download the
data from these URLs and publish it to the Registry.
- URLs are comma-separated. A comma `,` is a valid character in the path
component of a URL, but if any URLs including commas are desired to be used in
the `URLS` environment variable, they must be percent-encoded as `%2C`. For
example, the URL `https://example.com/path,with,commas` would be written as
`https://example.com/path%2Cwith%2Ccommas` in the `URLS` environment variable.
- Within the Publish step, there are several "inputs" configured. The
`organization-ctid` input specifies the CTID of the organization publishing
the data. This is required because the organization must be published to the
Expand Down

0 comments on commit c323f6b

Please sign in to comment.