Advertisement
Guest User

Untitled

a guest
Feb 26th, 2019
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SPARQL 0.63 KB | None | 0 0
  1.           SELECT DISTINCT ( MIN( ?lc ) AS ?l ) ( MIN( ?dc ) AS ?d ) ?s
  2.           WHERE { ?pLabel <http://www.w3.org/2000/01/rdf-schema#subPropertyOf>* <http://www.w3.org/2000/01/rdf-schema#label> .
  3.           { ?s ?pLabel ?lc .
  4.           ?lc bif:CONTAINS '''"Barack Obama"''' .
  5.           FILTER ( LCASE( STR( ?lc ) ) = "barack obama"@en || LCASE( STR( ?lc ) ) = "barack obama" ) }
  6.           OPTIONAL { ?s <http://www.w3.org/2000/01/rdf-schema#comment> ?dc .
  7.           FILTER ( LANGMATCHES( LANG( ?dc ), "en" ) ) }
  8.           OPTIONAL { ?s <http://www.w3.org/2000/01/rdf-schema#comment> ?dc . } }
  9.           GROUP BY ?s
  10.           LIMIT 1000
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement