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#glossary | ?2 | ?3 |
3 | cql://json#GlossSeeAlso | ?4 | XML |
4 | cql://json#GlossSeeAlso | ?4 | GML |
5 | cql://json#para | ?4 | A meta-markup language, used to create markup languages such as DocBook. |
6 | cql://json#GlossSee | ?5 | markup |
7 | cql://json#GlossDef | ?5 | ?4 |
8 | cql://json#Abbrev | ?5 | ISO 8879:1986 |
9 | cql://json#Acronym | ?5 | SGML |
10 | cql://json#GlossTerm | ?5 | Standard Generalized Markup Language |
11 | cql://json#SortAs | ?5 | SGML |
12 | cql://json#ID | ?5 | SGML |
13 | cql://json#GlossEntry | ?1 | ?5 |
14 | cql://json#GlossDiv | ?3 | ?0 |
15 | cql://json#title | ?3 | example glossary |
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