-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcustom-elements.json
127 lines (127 loc) · 3.83 KB
/
custom-elements.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
{
"schemaVersion": "1.0.0",
"readme": "",
"modules": [
{
"kind": "javascript-module",
"path": "sparql-editor.js",
"declarations": [],
"exports": [
{
"kind": "custom-element-definition",
"name": "sparql-editor",
"declaration": {
"name": "SparqlEditor",
"module": "/src/SparqlEditor.js"
}
}
]
},
{
"kind": "javascript-module",
"path": "demo/index.js",
"declarations": [],
"exports": []
},
{
"kind": "javascript-module",
"path": "src/SparqlEditor.js",
"declarations": [
{
"kind": "class",
"description": "A text editor custom element which highlights and parses SPARQL queries.\n\nIt uses [sparqljs](https://npm.im/sparqljs) to parse the query text.\n\n## Usage\n\nSimply add the element to a page. It is possible to provide common prefixes and a base IRI\nso that they don't have to be explicitly added in the SPARQL string\n\n```js\nimport '@rdfjs-elements/sparql-editor'\nimport { html } from 'lit'\n\nconst value = `CONSTRUCT { ?s ?p ?o }\nFROM <john-doe>\nWHERE {\n <john-doe> a schema:Person ;\n schema:name \"John Doe\" .\n}`\n\nconst template = html`<rdf-editor prefixes=\"schema\" baseIRI=\"http://example.com/\" .value=\"${value}\"></rdf-editor>`\n```",
"name": "SparqlEditor",
"members": [
{
"kind": "field",
"name": "format"
},
{
"kind": "field",
"name": "query"
},
{
"kind": "method",
"name": "_parse"
},
{
"kind": "method",
"name": "_errorLine",
"parameters": [
{
"name": "error"
}
]
},
{
"type": {
"text": "string"
},
"description": "The raw contents of the code editor",
"name": "value",
"kind": "field"
},
{
"kind": "field",
"name": "baseIRI",
"privacy": "public",
"type": {
"text": "string"
},
"description": "Value of the `BASE` directive which will be injected to the query",
"attribute": "base-iri"
}
],
"events": [
{
"name": "parsed",
"type": {
"text": "CustomEvent<{ value: string; query: object }>"
},
"description": "when the editor contents have changed and have been successfully parsed"
},
{
"type": {
"text": "CustomEvent"
},
"description": "when there as in an error in parsing the query",
"name": "parsing-failed"
}
],
"attributes": [
{
"name": "base-iri",
"type": {
"text": "string"
},
"description": "Value of the `BASE` directive which will be injected to the query",
"fieldName": "baseIRI"
}
],
"superclass": {
"name": "Editor",
"package": "@rdfjs-elements/editor-base"
},
"tagName": "sparql-editor",
"customElement": true
}
],
"exports": [
{
"kind": "js",
"name": "SparqlEditor",
"declaration": {
"name": "SparqlEditor",
"module": "src/SparqlEditor.js"
}
}
]
},
{
"kind": "javascript-module",
"path": "src/mode/sparql.js",
"declarations": [],
"exports": []
}
]
}