-
Notifications
You must be signed in to change notification settings - Fork 3
(ShEx → SPARQL) Conver a simple ShEx schema to SPARQL
Jose Emilio Labra Gayo edited this page Aug 12, 2024
·
5 revisions
It is possible to convert simple ShEx schemas to SPARQL queries. This option can be useful when data portals contain descriptions in ShEx and one needs to create SPARQL queries from those ShEx descriptions.
Example:
$ rudox convert -d examples/user.shex -m shex -x sparql
prefix : <http://example.org/>
prefix xsd: <http://www.w3.org/2001/XMLSchema#>
prefix schema: <http://schema.org/>
SELECT * WHERE {
?this schema:name ?name .
?this schema:knows ?knows .
?this :status ?status .
}
- (RDF) Information about a node in RDF file
- (RDF) Merge several RDF data files
- (RDF/SPARQL) Information about a node in Wikidata
- (ShEx) Show info about a schema
- (ShEx) Validate a specific node with a shape
- (SHACL) Show info about a SHACL schema
- (SHACL) Read a SHACL Shapes graph and convert to some format
- (SHACL) Validating RDF data using SHACL
- (SPARQL) Running SPARQL queries
- (Python) Invoking this library from Python
- (SHACL → ShEx) Convert SHACL shapes graph to ShEx schema
- (ShEx → SVG/PNG/...) Convert a ShEx schema to an UML-like visualization in SVG, PNG, ...
- (ShEx → HTML) Convert ShEx schemas to HTML views
- (ShEx → SPARQL) Convert a simple ShEx schema to SPARQL
- (DCTap → ShEx) Convert a CSV file in DCTap to a ShEx schema
- (DCTap → SVG/PNG/...) Convert a CSV file in DCTap to an UML-like visualization in SVG, PNG, ...