.CodeMirror { border: 1px solid #eee; height: auto; }
CodeMirror
Home Manual Code
Language modes N-Triples/N-Quads
N-Triples mode
The N-Triples mode also works well with on N-Quad documents.
. "literal 1" . _:bnode3 . _:bnode4 "literal 2"@lang . _:bnode5 "literal 3"^^ .
var editor = CodeMirror.fromTextArea(document.getElementById("ntriples"), {});
MIME types defined: application/n-triples .
N-Quads add a fourth element to the statement to track which graph the statement is from. Otherwise, it's identical to N-Triples.
. "literal 1" . _:bnode3 . _:bnode4 "literal 2"@lang . # if a graph labe _:bnode5 "literal 3"^^ .
var nquads_editor = CodeMirror.fromTextArea(document.getElementById("nquads"), {});
MIME types defined: application/n-quads .