Spark1

From solab
Revision as of 20:08, 1 November 2011 by imported>WikiSysop (→‎Pie)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

<spark data-spark-rdf="http://simia.net/foaf.rdf" data-spark-format="ul" data-spark-query= " select ?entity ?label WHERE { <http://simia.net/foaf.rdf#denny> foaf:knows ?entity . ?entity foaf:name ?label }" > aa</spark>

xx2

<spark data-spark-endpoint="http://dbpedia.org/sparql" data-spark-format="http://km.aifb.kit.edu/sites/spark/src/jquery.spark.simpletable.js" data-spark-query=" select distinct ?City ?State ?Population where { ?c dbpedia-owl:federalState ?s . ?c rdfs:label ?City . ?s rdfs:label ?State . ?c dbpedia-owl:populationTotal ?Population . filter(langMatches(lang(?City), "en")) .

       filter(langMatches(lang(?State), "en")) .
}LIMIT 5" >

load</spark>

Pie

<spark data-spark-endpoint="http://dbpedia.org/sparql" data-spark-format="http://km.aifb.kit.edu/sites/spark/src/jquery.spark.piechart.js" data-spark-query="select distinct ?entity ?label ?value where { ?entity dbpprop:callingCode ?cc . ?entity rdfs:label ?label . ?entity dbpprop:populationEstimate ?value . filter(langMatches(lang(?label), "en")) . filter(?cc > 380) . filter(?cc < 390) . }" > load</spark>

other

order by desc[?Population] limit 20" >

data-spark-endpoint="http://localhost:8000/sparql" data-spark-format="ul" data-spark-query=" select ?n where {

<http://localhost/solab/index.php/Special:URIResolver/Xx> rdfs:label ?n .

db

<spark data-spark-endpoint="http://dbpedia.org/sparql" data-spark-format="http://km.aifb.kit.edu/sites/spark/src/jquery.spark.piechart.js" data-spark-query="select distinct ?entity ?label ?value where { ?entity dbpprop:callingCode ?cc ?entity rdfs:label ?label . ?entity dbpprop:populationEstimate ?value . filter(langMatches(lang(?label), "en")) . filter(?cc > 380) . filter(?cc < 390) . }" />

xx

{{#gu_gen: sparql | http://llg:8000/sparql/ | root |

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT DISTINCT   ?n   WHERE {
<http://localhost/solab/index.php/Special:URIResolver/Xx> rdfs:label ?n.

} LIMIT 2 |no |WIKITABLE }}


{{#gu_gen: sparql | http://llg:8000/sparql/ | root |

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX property: <http://localhost/solab/index.php/Special:URIResolver/Property-3A>
SELECT DISTINCT   ?n   WHERE {
?result property:Product ?v1 .
?v1 rdfs:label ?n.

} LIMIT 2 |yes |WIKITABLE }}





ul

<spark data-spark-format="http://km.aifb.kit.edu/sites/spark/src/jquery.spark.datechart.js" data-spark-query=" PREFIX sdmx-measure: <http://purl.org/linked-data/sdmx/2009/measure#> PREFIX gesis: <http://lod.gesis.org/vocab#> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX qb: <http://purl.org/linked-data/cube#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX dcterms: <http://purl.org/dc/terms/>

SELECT ?entity ?series ?series_label ?time ?value FROM <http://gesis-lod.appspot.com/data?code=14111&ags=05&jahr=2009> FROM <http://gesis-lod.appspot.com/data?code=14111&ags=05&jahr=2005> FROM <http://gesis-lod.appspot.com/data?code=14111&ags=05&jahr=2002> FROM <http://gesis-lod.appspot.com/data?code=14111&ags=05&jahr=1998> FROM <http://gesis-lod.appspot.com/data?code=14111&ags=05&jahr=1994> FROM <http://gesis-lod.appspot.com/geo.rdf> FROM <http://gesis-lod.appspot.com/parteien.rdf> FROM <http://lod.gesis.org/lodpilot/ALLBUS/ZA4570agg.rdf>

WHERE {

   ?entity qb:dataset <http://gesis-lod.appspot.com/data?code=14111#ds> .
   ?entity dcterms:date ?time .
   ?entity gesis:partei ?series .
   ?series rdfs:label ?series_label .
   ?entity sdmx-measure:obsValue ?value .

} " />