LexInfo is the data category ontology for OntoLex-Lemon, which provides description of lexicographic resources in RDF relative to ontologies
Set up the Python environment as follows
python -m venv env
source env/bin/activate
pip install -r requirements.txt
For subsequent usages rerun the following command
source env/bin/activate
The ontology can be built with the following command
python src/build-ontology.py
The most recent ontology is available at ontology/3.0/lexinfo.owl
The following are the steps to deploy the ontology
python src/build-ontology.py > ontology/3.0/lexinfo.owl
cp ontology/3.0/lexinfo.owl docs/ontology/3.0/lexinfo.owl
rapper -o turtle docs/ontology/3.0/lexinfo.owl > docs/ontology/3.0/lexinfo.ttl
The ontology is generated from a selection of CSV and Turtle files:
The list of the morphosyntactic properties is available in data/morphosyntactic_properties.csv
.
The values for each of these properties are listed in individual CSV files in
the data/values
folder.
Properties for defining entries are listed in data/definitions.csv
. These are
datatype properties whose range is assumed to be a lang-tagged literal.
The representations are listed in data/representations.csv
. These can be used
in place of the default writtenRep
and phoneticRep
properties in OntoLex
The usages give usage restrictions on a sense and are listed in data/usages.csv
.
These extend the synsem module of OntoLex
The arguments are listed in the file data/syntactic_arguments.csv
, some extra
information about the arguments is added in the file data/args.ttl
.
The frames are lists in the file data/frames.csv
and further definition is
given in Turtle in data/frames.ttl
. In addition, examples of the frames are
list in data/frame_examples.csv
Relations extend the vartrans module of OntoLex
The relations are listed in the file data/relations.csv