owlcollab / oboformat

Automatically exported from code.google.com/p/oboformat
5 stars 2 forks source link

language tags #93

Open cmungall opened 7 years ago

cmungall commented 7 years ago

We should include documentation about language tags.

Currently this is underspecified, and these are lost.

E.g. if we have:

# Class: <http://purl.obolibrary.org/obo/X_1> (yes)

AnnotationAssertion(oboInOwl:hasExactSynonym <http://purl.obolibrary.org/obo/X_1> "oui"@fr)
AnnotationAssertion(rdfs:label <http://purl.obolibrary.org/obo/X_1> "yes"@en)

this generates:

[Term]
id: X:1
name: yes
synonym: "oui" EXACT []

i.e. lossy

note that some ontologies like uberon by convention do this:

id: UBERON:0000151
name: pectoral fin
synonym: "nageoire pectorale@fr" EXACT [VSAO:0000147]

but this is convention. It gets converted to:

AnnotationAssertion(<http://www.geneontology.org/formats/oboInOwl#hasExactSynonym> <http://purl.obolibrary.org/obo/X_1> "oui@fr"^^xsd:string)

it relies on an extra conversion step to make this a proper language tag