microbiomedata / submission-schema

https://microbiomedata.github.io/submission-schema/
MIT License
1 stars 1 forks source link

slot_usage enum ranges are lost in the OWL version of the schema #156

Open turbomam opened 9 months ago

turbomam commented 9 months ago

The global range of https://microbiomedata.github.io/submission-schema/specific_ecosystem/ is string but is is used with a https://microbiomedata.github.io/submission-schema/SpecificEcosystemEnum/ range in https://microbiomedata.github.io/submission-schema/SoilInterface/

I don't believe that makes it into the output of gen-owl

turbomam commented 9 months ago

this retrieves the permissible values for an enum, but I want to specify the slot and look through its range for the enum.

PREFIX linkml: <https://w3id.org/linkml/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX nmdc_sub_schema: <https://example.com/nmdc_sub_schema/>
select * where { 
    nmdc_sub_schema:SpecificEcosystemEnum linkml:permissible_values ?pv .
    ?pv rdfs:label ?l .
}
turbomam commented 9 months ago

This is possibly a result of changing the global range from type string to type enum

turbomam commented 9 months ago

Maybe we should start with an enum, in the nmdc-schema, which starts out including all values for specific_ecosystem in the data

remember open enumS?