Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
- PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
- PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
- PREFIX schema: <http://schema.org/>
- SELECT DISTINCT ( MIN( ?lc ) AS ?l ) ( MIN( ?dc ) AS ?d ) ?s
- WHERE {
- ?pLabel rdfs:subPropertyOf* rdfs:label .
- {
- ?s ?pLabel ?lc .
- ?lc bif:CONTAINS '''"Barack Obama"''' .
- FILTER ( LCASE( STR( ?lc ) ) = "barack obama"@en || LCASE( STR( ?lc ) ) = "barack obama" )
- }
- {
- ?s rdf:type ?someType .
- FILTER NOT EXISTS {
- ?s rdf:type <http://www.w3.org/2002/07/owl#Class> .
- }
- FILTER NOT EXISTS {
- ?someSubClass rdfs:subClassOf ?s .
- }
- FILTER NOT EXISTS {
- ?s rdfs:subClassOf ?someSuperClass .
- }
- }
- OPTIONAL {
- ?s <schema:description> ?dc .
- FILTER ( LANGMATCHES( LANG( ?dc ), "en" ) )
- }
- OPTIONAL {
- ?s schema:description ?dc .
- }
- }
- GROUP BY ?s LIMIT 1000
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement