cleaned up code
This commit is contained in:
@@ -3,14 +3,8 @@ PREFIX e: <http://eulersharp.sourceforge.net/2003/03swap/log-rules#>
|
|||||||
PREFIX schema: <http://schema.org/>
|
PREFIX schema: <http://schema.org/>
|
||||||
PREFIX : <#>
|
PREFIX : <#>
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
?s schema:telephone ?number.
|
?s schema:telephone ?number.
|
||||||
|
|
||||||
# number not matches regex
|
|
||||||
?number string:notMatches """[a-zA-Z]""".
|
|
||||||
|
|
||||||
|
|
||||||
# Remove all non digits
|
# Remove all non digits
|
||||||
( ?number ("""[^+\\d]""") ("") ) string:replaceAll ?scrape_result.
|
( ?number ("""[^+\\d]""") ("") ) string:replaceAll ?scrape_result.
|
||||||
|
|
||||||
|
|||||||
@@ -3,14 +3,8 @@ PREFIX e: <http://eulersharp.sourceforge.net/2003/03swap/log-rules#>
|
|||||||
PREFIX schema: <http://schema.org/>
|
PREFIX schema: <http://schema.org/>
|
||||||
PREFIX : <#>
|
PREFIX : <#>
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
?s schema:telephone ?number.
|
?s schema:telephone ?number.
|
||||||
|
|
||||||
# number not matches regex
|
|
||||||
?number string:notMatches """[a-zA-Z]""".
|
|
||||||
|
|
||||||
|
|
||||||
# Remove all non digits
|
# Remove all non digits
|
||||||
( ?number ("""[^+\\d]""") ("") ) string:replaceAll ?scrape_result.
|
( ?number ("""[^+\\d]""") ("") ) string:replaceAll ?scrape_result.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user