Skip to content

Commit

Permalink
Encode language tags without @
Browse files Browse the repository at this point in the history
  • Loading branch information
ckindermann committed Aug 23, 2024
1 parent b9e4d06 commit cde6658
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/ofn_2_ldtab/annotation_translation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,7 @@ pub fn translate_literal(s: &str) -> Value {

if language_tag.is_match(s) {
match language_tag.captures(s){
//Some(x) => json!(format!("@{}", &x[2])),
Some(x) => { let lang = format!("@{}", &x[2]);
Some(x) => { let lang = format!("{}", &x[2]);
json!({"object" : &x[1],
"datatype" : lang})
},
Expand Down

0 comments on commit cde6658

Please sign in to comment.