diversicon-kb / diversicon-core

A knowledge base for lexicons and concepts, based on UBY
http://diversicon-kb.eu/tools
Other
0 stars 0 forks source link

Implement namespaces support #19

Closed DavidLeoni closed 8 years ago

DavidLeoni commented 8 years ago

We need to impose some format namespacing for ids, to ease merging different LMFs.

As proposed solution, identifiers should be in the format :

NAMESPACE_PREFIX ':' ID_NAME

where namespaces are defined in a LexicalResource xlmns like here

<LexicalResource name="sm:lr"
                 xmlns:sm="https://github.com/DavidLeoni/diversicon/tree/master/src/main/resources/smartphones-lmf.xml"
                 xmlns:wn31="https://github.com/DavidLeoni/diversicon-wordnet-3.1/blob/master/src/main/resources/it/unitn/disi/diversicon/data/div-wn31.xml.xz">    

A LexicalResource name will also dictate the default prefix for the whole file when IDs are missing, in the case above it would be sm

DavidLeoni commented 8 years ago

Now using ids like wn31_the-id