example JSON
command createJsonData = exec_js {
"Java.type(\"catdata.Util\").writeFile(\" { \\\"glossary\\\": {\\r\\n \\\"title\\\": \\\"example glossary\\\",\\r\\n\\t\\t\\\"GlossDiv\\\": {\\r\\n \\\"title\\\": \\\"S\\\",\\r\\n\\t\\t\\t\\\"GlossList\\\": {\\r\\n \\\"GlossEntry\\\": {\\r\\n \\\"ID\\\": \\\"SGML\\\",\\r\\n\\t\\t\\t\\t\\t\\\"SortAs\\\": \\\"SGML\\\",\\r\\n\\t\\t\\t\\t\\t\\\"GlossTerm\\\": \\\"Standard Generalized Markup Language\\\",\\r\\n\\t\\t\\t\\t\\t\\\"Acronym\\\": \\\"SGML\\\",\\r\\n\\t\\t\\t\\t\\t\\\"Abbrev\\\": \\\"ISO 8879:1986\\\",\\r\\n\\t\\t\\t\\t\\t\\\"GlossDef\\\": {\\r\\n \\\"para\\\": \\\"A meta-markup language, used to create markup languages such as DocBook.\\\",\\r\\n\\t\\t\\t\\t\\t\\t\\\"GlossSeeAlso\\\": [\\\"GML\\\", \\\"XML\\\"]\\r\\n },\\r\\n\\t\\t\\t\\t\\t\\\"GlossSee\\\": \\\"markup\\\"\\r\\n }\\r\\n }\\r\\n }\\r\\n } \\r\\n} \", \"temp.json\")"
}
instance I = import_json_ld_all "temp.json"
instance K = spanify I
command out = export_json_instance I "exported.json"
Keywords:
export_json_instance
exec_js
spanify
import_json_ld_all
Options:
instance I
RID | predicate | subject | object |
---|
0 | cql://json#GlossList | ?0 | ?1 |
1 | cql://json#title | ?0 | S |
2 | cql://json#GlossSeeAlso | ?2 | XML |
3 | cql://json#GlossSeeAlso | ?2 | GML |
4 | cql://json#para | ?2 | A meta-markup language, used to create markup languages such as DocBook. |
5 | cql://json#GlossSee | ?3 | markup |
6 | cql://json#GlossDef | ?3 | ?2 |
7 | cql://json#Abbrev | ?3 | ISO 8879:1986 |
8 | cql://json#Acronym | ?3 | SGML |
9 | cql://json#GlossTerm | ?3 | Standard Generalized Markup Language |
10 | cql://json#SortAs | ?3 | SGML |
11 | cql://json#ID | ?3 | SGML |
12 | cql://json#glossary | ?4 | ?5 |
13 | cql://json#GlossDiv | ?5 | ?0 |
14 | cql://json#title | ?5 | example glossary |
15 | cql://json#GlossEntry | ?1 | ?3 |
instance K
cql://json#AbbrevID | subject | object |
---|
0 | ?0 | ISO 8879:1986 |
cql://json#AcronymID | subject | object |
---|
1 | ?0 | SGML |
cql://json#GlossDefID | subject | object |
---|
2 | ?0 | ?1 |
cql://json#GlossDivID | subject | object |
---|
3 | ?2 | ?3 |
cql://json#GlossEntryID | subject | object |
---|
4 | ?4 | ?0 |
cql://json#GlossListID | subject | object |
---|
5 | ?3 | ?4 |
cql://json#GlossSeeID | subject | object |
---|
6 | ?0 | markup |
cql://json#GlossSeeAlsoID | subject | object |
---|
7 | ?1 | XML |
8 | ?1 | GML |
cql://json#GlossTermID | subject | object |
---|
9 | ?0 | Standard Generalized Markup Language |
cql://json#IDID | subject | object |
---|
10 | ?0 | SGML |
cql://json#SortAsID | subject | object |
---|
11 | ?0 | SGML |
cql://json#glossaryID | subject | object |
---|
12 | ?5 | ?2 |
cql://json#paraID | subject | object |
---|
13 | ?1 | A meta-markup language, used to create markup languages such as DocBook. |
cql://json#titleID | subject | object |
---|
14 | ?3 | S |
15 | ?2 | example glossary |
command createJsonData
Java.type("catdata.Util").writeFile(" { \"glossary\": {\r\n \"title\": \"example glossary\",\r\n\t\t\"GlossDiv\": {\r\n \"title\": \"S\",\r\n\t\t\t\"GlossList\": {\r\n \"GlossEntry\": {\r\n \"ID\": \"SGML\",\r\n\t\t\t\t\t\"SortAs\": \"SGML\",\r\n\t\t\t\t\t\"GlossTerm\": \"Standard Generalized Markup Language\",\r\n\t\t\t\t\t\"Acronym\": \"SGML\",\r\n\t\t\t\t\t\"Abbrev\": \"ISO 8879:1986\",\r\n\t\t\t\t\t\"GlossDef\": {\r\n \"para\": \"A meta-markup language, used to create markup languages such as DocBook.\",\r\n\t\t\t\t\t\t\"GlossSeeAlso\": [\"GML\", \"XML\"]\r\n },\r\n\t\t\t\t\t\"GlossSee\": \"markup\"\r\n }\r\n }\r\n }\r\n } \r\n} ", "temp.json")
command out
Size 53