Skip to content

Commit

Permalink
Merge pull request #144 from jmccrae/issue-134-jmcc
Browse files Browse the repository at this point in the history
Minor editorial changes
  • Loading branch information
mjakubicek authored Sep 5, 2024
2 parents c4dcf40 + 078ae70 commit faa8d74
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
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

0 comments on commit faa8d74

Please sign in to comment.