@@ -125,11 +125,11 @@ <h5 class="modal-title" id="uploadLidoModalLabel">Upload LIDO/XML file</h5>
125125 < div class ="row ">
126126 < div class ="col-5 ">
127127 < div > Mappings (x3ml):< br >
128- < button type ="button " class ="btn btn-primary btn-sm " @click ="addMapping " title ="Add a new mapping rule to the list . "> Add mapping</ button >
129- < button type ="button " class ="btn btn-primary btn-sm " @click ="clearMappings " title ="Remove all mapping rules . "> Clear all</ button >
130- < button type ="button " class ="btn btn-primary btn-sm " @click ="resetMappings " title ="Load the default mappings. "> Load default</ button >
131- < button type ="button " class ="btn btn-primary btn-sm " data-bs-toggle ="modal " data-bs-target ="#uploadX3mlModal " title ="Upload a customer mapping . "> Upload</ button >
132- < button type ="button " class ="btn btn-primary btn-sm " @click ="downloadMappings " title ="Download the current mapping . "> Download</ button >
128+ < button type ="button " class ="btn btn-primary btn-sm " @click ="addMapping " title ="Add new mapping. "> Add mapping</ button >
129+ < button type ="button " class ="btn btn-primary btn-sm " @click ="clearMappings " title ="Remove all mappings . "> Clear all</ button >
130+ < button type ="button " class ="btn btn-primary btn-sm " @click ="resetMappings " title ="Load default mappings. "> Load default</ button >
131+ < button type ="button " class ="btn btn-primary btn-sm " data-bs-toggle ="modal " data-bs-target ="#uploadX3mlModal " title ="Upload mappings . "> Upload</ button >
132+ < button type ="button " class ="btn btn-primary btn-sm " @click ="downloadMappings " title ="Download mappings . "> Download</ button >
133133 </ div >
134134 < div id ="acc " class ="accordion accordion-flush " style ="overflow-y: scroll; height:1000px; width: 100%; ">
135135 < div class ="accordion-item " v-for ="(mapping, i) in x3ml.mappings " :key ="i ">
@@ -201,6 +201,11 @@ <h2 class="accordion-header" :id="'L' + j">
201201 </ option >
202202 </ select >
203203 </ div >
204+ < div class ="form-check ">
205+ < input class ="form-check-input " type ="checkbox " v-model ="useBlankNode " id ="flexCheckDefault ">
206+ < label class ="form-check-label " for ="flexCheckDefault "> Use BNodes</ label >
207+ </ div >
208+
204209 </ div >
205210 < p >
206211 < div id ="rdfEditor "> </ div >
@@ -274,7 +279,8 @@ <h2 class="accordion-header" :id="'L' + j">
274279 mode : '' ,
275280 modeFormatKeys : new Map ( ) ,
276281 tmp : [ "abc" , "abcd" , "xxxx" ] ,
277- formatKey : 'n3'
282+ formatKey : 'n3' ,
283+ useBlankNode : false
278284 }
279285 } ,
280286 delimiters : [ "${" , "}$" ] , // for global
@@ -284,7 +290,7 @@ <h2 class="accordion-header" :id="'L' + j">
284290 let attrs = event . target . attributes ;
285291 let i = parseInt ( attrs . id . value ) ;
286292 let j = parseInt ( attrs . pid . value ) ;
287- let link = this . x3ml . mappings [ j ] . links [ i ] ;
293+ let link = this . x3ml . mappings [ j ] . links [ i ] ;
288294 link . range . sourceNode . text = event . target . value
289295 } ,
290296 saveX3mlUrl ( event ) {
@@ -500,7 +506,7 @@ <h2 class="accordion-header" :id="'L' + j">
500506 // Triggers the transformation lido + x3ml => ttl
501507 // and loads the result into the RDF editor.
502508 format = app . formatKey
503- data = { type : '/run_mappings' , data : lidoEditor . getValue ( ) , x3ml : app . x3ml , format : format }
509+ data = { type : '/run_mappings' , data : lidoEditor . getValue ( ) , x3ml : app . x3ml , format : format , useBlankNode : app . useBlankNode }
504510 post ( 'run_mappings' , data )
505511 . then ( res => res . json ( ) )
506512 . then ( s => {
0 commit comments