elexis-eu / tei2ontolex

TEI to OntoLex Conversion
Apache License 2.0
6 stars 2 forks source link

Convert inflected forms #5

Closed jmccrae closed 4 years ago

jmccrae commented 4 years ago

Based on Section 4.4

            <entry xml:id="go" xml:lang="en">
                <form type="lemma">
                    <orth>go</orth>
                </form>
                <form type="inflected">
                    <orth>went</orth>
                    <gramGrp>
                        <tns>past</tns>
                    </gramGrp>
                </form>
            </entry> 

Should be the following in OntoLex

<#go> a ontolex:LexicalEntry ;
  ontolex:canonicalForm [ "go"@en ] ;
  ontolex:otherForm [ "went"@ en ;
    lexinfo:tense lexinfo:past ] .
laurentromary commented 4 years ago

I can generate this:

 <ontolex:otherForm>
         <rdf:Description>
            <ontolex:writtenRep xml:lang="en">went</ontolex:writtenRep>
            <lexinfo:tense rdf:resource="http://www.lexinfo.net/ontology/2.0/lexinfo#past"/>
         </rdf:Description>
      </ontolex:otherForm>

Is this correct?

jmccrae commented 4 years ago

Test passes