Solar energy

From solab
Revision as of 10:14, 2 January 2012 by imported>WikiSysop
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Template:Sparql get dbpedia r2

{{#gu_gen: sparql | http://dbpedia.org/sparql | | 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 foaf: <http://xmlns.com/foaf/0.1/> 
SELECT distinct ?label ?label_en ?label_it ?page ?kfor
WHERE 
{
 <http://dbpedia.org/resource/Category:Solar_energy> rdfs:label ?label  .
  FILTER (LANG(?label) = 'en') .
 OPTIONAL {
 ?subject skos:broader <http://dbpedia.org/resource/Category:Solar_energy>.
 FILTER (REGEX(?subject, '[^a-z A-Z 0-9]*')) . } 
  OPTIONAL {
        ?subject rdfs:label  ?label_en .
        FILTER (LANG(?label_en) = 'en') .
          }
 OPTIONAL {
        ?subject rdfs:label  ?label_it .
        FILTER (LANG(?label_it) = 'it') .
          }
 OPTIONAL {
         ?subject foaf:page ?page .
           }
 OPTIONAL {
           ?subject dbpedia-owl:knownFor   ?kfor .
           }

 }

|yes |Wikitable |{{{x}}} |{{{y}}} }}


skos:broader


Other

{{#gu_gen: sparql | http://dbpedia.org/sparql | | 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 foaf: <http://xmlns.com/foaf/0.1/> 
SELECT distinct ?label ?label_en ?label_it ?page ?kfor
WHERE 
{
 <http://dbpedia.org/resource/Category:Solar_energy> rdfs:label ?label  .
  FILTER (LANG(?label) = 'en') .
 OPTIONAL {
 ?subject skos:subject <http://dbpedia.org/resource/Category:Solar_energy>.
 FILTER (REGEX(?subject, '[^a-z A-Z 0-9]*')) . } 
  OPTIONAL {
        ?subject rdfs:label  ?label_en .
        FILTER (LANG(?label_en) = 'en') .
          }
 OPTIONAL {
        ?subject rdfs:label  ?label_it .
        FILTER (LANG(?label_it) = 'it') .
          }
 OPTIONAL {
         ?subject foaf:page ?page .
           }
 OPTIONAL {
           ?subject dbpedia-owl:knownFor   ?kfor .
           }

 }

|yes |Wikitable |{{{x}}} |{{{y}}} }}