Skip to content
Snippets Groups Projects
Commit 3e7d40a5 authored by Laurenz Alexander Neumann's avatar Laurenz Alexander Neumann
Browse files

adjusted readme

parent 519978b7
No related branches found
No related tags found
No related merge requests found
......@@ -132,27 +132,6 @@ SELECT ?x WHERE {
?x :is :Awesome
}
```
## ShEx Submodule
With this submodule, you can validate graphs using the [ShEx](https://shex.io/) language. You first need to parse a schema:
```shex
%%rdf shex parse --label awesome_schema
PREFIX : <http://example.org/>
:AwesomeShape {
:is [:Awesome]
}
```
We already gave the schema a [label](#Labelling) to reference it later. Note that graph labels and schema labels use different namespaces and do not overwrite each other.
To validate a graph, we need to provide the schema label (```--label```), the graph label (```--graph```) of the graph we want to validate against the schema and at least a starting shape (```--start```). This will check every node of the graph against the starting shape. If we want to focus on a specific node in the graph, we can use the ```--focus``` argument. To validate the ```awesome_graph``` against the ```awesome_schema```, starting from the ```:AwesomeShape``` and focussing on the ```:JupyterRDF``` node:
```
%rdf shex validate --label awesome_schema --graph awesome_graph --start http://example.org/AwesomeShape --focus http://example.org/JupyterRDF
```
## Other Features
### Prefixes
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment