-
Notifications
You must be signed in to change notification settings - Fork 3
(DCTap → ShEx) Convert a CSV file in DCTap to a ShEx schema
Jose Emilio Labra Gayo edited this page Aug 31, 2024
·
6 revisions
It is possible to convert a DCTap file in CSV to ShEx.
For example, the user.csv
file in examples/user.csv
can be converted to a ShEx schema running:
rudof convert -m dctap -s examples/user.csv -f csv -x shex
The converter contains a parameter that can be used to add configuration information.
For example, instead of the basic prefix map, we can use custom prefix map declarations as follows.
rudof convert -s examples/dctap/book.csv -m dctap -x shex -f csv -c examples/dctap/book_converter_config.yml
Where the contents of book_converter_config.yml
are:
tap2shex:
base_iri: "http://example.org/"
prefixmap:
dct: "http://purl.org/dc/terms/"
rdf: "http://www.w3.org/1999/02/22-rdf-syntax-ns#"
foaf: "http://xmlns.com/foaf/0.1/"
xsd: "http://www.w3.org/2001/XMLSchema#"
sdo: "https://schema.org/"
ex: "http://example.org/"
- (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, ...