Skip to content

Commit

Permalink
I hadn't caught them all yet (proycon/folia#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
proycon committed Aug 26, 2020
1 parent 3836788 commit 9745dbd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions foliatools/folia2salt.py
Original file line number Diff line number Diff line change
Expand Up @@ -720,22 +720,22 @@ def convert_corpus(corpusdocs, **kwargs):
{"{http://www.omg.org/XMI}version":"2.0"},
E.sCorpusGraphs(
E.labels({ # document ID
"{http://www.omg.org/XMI}type": "saltCore:SFeature",
"{http://www.w3.org/2001/XMLSchema-instance}type": "saltCore:SFeature",
"namespace": "salt",
"name": "SNAME",
"value": "T::" + kwargs['corpusprefix']
}),
E.nodes({
"{http://www.omg.org/XMI}type": "sCorpusStructure:SCorpus",
"{http://www.w3.org/2001/XMLSchema-instance}type": "sCorpusStructure:SCorpus",
},
E.labels({ # document ID
"{http://www.omg.org/XMI}type": "saltCore:SElementId",
"{http://www.w3.org/2001/XMLSchema-instance}type": "saltCore:SElementId",
"namespace": "salt",
"name": "id",
"value": "T::salt:/" + kwargs['corpusprefix']
}),
E.labels({
"{http://www.omg.org/XMI}type": "saltCore:SFeature",
"{http://www.w3.org/2001/XMLSchema-instance}type": "saltCore:SFeature",
"namespace": "salt",
"name": "SNAME",
"value": "T::" + kwargs['corpusprefix']
Expand Down

0 comments on commit 9745dbd

Please sign in to comment.