Skip to content

An experiment to derive LinkML models for DCAT2 and DCAT3 automatically

License

Notifications You must be signed in to change notification settings

dalito/dcat-in-linkml

Repository files navigation

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.

About

An experiment to derive LinkML models for DCAT2 and DCAT3 automatically

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published