You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+37-26Lines changed: 37 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,44 @@
1
1
# Linked Data Extension
2
2
3
-
The Elsevier Data Architecture Linked Data Extension for Visual Studio Code brings a number of Linked Data related functionalities to a popular integrated development environment.
3
+
The Elsevier Data Architecture Linked Data Extension (LDE) for Visual Studio Code brings a number of Linked Data related functionalities to a popular integrated development environment.
4
4
5
-
This extension depends on the [Stardog Languages Extension Pack](https://marketplace.visualstudio.com/items?itemName=stardog-union.vscode-stardog-languages) from Stardog Union
5
+
It's not industry-grade solid, but should be *good enough™*. For any questions, comments, please contact [Rinke Hoekstra](mailto:[email protected]), or create an issue in the [GitHub repository](https://github.com/elsevierlabs-os/linked-data).
6
6
7
-
For any questions, comments, please contact [Rinke Hoekstra](mailto:[email protected])
7
+
## What it does
8
8
9
-
## Features
9
+
* Visualise an RDF graph directly from a file.
10
+
* Convert between JSON-LD, Turtle, RDF/XML and N-Quads (some quirks because not every format supports named graphs)
11
+
* Convert between JSON-LD variants (compact, expanded, flattened)
12
+
* Apply a JSON-LD frame to a JSON-LD file.
13
+
* Validate your RDF against a SHACL file
14
+
* Run a SPARQL query directly on a file and see the results in HTML and CSV
10
15
11
-
The extension supports the following:
16
+
The JSON-LD operations can work with local context files. This overcomes the limitation in most JSON-LD libraries that interpret context references as URLs. See the `loadLocalContexts` setting below.
17
+
18
+
Download Linked Data Extension from <https://marketplace.visualstudio.com/items?itemName=Elsevier.linked-data> or through the Extensions menu of VSCode.
19
+
20
+
This extension depends on the [Stardog Languages Extension Pack](https://marketplace.visualstudio.com/items?itemName=stardog-union.vscode-stardog-languages) from Stardog Union for file type recognition, syntax highlighting and syntax checking.
21
+
22
+
## Screenshots
23
+
24
+
For the files used in the screenshots, see the [examples](examples) folder.

36
+
37
+
## Commands
38
+
39
+
You can access the commands through the command palette: `Cmd-Shift-p` or `Ctrl-Shift-p` and then start typing "Linked Data", or use one of the following keyboard shortcuts.
40
+
41
+
### Keyboard Shortcuts
12
42
13
43
* Standard syntactic JSON-LD operations:
14
44
*`Ctrl-Option-e`/`Ctrl-Alt-e`: Convert a JSON-LD structure to the [expanded document form](https://www.w3.org/TR/json-ld11/#expanded-document-form)
@@ -27,27 +57,11 @@ The extension supports the following:
27
57
* Query a Graph:
28
58
*`Ctrl-Option-q`/`Ctrl-Alt-q`: Run the SPARQL query against an RDF file (see below)
29
59
30
-
You can also access the commands through the command palette: `Cmd-Shift-p` or `Ctrl-Shift-p` and then start typing "Linked Data".
 -->
44
-
45
-
46
60
## Extension Settings
47
61
48
62
This extension contributes the following settings:
49
63
50
-
*`linked-data.loadLocalContexts`: Should the extension try to load local (non-URI) contexts?
64
+
*`linked-data.loadLocalContexts`: Should the extension try to load local (non-URI) JSON-LD context files. This is especially useful when testing large context files that are intended to be shared across multiple JSON-LD files. It overcomes the problem that JSON-LD libraries interpret references to contexts as URIs, which would require running an HTTP server to test the context.
51
65
52
66
## Tips and Recommendations
53
67
@@ -91,7 +105,4 @@ SPARQL results are shown both as a web view with a table that supports sorting a
0 commit comments