Template:Dbpedia query 3
PREFIX dbpedia: <http://dbpedia.org/property/> PREFIX dbpedia-owl:<http://dbpedia.org/ontology/> PREFIX skos: <http://www.w3.org/2004/02/skos/core#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX dcterms: <http://purl.org/dc/terms/> PREFIX foaf: <http://xmlns.com/foaf/0.1/> SELECT distinct ?subject ?label ?page WHERE { ?subject {{{par}}} <http://dbpedia.org/resource/{{{res}}}>. FILTER (REGEX(?subject, '{{{label_en_filter}}}')) . OPTIONAL { <http://dbpedia.org/resource/{{{res}}}> rdfs:label ?label . FILTER (LANG(?label) = 'en') . } OPTIONAL { ?subject foaf:page ?page . } } {{{limit}}}