Warm tip: This article is reproduced from serverfault.com, please click

Where have all my labels gone? Topbraid owl to SHACL conversion

发布于 2021-02-10 12:21:51

I'm trying to convert my ontology, from OWL to SHACL. However, the SKOS labels, preflabels, comments etc. are not being converted. At least, they don't come back in the ttl file that is generated. Right now, I load my original TTL file into topbraid, and use Model -> Convert OWL/RDFS To SHACL... -> standard settings . This works great: All of my object properties, data properties, cardinalities etc. are neatly converted, however, everything that is not SHACL is completely ommited from the resulting TTL file, including my preflabels and comments.

What am I doing wrong: Or better: How do I convert everything to SHACL, but keep the SKOS things in there?

Thank you for any hints!

Questioner
Robin
Viewed
0
Holger Knublauch 2021-02-11 10:12:30

The OWL to SHACL importer only produces the SHACL-specific triples. The rest of the class definition can remain in the OWL file, and typically the generated SHACL file will owl:import the original OWL file. As a result, if anyone opens the SHACL file, the definitions from the OWL file will also still be there.