diff --git a/config/reasoner/dl2op/main/phone_number.n3 b/config/reasoner/dl2op/main/phone_number.n3 index db784d8..4acfd1f 100644 --- a/config/reasoner/dl2op/main/phone_number.n3 +++ b/config/reasoner/dl2op/main/phone_number.n3 @@ -1,19 +1,7 @@ PREFIX string: PREFIX e: -PREFIX schema: -#:s :p -# "+32488888888", -# "0477777777", -# "0477.77.77.00", -# "0", -# " +32 445 55 99 91", -# "tel:+3144887755", -# "0032 4 58 44 66 87", -# "00 32 0 498 77 7744". { - - - ?s schema:telephone ?number. + :s schema:telephone ?number. # number not matches regex @@ -32,15 +20,14 @@ PREFIX schema: # ?result string:matches """^+((32\\d{8})|(324\\d{8})|((?!32)\\d+))$""". ?result string:matches """^\\+((32\\d{8})|(324\\d{8})|((?!32)\\d+))$""". - # concat with tel: - ("tel:" ?result) string:concatenation ?parsedNumber . + ( "tel:" ?result ) string:concatenation ?parsed_result . { - ?s schema:telephone ?number. + :s schema:telephone ?number. } e:becomes { - ?s schema:telephone ?parsedNumber. + :s schema:telephone ?parsed_result . }. } => { - ?s schema:telephone ?parsedNumber. + :s schema:telephone ?parsed_result . }.