-
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
when are shared elements allowed? what about in OWL? #1419
Comments
see also |
this builds id: https://w3id.org/nmdc/name_sharing
name: name_sharing
title: Name sharing test module for the NMDC Schema
imports:
- linkml:types
prefixes:
linkml: https://w3id.org/linkml/
nmdc: https://w3id.org/nmdc/
default_prefix: nmdc
default_range: string
classes:
SharedName:
slots:
- test_slot1
- test_slot2
- test_slot3
slots:
test_slot1:
range: TestEnum
test_slot2: { }
test_slot3: { }
enums:
TestEnum:
permissible_values:
- test_value1
- test_value2
- test_value3 |
add slots:
test_slot1:
range: TestEnum
test_slot2: { }
test_slot3: { }
SharedName: { } make squeaky-clean all test still builds, but only appears as a slot in the docs |
remove build completes. The SharedName page is for the class, not the PV, but the text "SharedName" does appear as a permissible value on the TestEnum page. |
The URIs in the OWL artifact make a clear distinction between the following. This is acceptable to me.
nmdc:SharedName a owl:Class,
linkml:ClassDefinition ;
rdfs:label "SharedName" ;
rdfs:subClassOf [ a owl:Restriction ;
owl:allValuesFrom nmdc:TestEnum ;
owl:onProperty nmdc:test_slot1 ],
[ a owl:Restriction ;
owl:maxCardinality 1 ;
owl:onProperty nmdc:test_slot2 ],
[ a owl:Restriction ;
owl:minCardinality 0 ;
owl:onProperty nmdc:test_slot3 ],
[ a owl:Restriction ;
owl:minCardinality 0 ;
owl:onProperty nmdc:test_slot1 ],
[ a owl:Restriction ;
owl:maxCardinality 1 ;
owl:onProperty nmdc:test_slot1 ],
[ a owl:Restriction ;
owl:maxCardinality 1 ;
owl:onProperty nmdc:test_slot3 ],
[ a owl:Restriction ;
owl:minCardinality 0 ;
owl:onProperty nmdc:test_slot2 ],
[ a owl:Restriction ;
owl:allValuesFrom linkml:String ;
owl:onProperty nmdc:test_slot3 ],
[ a owl:Restriction ;
owl:allValuesFrom linkml:String ;
owl:onProperty nmdc:test_slot2 ] ;
skos:inScheme nmdc:name_sharing .
nmdc:TestEnum a owl:Class,
linkml:EnumDefinition ;
owl:unionOf ( <https://w3id.org/nmdc/TestEnum#test_value1> <https://w3id.org/nmdc/TestEnum#test_value2> <https://w3id.org/nmdc/TestEnum#test_value3> <https://w3id.org/nmdc/TestEnum#SharedName> ) ;
linkml:permissible_values <https://w3id.org/nmdc/TestEnum#SharedName>,
<https://w3id.org/nmdc/TestEnum#test_value1>,
<https://w3id.org/nmdc/TestEnum#test_value2>,
<https://w3id.org/nmdc/TestEnum#test_value3> .
<https://w3id.org/nmdc/TestEnum#SharedName> a owl:Class,
nmdc:TestEnum ;
rdfs:label "SharedName" ;
rdfs:subClassOf nmdc:TestEnum . |
for @aclum esp
The text was updated successfully, but these errors were encountered: