Spark

From solab
Revision as of 08:56, 21 December 2011 by imported>WikiSysop
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

<spark data-spark-endpoint="http://llg:8000/sparql" data-spark-format="http://km.aifb.kit.edu/sites/spark/src/jquery.spark.simpletable.js" data-spark-query=" PREFIX wiki: <http://localhost/solab/index.php/Special:URIResolver/>

PREFIX rdf:  &lt,http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs:  <http://www.w3.org/2000/01/rdf-schema#>
PREFIX owl:  <http://www.w3.org/2002/07/owl#>
PREFIX swivt:  <http://semantic-mediawiki.org/swivt/1.0#>
PREFIX property:  <http://localhost/solab/index.php/Special:URIResolver/Property-3A>
PREFIX xsd:  <http://www.w3.org/2001/XMLSchema#>
SELECT  ?b  WHERE {

<http://localhost/solab/index.php/Special:URIResolver/EnerSolar_Italy_2011> rdfs:label ?b. }"> load </spark>


PREFIX wiki: <http://localhost/solab/index.php/Special:URIResolver/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX swivt: <http://semantic-mediawiki.org/swivt/1.0#>
PREFIX property: <http://localhost/solab/index.php/Special:URIResolver/Property-3A>
PREFIX events: <http://localhost/solab/index.php/Special:URIResolver/Category-3A>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
SELECT DISTINCT    ?name ?start_date ?end_date WHERE {

<http://localhost/solab/index.php/Special:URIResolver/EnerSolar_Italy_2011> rdfs:label ?name. <http://localhost/solab/index.php/Special:URIResolver/EnerSolar_Italy_2011> property:Start_date ?start_date. <http://localhost/solab/index.php/Special:URIResolver/EnerSolar_Italy_2011> property:Start_date ?end_date.

} 


PREFIX swivt: <http://semantic-mediawiki.org/swivt/1.0#&gt PREFIX property: <http://localhost/solab/index.php/Special:URIResolver/Property-3A&gt

PREFIX wiki: <http://localhost/solab/index.php/Special:URIResolver/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX swivt: <http://semantic-mediawiki.org/swivt/1.0#>
PREFIX property: <http://localhost/solab/index.php/Special:URIResolver/Property-3A>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
SELECT DISTINCT     ?b  WHERE {
property:Product  swivt:specialProperty_PVAL ?b .
} ORDER BY ?b

aa

<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 20"> loading</spark>


Products

other1

spark

<spark data-spark-endpoint="http://llg:8000/sparql" data-spark-format="http://km.aifb.kit.edu/sites/spark/src/jquery.spark.simpletable.js" data-spark-query="

PREFIX wiki: <http://localhost/solab/index.php/Special:URIResolver/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX swivt: <http://semantic-mediawiki.org/swivt/1.0#>
PREFIX property: <http://localhost/solab/index.php/Special:URIResolver/Property-3A>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
SELECT DISTINCT     ?b  WHERE {
property:Product  swivt:specialProperty_PVAL ?b .
}"

/>

http://semantic-mediawiki.org/swivt/1.0#specialProperty_PVAL

Product

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

PREFIX wiki: <http://localhost/solab/index.php/Special:URIResolver/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX swivt: <http://semantic-mediawiki.org/swivt/1.0#>
PREFIX property: <http://localhost/solab/index.php/Special:URIResolver/Property-3A>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
SELECT DISTINCT   ?n   WHERE {
?result property:Product ?v1 .
?v1 rdfs:label ?n.

} LIMIT 10 |yes |WIKITABLE }}


other

endpoint="http://llg:8000/sparql" format="http://km.aifb.kit.edu/sites/spark/src/jquery.spark.simpletable.js"

<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 20"

/>