Project:SPARQL/examples: Difference between revisions

add comment to regex
(comment all triples query)
(add comment to regex)
Line 21: Line 21:
WHERE {   
WHERE {   
   ?id rdfs:label ?name .
   ?id rdfs:label ?name .
   FILTER regex(?name, "mrs *", "i")
   FILTER regex(?name, "mrs *", "i") #this line uses regular expression syntax, described at https://regexper.com/#mrs%5Cs*
   SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en-gb". }  
   SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en-gb". }  
}
}
6,317

edits