Mercurial
comparison .cms/lib/codemirror/mode/ntriples/index.html @ 0:78edf6b517a0 draft
24.10
author | Coffee CMS <info@coffee-cms.ru> |
---|---|
date | Fri, 11 Oct 2024 22:40:23 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:78edf6b517a0 |
---|---|
1 <!doctype html> | |
2 | |
3 <title>CodeMirror: N-Triples mode</title> | |
4 <meta charset="utf-8"/> | |
5 <link rel=stylesheet href="../../doc/docs.css"> | |
6 | |
7 <link rel="stylesheet" href="../../lib/codemirror.css"> | |
8 <script src="../../lib/codemirror.js"></script> | |
9 <script src="ntriples.js"></script> | |
10 <style> | |
11 .CodeMirror { | |
12 border: 1px solid #eee; | |
13 height: auto; | |
14 } | |
15 </style> | |
16 <div id=nav> | |
17 <a href="https://codemirror.net/5"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png" alt=""></a> | |
18 | |
19 <ul> | |
20 <li><a href="../../index.html">Home</a> | |
21 <li><a href="../../doc/manual.html">Manual</a> | |
22 <li><a href="https://github.com/codemirror/codemirror5">Code</a> | |
23 </ul> | |
24 <ul> | |
25 <li><a href="../index.html">Language modes</a> | |
26 <li><a class=active href="#">N-Triples/N-Quads</a> | |
27 </ul> | |
28 </div> | |
29 | |
30 <article> | |
31 <h2><a href="https://www.w3.org/TR/n-triples/">N-Triples</a> mode</h2> | |
32 <p>The N-Triples mode also works well with on | |
33 <a href="https://www.w3.org/TR/n-quads/">N-Quad</a> documents. | |
34 </p> | |
35 <form> | |
36 <textarea id="ntriples" name="ntriples"> | |
37 <http://Sub1> <http://pred1> <http://obj> . | |
38 <http://Sub2> <http://pred2#an2> "literal 1" . | |
39 <http://Sub3#an3> <http://pred3> _:bnode3 . | |
40 _:bnode4 <http://pred4> "literal 2"@lang . | |
41 _:bnode5 <http://pred5> "literal 3"^^<http://type> . | |
42 </textarea> | |
43 </form> | |
44 | |
45 <script> | |
46 var editor = CodeMirror.fromTextArea(document.getElementById("ntriples"), {}); | |
47 </script> | |
48 <p><strong>MIME types defined:</strong> <code>application/n-triples</code>.</p> | |
49 | |
50 <hr /> | |
51 <p><a href="https://www.w3.org/TR/n-quads/">N-Quads</a> add a fourth | |
52 element to the statement to track which graph the statement is from. | |
53 Otherwise, it's identical to N-Triples.</p> | |
54 <form> | |
55 <textarea id="nquads" name="nquads"> | |
56 | |
57 <http://Sub1> <http://pred1> <http://obj> <http://graph3> . | |
58 <http://Sub2> <http://pred2#an2> "literal 1" <http://graph2> . | |
59 <http://Sub3#an3> <http://pred3> _:bnode3 <http://graph2> . | |
60 _:bnode4 <http://pred4> "literal 2"@lang <http://graph2> . | |
61 # if a graph label | |
62 _:bnode5 <http://pred5> "literal 3"^^<http://type> . | |
63 </textarea> | |
64 </form> | |
65 | |
66 <script> | |
67 var nquads_editor = CodeMirror.fromTextArea(document.getElementById("nquads"), {}); | |
68 </script> | |
69 <p><strong>MIME types defined:</strong> <code>application/n-quads</code>.</p> | |
70 </article> |