Skip to content
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

Minor editorial changes #144

Merged
merged 1 commit into from
Sep 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@
<example>
<title>RDF</title>
<programlisting>
@prefix dmlex: &lt;https://docs.oasis-open.org/lexidma/dmlex/v1.0/schemas/RDF/dmlex.ttl#&gt; .
@prefix dmlex:
&lt;https://docs.oasis-open.org/lexidma/dmlex/v1.0/schemas/RDF/dmlex.ttl#&gt; .

&lt;#id&gt; a dmlex:LexicographicResource ;
dmlex:title "..." ;
Expand Down
12 changes: 6 additions & 6 deletions dmlex-v1.0/specification/examples/examples/build_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
for f in glob("source/*.xml"):
if f.endswith(".xml.xml") or f.endswith(".rdf.xml") or f.endswith(".json.xml"):
continue
with open(f) as inf:
with open(f + ".xml", "w") as outf:
with open(f, encoding="utf-8") as inf:
with open(f + ".xml", "w", encoding="utf-8") as outf:
outf.write("<!-- This example is automatically generated. DO NOT EDIT -->\n")
outf.write("<programlisting>\n")
for line in inf.readlines():
Expand All @@ -19,8 +19,8 @@
outf.write("</programlisting>\n")

for f in glob("source/*.rdf"):
with open(f) as inf:
with open(f + ".xml", "w") as outf:
with open(f, encoding="utf-8") as inf:
with open(f + ".xml", "w", encoding="utf-8") as outf:
n = 1
outf.write("<!-- This example is automatically generated. DO NOT EDIT -->\n")
outf.write("<programlisting>\n")
Expand All @@ -34,8 +34,8 @@
outf.write("</programlisting>\n")

for f in glob("source/*.json"):
with open(f) as inf:
with open(f + ".xml", "w") as outf:
with open(f, encoding="utf-8") as inf:
with open(f + ".xml", "w", encoding="utf-8") as outf:
outf.write("<!-- This example is automatically generated. DO NOT EDIT -->\n")
outf.write("<programlisting>\n")
for line in inf.readlines():
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ ex:doctor-n-1 a dmlex:Sense;
dmlex:headwordTranslation [ a dmlex:HeadwordTranslation;
dmlex:text "Ärztin";
dmlex:listingOrder "2"^^xsd:unsignedInt;
dmlex:langCode "de"
dmlex:langCode "de" ;
dmlex:partOfSpeech [
dmlex:tag "n-fem";
dmlex:listingOrder "1"^^xsd:unsignedInt ] ],
Expand Down
Loading