Skip to content

Latest commit

 

History

History
38 lines (25 loc) · 1.71 KB

README.md

File metadata and controls

38 lines (25 loc) · 1.71 KB

DCAT in (to) LinkML

An experiment to create a linkML model that matches dcat 2.2 and dcat 3 from dcat specification in rdf.

DCAT as Owl ontology in RDF:

Here we try a conversion with schema-automator from the linkML team.

First, create a virtual environment and install schema-automator.

py -3.12 -m venv .venv
.venv/scripts/activate
pip install schema-automator notebook

The exact versions of all packages used are documented in requirements_frozen.txt (created by pip freeze > requirements_frozen.txt).

With schema-automator it is possible to import from a schema-style OWL ontology. This must be in functional syntax which can be created with robot ahead of time:

robot convert -i dcat-source-rdf/dcat2.ttl -o dcat-source-rdf/dcat2.ofn

schemauto import-owl dcat-source-rdf/dcat2.ofn -o linkML/dcat2.yaml

See linkml/README.txt for details of the conversion process. The obtained LinkML models (in yaml) are in linkml/.

This is only a first experiment without any validation or polishing.

It demonstrates the outcome of using standard commands/tools without tweaking options.