-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
problem with generated OWL file #64
Comments
I think the trouble is that there are many undeclared properties used as triple objects for <https://example.org/ccdh/CodeableConcept> a owl:Class,
linkml:ClassDefinition ;
rdfs:label "CodeableConcept" ;
rdfs:subClassOf [ a owl:Restriction ;
owl:maxQualifiedCardinality 1 ;
owl:onClass <https://example.org/ccdh/CcdhString> ;
owl:onProperty linkml:text ],
[ a owl:Restriction ;
owl:allValuesFrom <https://example.org/ccdh/Coding> ;
owl:onProperty linkml:coding ],
<https://example.org/ccdh/Entity> ;
skos:definition "A representation of a concept that may be defined by or mapped to one or more codes in code systems (terminologies, ontologies, dictionaries, code sets, etc) - but may also be defined by the provision of text." ;
skos:editorialNote "Derived from [CodeableConcept in sheet CodeableConcept](https://docs.google.com/spreadsheets/d/1oWS7cao-fgz2MKWtyr8h2dEL9unX__0bJrWKv6mQmM4/edit#gid=1820375300)" ;
skos:note "More than one code may be used in CodeableConcept. The concept may be coded multiple times in different code systems (or even multiple times in the same code systems, where multiple forms are possible). Each Coding is a representation of the concept as described above and may have slightly different granularity due to the differences in the definitions of the underlying codes. There is no meaning associated with the ordering of Coding within a CodeableConcept. A typical use of CodeableConcept is to send the local code that the concept was coded with, and also one or more translations to publicly defined code systems such as LOINC or SNOMED CT. " . Neither |
Interesting!
That's because both of those properties are CRDCH properties, not LinkML properties! So they should be I bet this is a consequence of us using slots defined on properties, so e.g. the We should probably come up with a minimum test case for this and then report it to LinkML. |
FWIW, the (latest) FHIR definitions of those classes can be found in https://build.fhir.org/fhir.ttl :
and
I'm not certain that I understand why we are trying to replicate this -- shouldn't we consider importing fhir.ttl instead? Notes:
https://fhircat.org/fhir-r4/original/contexts/codeableconcept.context.jsonld |
It looks like there are two problems here:
|
Just a note - I think we determined that an instance of CcdhString would be an object with a |
I don't think there's anything here that would be helpful for the CCDH Pilot, so I'm inclined to push it to a later milestone. Any objections? I suspect we might be able to fix some of these issues by setting a However, this is at least one OWL error in the current example test file, so there are definitely OWL generation issues in LinkML that need to be fixed. @balhoff Would you like to take a stab at this? It isn't very urgent, but I think you have the most OWL experience of anyone of the Tools team at present. |
A fix has been implemented in linkml; we should test with the next linkml release. |
@fragosog mentioned that he would like to visualize the CRDC-H model using Protege, and fixing this issue would allow him do that. |
This includes: - #64 - An issue where the text value of the PV is not properly URLencoded.
The OWL API parser complains when trying to read
ccdhmodel.owl.ttl
:I thought this might be a linkml issue, but I tried the biolink-model OWL file and didn't see this problem.
The text was updated successfully, but these errors were encountered: