-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dealing with embedded entries #14
Comments
Here's an example: <entry xml:id="aboi" n="1906-001_unknown">
<form type="lemma"><orth>ABOI</orth></form>
<gramGrp>
<pos expand="nom">n.</pos>
<gen expand="masculin">m.</gen>
</gramGrp>
<etym><pc>(</pc>de <mentioned>aboyer</mentioned><pc>)</pc><pc>.</pc></etym>
<sense>
<def>Cri du chien</def><pc>.</pc>
</sense>
<re type="gram">
<gramGrp><pos expand="nom">N.</pos>
<gen expand="masculin">m.</gen>
<number expand="pluriel">pl.</number></gramGrp>
<sense><def>Dernières extrémités où le cerf est réduit</def><pc>.</pc></sense>
<sense><usg type="style" rend="italic" expand="figuré">Fig.</usg>
<def>Situation désespérée</def>
<pc>:</pc>
<cit type="example">
<quote>commerçant ruiné et aux abois</quote>
</cit><pc>.</pc>
</sense>
</re>
</entry> |
This may be quite tricky as you would need to create a BTW the |
Re: |
Can you outline a snippet in XML on how you would do this? |
The following should be a TEI Lex 0 compatible structure that you could add to the test samples: <entry xml:id="aboi" n="1906-001_unknown">
<form type="lemma"><orth>ABOI</orth></form>
<gramGrp>
<pos expand="nom">n.</pos>
<gen expand="masculin">m.</gen>
</gramGrp>
<etym><pc>(</pc>de <mentioned>aboyer</mentioned><pc>)</pc><pc>.</pc></etym>
<sense>
<def>Cri du chien</def><pc>.</pc>
</sense>
<entry type="gram">
<gramGrp><pos expand="nom">N.</pos>
<gen expand="masculin">m.</gen>
<number expand="pluriel">pl.</number></gramGrp>
<sense><def>Dernières extrémités où le cerf est réduit</def><pc>.</pc></sense>
<sense><usg type="style" rend="italic" expand="figuré">Fig.</usg>
<def>Situation désespérée</def>
<pc>:</pc>
<cit type="example">
<quote>commerçant ruiné et aux abois</quote>
</cit><pc>.</pc>
</sense>
</entry>
</entry> |
So you need something like this <lexicog:Entry>
<lexicog:describes>
<ontolex:LexicalEntry rdf:ID="aboi">
<!-- As before -->
</ontolex:LexicalEntry>
</lexicog:describes>
<lexicog:subComponent>
<lexicog:Entry>
<lexicog:describes>
<ontolex:LexicalEntry>
<!-- Subentry goes here -->
</ontolex:LexicalEntry>
</lexicog:describes>
</lexicog:Entry>
</lexicog:subComponent>
</lexicog:Entry> I think the issue is we want to generate all this structure only when there are subentries. |
Quick question: can we have this without the subcomponents, i.e.: <lexicog:Entry>
<lexicog:describes>
<ontolex:LexicalEntry rdf:ID="aboi">
<!-- As before -->
</ontolex:LexicalEntry>
</lexicog:describes>
</lexicog:Entry> Or in this case, the |
I have implemented this with a test. Could you have a look at: https://github.com/elexis-eu/tei2ontolex/blob/master/GeneratedOntolex/PLI_1906_20190109%20sample.xml |
Here is the results of running it through RDF validation
|
That comes from a case which I had left aside: proverbs. Can you tell we how you would use http://www.lexinfo.net/ontology/3.0/lexinfo#proverb concretely. The example is: <re type="prov">
<form type="phrase"><orth>Petite pluie abat grand vent</orth></form>
<sense>...</sense></re> would something like: <ontolex:LexicalEntry>
<ontolex:canonicalForm>
<rdf:Description>
<ontolex:writtenRep xml:lang="fr">Petite pluie abat grand vent</ontolex:writtenRep>
</rdf:Description>
</ontolex:canonicalForm>
<lexinfo:termType rdf:resource="http://www.lexinfo.net/ontology/3.0/lexinfo#proverb"/>
</ontolex:LexicalEntry> be OK? |
Yes, |
It is common practice to embed entries within entries, for instance when compound are described in the entry of the main head. The constructs are (re for related entry):
or
Is there one or several (for different types of relations between the main and sub) for this?
The text was updated successfully, but these errors were encountered: