PREFIX dc: <http://purl.org/dc/elements/1.1/>
SELECT ?article ?title
WHERE
{
?article dc:title ?title ;
dc:date ?date .
FILTER (
bound ( ?date )
&& ?date >= "19450101"^^xsd:date
&& ?date <= "19451231"^^xsd:date
)
}
LIMIT 100
## See LOD live results.
SELECT ?s1 ?s2 COUNT (1)
WHERE
{
?s1 ?p ?o .
FILTER (?s1 IN (<http://dbpedia.org/resource/Climate_change>,
<http://dbpedia.org/resource/Disaster_risk_reduction>,
<http://dbpedia.org/resource/Tanzania>,
<http://dbpedia.org/resource/Vulnerability> ))
?s2 ?p ?o .
FILTER (?s2 IN (<http://dbpedia.org/resource/Climate_change>,
<http://dbpedia.org/resource/Disaster_risk_reduction>,
<http://dbpedia.org/resource/Tanzania>,
<http://dbpedia.org/resource/Poverty>,
<http://dbpedia.org/resource/Construction>,
<http://dbpedia.org/resource/Vulnerability> ))
FILTER (?s1 != ?s2)
FILTER (str(?s1) < str (?s2))
}
LIMIT 20
## See dbpedia live results.
## See LOD live results.
SELECT ?s1
WHERE
{
?s1 ?p ?o .
FILTER (?s1 NOT IN (<http://dbpedia.org/resource/Climate_change>,
<http://dbpedia.org/resource/Disaster_risk_reduction>,
<http://dbpedia.org/resource/Tanzania>,
<http://dbpedia.org/resource/Vulnerability> ))
}
LIMIT 20
## See dbpedia live results.
## See LOD live results.
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
SELECT ?name1 ?name2
WHERE
{
?x foaf:name ?name1 .
?x foaf:mbox ?mbox1 .
?y foaf:name ?name2 .
?y foaf:mbox ?mbox2 .
FILTER (?mbox1 = ?mbox2 && ?name1 != ?name2)
}
LIMIT 10
## See LOD live results.
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
SELECT ?name1 ?name2
WHERE
{
?x foaf:name ?name1 .
?x foaf:mbox ?mbox1 .
?y foaf:name ?name2 .
?y foaf:mbox ?mbox2 .
FILTER (sameTerm(?mbox1, ?mbox2) && !sameTerm(?name1, ?name2))
}
LIMIT 10
## See LOD live results.
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
SELECT ?name1 ?name2
WHERE
{
?x foaf:name ?name1 .
?x foaf:mbox ?mbox1 .
?y foaf:name ?name2 .
?y foaf:mbox ?mbox2 .
FILTER (?mbox1 = ?mbox2 && ?name1 != ?name2)
}
LIMIT 10
## See LOD live results.
SELECT ?auth COUNT ( DISTINCT ?d ) as ?cnt
WHERE
{
?d dc:creator ?auth .
?d ?p ?o .
FILTER ( bif:contains ( ?o, 'WEB AND SEMANTIC' ) && isIRI ( ?auth ) )
}
LIMIT 100
## See LOD live results.
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
SELECT ?name ?mbox
WHERE
{
?x foaf:name ?name .
?x foaf:mbox ?mbox .
FILTER isURI(?mbox)
}
LIMIT 100
## See LOD live results.
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
SELECT ?name ?mbox
WHERE
{
?x foaf:name ?name .
?x foaf:mbox ?mbox .
FILTER isLiteral(?mbox)
}
LIMIT 100
## See LOD live results.
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
SELECT ?name ?mbox
WHERE
{
?x foaf:name ?name .
?x foaf:mbox ?mbox .
FILTER isREF(?mbox)
}
LIMIT 100
## See LOD live results.
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
SELECT ?name ?mbox
WHERE
{
?x foaf:name ?name .
?x foaf:mbox ?mbox .
FILTER regex(str(?mbox), "@w3.org")
}
LIMIT 100
## See LOD live results.
SELECT DISTINCT ?s
( bif:round ( ?lat ) ) AS ?lat
{
GRAPH ?g
{
?s geo:geometry ?geo .
?s geo:lat ?lat .
}
FILTER (
datatype ( ?lat ) IN ( xsd:decimal )
) .
}
LIMIT 100
## See LOD live results.
DEFINE sql:signal-void-variables 1
PREFIX tpch: <http://www.openlinksw.com/schemas/tpch#>
SELECT ?cust sum(?extendedprice2 * (1 - ?discount2)) max (?bigdiscount)
WHERE
{
{
SELECT ?line (?extendedprice * ?discount) as ?bigdiscount
WHERE
{
?line a tpch:lineitem ;
tpch:lineextendedprice ?extendedprice ;
tpch:linediscount ?discount .
}
ORDER BY DESC (?extendedprice * ?discount)
LIMIT 1000
}
?line tpch:has_order ?order .
?order tpch:has_customer ?cust .
?cust tpch:customer_of ?order2 .
?order2 tpch:order_of ?line2 .
?line2 tpch:lineextendedprice ?extendedprice2 ;
tpch:linediscount ?discount2 .
}
ORDER BY (SUM(?extendedprice2 * (1 - ?discount2)) / MAX (?bigdiscount))
LIMIT 100
PREFIX dbpedia-owl: <http://dbpedia.org/ontology/>
PREFIX dbpedia-owl-uni: <http://dbpedia.org/ontology/University/>
PREFIX dbpedia-owl-inst: <http://dbpedia.org/ontology/EducationalInstitution/>
SELECT ?town COUNT(?uni)
?pgrad ?ugrad
MAX(?population)
( ((?pgrad+?ugrad)/ MAX(?population))*100 ) AS ?percentage
WHERE
{
?uni dbpedia-owl-inst:country dbpedia:United_Kingdom ;
dbpedia-owl-uni:postgrad ?pgrad ;
dbpedia-owl-uni:undergrad ?ugrad ;
dbpedia-owl-inst:city ?town .
OPTIONAL
{
?town dbpedia-owl:populationTotal ?population .
FILTER (?population > 0 )
}
}
GROUP BY ?town ?pgrad ?ugrad
HAVING ( ( ( (?pgrad+?ugrad)/ MAX(?population) )*100 ) > 0 )
ORDER BY DESC 6