schemaorg icon indicating copy to clipboard operation
schemaorg copied to clipboard

Compiled schema should add rdf:type triples for external classes

Open rrlevering opened this issue 1 month ago • 3 comments

Our import process chokes with the newer external schema class references (in the upcoming release) because they are not recognized as classes. I could change it to assume that subClassOf always points to a type, but I think it would be cleaner if they were typed for completeness.

For example:

<https://spec.edmcouncil.org/fibo/ontology/FND/Arrangements/Documents/Certificate> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2000/01/rdf-schema#Class> .

rrlevering avatar Dec 02 '25 16:12 rrlevering

Let's add them for the time being, but I think it would make sense to implement your suggestion, as the classes are essentially defined by their linking to the original schema. A complete system would even go there and verify that they are classes.

pascalfleury avatar Dec 03 '25 12:12 pascalfleury

Created https://github.com/schemaorg/schemaorg/pull/4625 that addresses this.

MatthiasWiesmann avatar Dec 03 '25 12:12 MatthiasWiesmann

Let's add them for the time being, but I think it would make sense to implement your suggestion, as the classes are essentially defined by their linking to the original schema. A complete system would even go there and verify that they are classes.

My reading of the code is that the post-processing phases strips these out try to run: ./software/util/buildfiles.py All and check the content of software/site/releases/29.3/schemaorg-all-http.ttl

MatthiasWiesmann avatar Dec 03 '25 13:12 MatthiasWiesmann