Skip to content
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

1.6: Allow domain, range, is-a for annotation properties (alternative to #135) #136

Open
cmungall opened this issue Dec 22, 2022 · 0 comments
Labels
1.6 spec proposals concrete proposals for changes in 1.6

Comments

@cmungall
Copy link
Member

Alternative to:

  • 135

Currently http://owlcollab.github.io/oboformat/doc/obo-syntax.html#5.4 states

Typedef frame with id:Rel-ID Translation - TP(S)
is_a(SubRel-ID Qualifiers)) SubObjectPropertyOf(T(Qualifiers) T(Rel-ID) T(SubRel-ID))
domain(TargetClass-ID Qualifiers)) ObjectPropertyDomain(T(Qualifiers) T(Rel-ID) T(TargetClass-ID))
range(TargetClass-ID Qualifiers)) ObjectPropertyRange(T(Qualifiers) T(Rel-ID) T(TargetClass-ID))

This assumes the Typedef is an OP. A Typedef can be mapped to an AP via the rules in 5.1:

OBO Conditions Translation - TF(S)
Term(Class-id Clause-1..Clause-n)   Class(T(Class-id)) TC(Clause-1)..TC(Clause-n)
Typedef(Rel-ID) is_metadata_tag(true) ∈ TypedefFrames[Rel-ID] AnnotationProperty(T(Rel-ID)) TP(Clause-1)..PC(Clause-n)
Typedef(Rel-ID) is_metadata_tag(true) ∉ TypedefFrames[Rel-ID] ObjectProperty(T(Rel-ID)) TP(Clause-1)..PC(Clause-n)
Instance(Instance-id)   NamedIndividual(T(Instance-id)) TI(Clause-1)..IC(Clause-n)

under 1.4 spec, if we have:

[Typedef]
id: r
is_metadata_tag: true
range: xsd:string

this will result in illegal punning.

proposal

  • change 5.4 table to include alternative rules depending on whether interpretation is AP or DP
@cmungall cmungall added the 1.6 spec proposals concrete proposals for changes in 1.6 label Dec 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.6 spec proposals concrete proposals for changes in 1.6
Projects
None yet
Development

No branches or pull requests

1 participant