Skip to content

Instantly share code, notes, and snippets.

@justin2004
Created August 19, 2021 00:39
Show Gist options
  • Save justin2004/fddd79bb9389e2ddd12b97b7ed3eb7a5 to your computer and use it in GitHub Desktop.
Save justin2004/fddd79bb9389e2ddd12b97b7ed3eb7a5 to your computer and use it in GitHub Desktop.
for reproducing a sparql-anything bug
@prefix fx: <http://sparql.xyz/facade-x/ns/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xyz: <http://sparql.xyz/facade-x/data/> .
[ a <http://www.w3.org/1999/xhtml#div> ;
rdf:_1 [ a <http://www.w3.org/1999/xhtml#h3> ;
rdf:_1 "Bromodichloromethane" ;
<https://html.spec.whatwg.org/#innerHTML>
"Bromodichloromethane" ;
<https://html.spec.whatwg.org/#innerText>
"Bromodichloromethane"
] ;
rdf:_2 [ a <http://www.w3.org/1999/xhtml#span> ;
rdf:_1 " Potential Effect: cancer" ;
<http://www.w3.org/1999/xhtml#class>
"potentital-effect" ;
<https://html.spec.whatwg.org/#innerHTML>
"Potential Effect: cancer" ;
<https://html.spec.whatwg.org/#innerText>
"Potential Effect: cancer"
] ;
rdf:_3 [ a <http://www.w3.org/1999/xhtml#span> ;
rdf:_1 "205x" ;
<http://www.w3.org/1999/xhtml#class>
"detect-times-greater-than" ;
<https://html.spec.whatwg.org/#innerHTML>
"205x" ;
<https://html.spec.whatwg.org/#innerText>
"205x"
] ;
rdf:_4 [ a <http://www.w3.org/1999/xhtml#span> ;
rdf:_1 " EWG'S HEALTH GUIDELINE" ;
<http://www.w3.org/1999/xhtml#class>
"potentital-effect" ;
<https://html.spec.whatwg.org/#innerHTML>
"EWG'S HEALTH GUIDELINE" ;
<https://html.spec.whatwg.org/#innerText>
"EWG'S HEALTH GUIDELINE"
] ;
rdf:_5 [ a <http://www.w3.org/1999/xhtml#div> ;
rdf:_1 [ a <http://www.w3.org/1999/xhtml#div> ;
rdf:_1 [ a <http://www.w3.org/1999/xhtml#span> ;
rdf:_1 "THIS UTILITY" ;
<https://html.spec.whatwg.org/#innerHTML>
"THIS UTILITY" ;
<https://html.spec.whatwg.org/#innerText>
"THIS UTILITY"
] ;
rdf:_2 [ a <http://www.w3.org/1999/xhtml#span> ;
rdf:_1 "12.3 ppb" ;
<https://html.spec.whatwg.org/#innerHTML>
"12.3 ppb" ;
<https://html.spec.whatwg.org/#innerText>
"12.3 ppb"
] ;
<http://www.w3.org/1999/xhtml#class>
"flex-sb mb10" ;
<https://html.spec.whatwg.org/#innerHTML>
"<span>THIS UTILITY</span><span>12.3 ppb</span>" ;
<https://html.spec.whatwg.org/#innerText>
"THIS UTILITY12.3 ppb THIS UTILITY 12.3 ppb"
] ;
rdf:_2 [ a <http://www.w3.org/1999/xhtml#div> ;
rdf:_1 [ a <http://www.w3.org/1999/xhtml#span> ;
rdf:_1 "EWG HEALTH GUIDELINE" ;
<https://html.spec.whatwg.org/#innerHTML>
"EWG HEALTH GUIDELINE" ;
<https://html.spec.whatwg.org/#innerText>
"EWG HEALTH GUIDELINE"
] ;
rdf:_2 [ a <http://www.w3.org/1999/xhtml#span> ;
rdf:_1 "0.06 ppb" ;
<https://html.spec.whatwg.org/#innerHTML>
"0.06 ppb" ;
<https://html.spec.whatwg.org/#innerText>
"0.06 ppb"
] ;
<http://www.w3.org/1999/xhtml#class>
"flex-sb mb10" ;
<https://html.spec.whatwg.org/#innerHTML>
"<span>EWG HEALTH GUIDELINE</span><span>0.06 ppb</span>" ;
<https://html.spec.whatwg.org/#innerText>
"EWG HEALTH GUIDELINE0.06 ppb EWG HEALTH GUIDELINE 0.06 ppb"
] ;
rdf:_3 [ a <http://www.w3.org/1999/xhtml#div> ;
rdf:_1 [ a <http://www.w3.org/1999/xhtml#span> ;
rdf:_1 "NO LEGAL LIMIT" ;
<http://www.w3.org/1999/xhtml#class>
"no-legal" ;
<https://html.spec.whatwg.org/#innerHTML>
"NO LEGAL LIMIT" ;
<https://html.spec.whatwg.org/#innerText>
"NO LEGAL LIMIT"
] ;
<https://html.spec.whatwg.org/#innerHTML>
"<span class=\"no-legal\">NO LEGAL LIMIT</span>" ;
<https://html.spec.whatwg.org/#innerText>
"NO LEGAL LIMIT NO LEGAL LIMIT"
] ;
<http://www.w3.org/1999/xhtml#class>
"detect-levels-overview flex" ;
<https://html.spec.whatwg.org/#innerHTML>
"<div class=\"flex-sb mb10\">\n <span>THIS UTILITY</span><span>12.3 ppb</span>\n</div>\n<div class=\"flex-sb mb10\">\n <span>EWG HEALTH GUIDELINE</span><span>0.06 ppb</span>\n</div>\n<div>\n <span class=\"no-legal\">NO LEGAL LIMIT</span>\n</div>" ;
<https://html.spec.whatwg.org/#innerText>
"THIS UTILITY12.3 ppb EWG HEALTH GUIDELINE0.06 ppb NO LEGAL LIMIT THIS UTILITY12.3 ppb THIS UTILITY 12.3 ppb EWG HEALTH GUIDELINE0.06 ppb EWG HEALTH GUIDELINE 0.06 ppb NO LEGAL LIMIT NO LEGAL LIMIT"
] ;
rdf:_6 [ a <http://www.w3.org/1999/xhtml#a> ;
rdf:_1 "DETAILS" ;
<http://www.w3.org/1999/xhtml#class>
"btn-contam-details" ;
<https://html.spec.whatwg.org/#innerHTML>
"DETAILS" ;
<https://html.spec.whatwg.org/#innerText>
"DETAILS"
] ;
<http://www.w3.org/1999/xhtml#class>
"contaminant-name" ;
<https://html.spec.whatwg.org/#innerHTML>
"<h3>Bromodichloromethane</h3><span class=\"potentital-effect\"> Potential Effect: cancer</span><span class=\"detect-times-greater-than\">205x</span><span class=\"potentital-effect\"> EWG'S HEALTH GUIDELINE</span>\n<div class=\"detect-levels-overview flex\">\n <div class=\"flex-sb mb10\">\n <span>THIS UTILITY</span><span>12.3 ppb</span>\n </div>\n <div class=\"flex-sb mb10\">\n <span>EWG HEALTH GUIDELINE</span><span>0.06 ppb</span>\n </div>\n <div>\n <span class=\"no-legal\">NO LEGAL LIMIT</span>\n </div>\n</div><a class=\"btn-contam-details\">DETAILS</a>" ;
<https://html.spec.whatwg.org/#innerText>
"Bromodichloromethane Potential Effect: cancer205x EWG'S HEALTH GUIDELINE THIS UTILITY12.3 ppb EWG HEALTH GUIDELINE0.06 ppb NO LEGAL LIMITDETAILS Bromodichloromethane Potential Effect: cancer 205x EWG'S HEALTH GUIDELINE THIS UTILITY12.3 ppb EWG HEALTH GUIDELINE0.06 ppb NO LEGAL LIMIT THIS UTILITY12.3 ppb THIS UTILITY 12.3 ppb EWG HEALTH GUIDELINE0.06 ppb EWG HEALTH GUIDELINE 0.06 ppb NO LEGAL LIMIT NO LEGAL LIMIT DETAILS"
] .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment