You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: dist/server/public/index.html
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
<!DOCTYPE html>
1
+
<!doctype html>
2
2
<htmllang="de">
3
3
<head>
4
4
<metacharset="UTF-8" />
@@ -151,7 +151,7 @@ <h2>2. Export-Ziel</h2>
151
151
<input
152
152
type="radio"
153
153
name="format"
154
-
value="scorm12"
154
+
value="scorm1.2"
155
155
data-description="E-Learning-Standard für Lernmanagementsysteme. Weit verbreitet, aber älter. Geeignet für ältere LMS-Plattformen. <a href='https://de.wikipedia.org/wiki/Sharable_Content_Object_Reference_Model' target='_blank'>Mehr erfahren</a>"
Copy file name to clipboardExpand all lines: src/export/rdf.ts
+34-38Lines changed: 34 additions & 38 deletions
Original file line number
Diff line number
Diff line change
@@ -35,13 +35,6 @@ interface LiaDefinition {
35
35
}
36
36
}
37
37
38
-
interfaceLiaJSON{
39
-
lia: {
40
-
str_title: string
41
-
definition: LiaDefinition
42
-
}
43
-
}
44
-
45
38
interfaceSchemaDoc{
46
39
[key: string]: any
47
40
}
@@ -82,7 +75,7 @@ export function help() {
82
75
console.log(COLOR.heading('RDF settings:'),'\n')
83
76
84
77
COLOR.info(
85
-
'RDF (Resource Description Framework) export generates structured metadata for your LiaScript course or your project-yaml in standard linked data formats. This helps with course discovery and enables semantic web applications to understand your content. Available output formats are n-quads and JSON-LD.'
78
+
'RDF (Resource Description Framework) export generates structured metadata for your LiaScript course or your project-yaml in standard linked data formats. This helps with course discovery and enables semantic web applications to understand your content. Available output formats are n-quads and JSON-LD.',
86
79
)
87
80
88
81
console.log('\nLearn more:')
@@ -94,37 +87,37 @@ export function help() {
94
87
COLOR.command(
95
88
null,
96
89
'--rdf-format',
97
-
' Output format n-quads, json-ld (defaults to json-ld).'
90
+
' Output format n-quads, json-ld (defaults to json-ld).',
98
91
)
99
92
COLOR.command(
100
93
null,
101
94
'--rdf-preview',
102
-
' Output the result to the console.'
95
+
' Output the result to the console.',
103
96
)
104
97
COLOR.command(
105
98
null,
106
99
'--rdf-url',
107
-
' Refer to an external URL when parsing a local project.'
100
+
' Refer to an external URL when parsing a local project.',
108
101
)
109
102
COLOR.command(
110
103
null,
111
104
'--rdf-type',
112
-
' Course from schema.org is applied as default, overwrite this with EducationalResource, etc.'
105
+
' Course from schema.org is applied as default, overwrite this with EducationalResource, etc.',
113
106
)
114
107
COLOR.command(
115
108
null,
116
109
'--rdf-license',
117
-
' Add a license-URL, otherwise if url was provided as input, this will check for an existing LICENSE file.'
110
+
' Add a license-URL, otherwise if url was provided as input, this will check for an existing LICENSE file.',
118
111
)
119
112
COLOR.command(
120
113
null,
121
114
'--rdf-educationalLevel',
122
-
' Typically beginner, intermediate or advanced, and formal sets of level indicators.'
115
+
' Typically beginner, intermediate or advanced, and formal sets of level indicators.',
123
116
)
124
117
COLOR.command(
125
118
null,
126
119
'--rdf-template',
127
-
' Use a URL or json-file as a template.'
120
+
' Use a URL or json-file as a template.',
128
121
)
129
122
}
130
123
@@ -147,7 +140,7 @@ export const format = 'rdf'
147
140
*/
148
141
exportasyncfunctionexporter(
149
142
argument: RDFArguments,
150
-
json: LiaJSON
143
+
json: any,
151
144
): Promise<void>{
152
145
try{
153
146
letdoc=awaitparse(argument,json)
@@ -166,7 +159,7 @@ export async function exporter(
166
159
}else{
167
160
awaitfs.writeFile(
168
161
argument.output+'.jsonld',
169
-
JSON.stringify(doc,null,2)
162
+
JSON.stringify(doc,null,2),
170
163
)
171
164
}
172
165
}
@@ -191,10 +184,11 @@ export async function exporter(
191
184
*/
192
185
exportasyncfunctionscript(
193
186
argument: RDFArguments,
194
-
json: LiaJSON
187
+
json: LiaJSON,
195
188
): Promise<string>{
196
189
try{
197
190
letdoc=awaitparse(argument,json)
191
+
198
192
doc=awaitjsonld.compact(doc,SCHEMA_ORG_CONTEXT)
199
193
doc=clean(doc)
200
194
@@ -266,11 +260,7 @@ async function loadTemplate(templatePath?: string): Promise<SchemaDoc> {
266
260
* @param json LiaScript JSON data
267
261
* @param rdfType Optional type override from arguments
'SCORM (Sharable Content Object Reference Model) 1.2 & 2004 are standards for e-learning content that can be imported into LMS platforms like Moodle, Blackboard, and others.'
14
+
'SCORM (Sharable Content Object Reference Model) 1.2 & 2004 are standards for e-learning content that can be imported into LMS platforms like Moodle, Blackboard, and others.',
0 commit comments