spechub / Hets

The Heterogeneous Tool Set
http://hets.eu
GNU General Public License v2.0
57 stars 19 forks source link

More liberal syntax for CURIEs #1562

Open tillmo opened 8 years ago

tillmo commented 8 years ago

For the Bioportal mappings, we need a more liberal syntax for CURIEs. In particular, in a CURIE prefix:symbol, the symbol should be allowed to start with a digit and contain . and -.

gnn commented 8 years ago

I started branch 1562-relax_curie_symbols for this and pushed two commits which should enable the desired feature. I wasn't yet able to check for compilation and test it though so I didn't open a pull request. Will do that tomorrow, but it should work, so you can try it out if you need it in the meantime, @tillmo .

tillmo commented 8 years ago

The following still does not go through:

%prefix(
  ontologies_peontology: <http://bmi.utah.edu/ontologies/peontology/>
  ontology_LNC: <http://purl.bioontology.org/ontology/LNC/>
)%
alignment RAO2LOINC : ontologies:RAO to ontologies:LOINC = 
  ontologies_peontology:C0026549 = ontology_LNC:MTHU004293 ,
  ontologies_peontology:C0026549 = ontology_LNC:LP15174-3 
end

It yields:

*** Error:
/home/till/projects/Ontohub/bioportal_mappings/RAO2LOINC.dol:8.56:
unexpected "3"
expecting "->"
tillmo commented 8 years ago

any progress here?

mcodescu commented 8 years ago

Make sure that you set your current logic to OWL, or the analysis of alignments won't go through.