#-------------------------------------------------------
PREFIX  dc:   <http://purl.org/dc/elements/1.1/>
PREFIX  :     <http://dbpedia.org/resource/>
PREFIX  dbpedia2: <http://dbpedia.org/property/>
PREFIX  geo:  <http://www.w3.org/2003/01/geo/wgs84_pos#>
PREFIX  foaf: <http://xmlns.com/foaf/0.1/>
PREFIX  vcard: <http://www.w3.org/2001/vcard-rdf/3.0#>
PREFIX  dcterms: <http://purl.org/dc/terms/>
PREFIX  sioc: <http://rdfs.org/sioc/ns#>
PREFIX  rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX  co:   <http://www.geonames.org/countries/#>
PREFIX  category: <http://dbpedia.org/resource/Category:>
PREFIX  time: <http://pervasive.semanticweb.org/ont/2004/06/time#>
PREFIX  p:    <http://dbpedia.org/property/>
PREFIX  dbpedia: <http://dbpedia.org/>
PREFIX  xsd:  <http://www.w3.org/2001/XMLSchema#>
PREFIX  owl:  <http://www.w3.org/2002/07/owl#>
PREFIX  swrc: <http://swrc.ontoware.org/ontology#>
PREFIX  rdf:  <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX  rss:  <http://purl.org/rss/1.0/>
PREFIX  cyc:  <http://www.cyc.com/2004/06/04/cyc#>
PREFIX  skos: <http://www.w3.org/2004/02/skos/core#>

SELECT  ?label ?property ?hasValue ?itemlabel
WHERE
  { <http://dbpedia.org/resource/Catwoman%27s_Whip> ?property ?hasValue
    OPTIONAL
      { ?hasValue rdfs:label ?itemlabel }
    OPTIONAL
      { ?property rdfs:label ?label }
    FILTER ( ( ( langMatches(lang(?label), "en") || ( ! langMatches(lang(?label), "*") ) ) && ( langMatches(lang(?hasValue), "en") || ( ! langMatches(lang(?hasValue), "*") ) ) ) && ( langMatches(lang(?itemlabel), "en") || ( ! langMatches(lang(?itemlabel), "*") ) ) )
  }
#-------------------------------------------------------
SELECT DISTINCT  ?field
WHERE
  { ?s <http://dbpedia.org/property/field> ?field }
#-------------------------------------------------------
PREFIX  o:    <http://dbpedia.org/ontology/>

SELECT  *
WHERE
  { FILTER ( ?y = <http://dbpedia.org/resource/Julius_Caesar> )
    ?b o:commander ?y
  }
#-------------------------------------------------------
PREFIX  dc:   <http://purl.org/dc/elements/1.1/>
PREFIX  :     <http://dbpedia.org/resource/>
PREFIX  rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX  dbpedia2: <http://dbpedia.org/property/>
PREFIX  foaf: <http://xmlns.com/foaf/0.1/>
PREFIX  owl:  <http://www.w3.org/2002/07/owl#>
PREFIX  xsd:  <http://www.w3.org/2001/XMLSchema#>
PREFIX  dbpedia: <http://dbpedia.org/>
PREFIX  rdf:  <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX  skos: <http://www.w3.org/2004/02/skos/core#>

DESCRIBE ?ford
WHERE
  { ?ford foaf:page <http://en.wikipedia.org/wiki/Ford_Motor_Company> }
#-------------------------------------------------------
PREFIX  foaf: <http://xmlns.com/foaf/0.1/>
PREFIX  dbont: <http://dbpedia.org/ontology/>
PREFIX  dbp:  <http://dbpedia.org/property/>
PREFIX  rdf:  <http://www.w3.org/1999/02/22-rdf-syntax-ns#>

SELECT  ?link ?name
WHERE
  {   { ?link rdf:type dbont:MusicalArtist }
    UNION
      { ?link rdf:type dbont:band }
    ?link foaf:name ?name
    FILTER regex(?name, "anastacia", "i")
  }
#-------------------------------------------------------
PREFIX  dc:   <http://purl.org/dc/elements/1.1/>
PREFIX  :     <http://dbpedia.org/resource/>
PREFIX  rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX  dbpedia2: <http://dbpedia.org/property/>
PREFIX  foaf: <http://xmlns.com/foaf/0.1/>
PREFIX  owl:  <http://www.w3.org/2002/07/owl#>
PREFIX  xsd:  <http://www.w3.org/2001/XMLSchema#>
PREFIX  dbpedia: <http://dbpedia.org/>
PREFIX  rdf:  <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX  skos: <http://www.w3.org/2004/02/skos/core#>

SELECT  ?Who
WHERE
  {   { :Horus dbpedia2:parents ?Who }
    UNION
      { ?Who rdf:type ?type
          { ?type rdfs:label "person" }
        UNION
          { ?type rdfs:label "person"@en }
        UNION
          { ?type rdfs:label "organization" }
        UNION
          { ?type rdfs:label "organization"@en }
      }
  }
#-------------------------------------------------------
PREFIX  dc:   <http://purl.org/dc/elements/1.1/>
PREFIX  :     <http://dbpedia.org/resource/>
PREFIX  rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX  dbpedia2: <http://dbpedia.org/property/>
PREFIX  foaf: <http://xmlns.com/foaf/0.1/>
PREFIX  owl:  <http://www.w3.org/2002/07/owl#>
PREFIX  xsd:  <http://www.w3.org/2001/XMLSchema#>
PREFIX  dbpedia: <http://dbpedia.org/>
PREFIX  rdf:  <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX  skos: <http://www.w3.org/2004/02/skos/core#>

SELECT  ?episode
WHERE
  { ?episode skos:subject ?season }
ORDER BY ?episode
#-------------------------------------------------------
PREFIX  rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX  foaf: <http://xmlns.com/foaf/0.1/>
PREFIX  dbp:  <http://dbpedia.org/property/>
PREFIX  rdf:  <http://www.w3.org/1999/02/22-rdf-syntax-ns#>

SELECT DISTINCT  ?resource ?uri ?wtitle ?comment ?image
WHERE
  { {   { ?resource foaf:page <http://en.wikipedia.org/wiki/Weekend_(news_program)> }
      UNION
        { ?resource foaf:page <http://en.wikipedia.org/wiki/News> }
      UNION
        { ?resource foaf:page <http://en.wikipedia.org/wiki/Fireworks> }
      UNION
        { ?resource foaf:page <http://en.wikipedia.org/wiki/Feeder> }
      UNION
        { ?resource foaf:page <http://en.wikipedia.org/wiki/Twitter> }
      UNION
        { ?resource foaf:page <http://en.wikipedia.org/wiki/This_Weekend> }
    }
    ?resource foaf:page ?uri .
    ?resource rdfs:label ?wtitle
    FILTER langMatches(lang(?wtitle), "en")
    OPTIONAL
      { ?resource rdfs:comment ?comment
        FILTER langMatches(lang(?comment), "en")
      }
    OPTIONAL
      { ?resource foaf:depiction ?image }
  }
#-------------------------------------------------------
PREFIX  :     <http://dbpedia.org/resource/>
PREFIX  dbo:  <http://dbpedia.org/ontology/>
PREFIX  dbp:  <http://dbpedia.org/property/>

SELECT DISTINCT  ?s ?p ?o
WHERE
  {   { { ?s ?p ?o }
        FILTER ( ( ( ?s = :Virginia_Wolf ) && regex(?p, "(http://dbpedia.org/property/|http://dbpedia.org/ontology/)") ) && regex(?o, "http://dbpedia.org/resource/") )
      }
    UNION
      { { ?s ?p ?o }
        FILTER ( ( ( ?o = :Virginia_Wolf ) && regex(?p, "(http://dbpedia.org/property/|http://dbpedia.org/ontology/)") ) && regex(?s, "http://dbpedia.org/resource/") )
      }
  }
ORDER BY ?s ?p ?o
LIMIT   16
#-------------------------------------------------------
PREFIX  rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX  foaf: <http://xmlns.com/foaf/0.1/>
PREFIX  dbp:  <http://dbpedia.org/property/>
PREFIX  rdf:  <http://www.w3.org/1999/02/22-rdf-syntax-ns#>

SELECT DISTINCT  ?resource ?uri ?wtitle ?comment ?image
WHERE
  { {   { ?resource foaf:page <http://en.wikipedia.org/wiki/Sellafield> }
      UNION
        { ?resource foaf:page <http://en.wikipedia.org/wiki/AMEC> }
      UNION
        { ?resource foaf:page <http://en.wikipedia.org/wiki/Construction> }
      UNION
        { ?resource foaf:page <http://en.wikipedia.org/wiki/Page> }
      UNION
        { ?resource foaf:page <http://en.wikipedia.org/wiki/Position_(team_sports)> }
      UNION
        { ?resource foaf:page <http://en.wikipedia.org/wiki/Engineering> }
      UNION
        { ?resource foaf:page <http://en.wikipedia.org/wiki/Liquid_(The_Rasmus_song)> }
      UNION
        { ?resource foaf:page <http://en.wikipedia.org/wiki/Scouting> }
      UNION
        { ?resource foaf:page <http://en.wikipedia.org/wiki/Hell_of_a_Tester> }
      UNION
        { ?resource foaf:page <http://en.wikipedia.org/wiki/Scout_Leader> }
    }
    ?resource foaf:page ?uri .
    ?resource rdfs:label ?wtitle
    FILTER langMatches(lang(?wtitle), "en")
    OPTIONAL
      { ?resource rdfs:comment ?comment
        FILTER langMatches(lang(?comment), "en")
      }
    OPTIONAL
      { ?resource foaf:depiction ?image }
  }
#-------------------------------------------------------
PREFIX  rdf:  <http://www.w3.org/1999/02/22-rdf-syntax-ns#>

SELECT DISTINCT  ?player
WHERE
  { ?s rdf:type <http://dbpedia.org/ontology/SoccerPlayer> }
LIMIT   1000
#-------------------------------------------------------
PREFIX  dc:   <http://purl.org/dc/elements/1.1/>
PREFIX  :     <http://dbpedia.org/resource/>
PREFIX  rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX  dbpedia2: <http://dbpedia.org/property/>
PREFIX  foaf: <http://xmlns.com/foaf/0.1/>
PREFIX  owl:  <http://www.w3.org/2002/07/owl#>
PREFIX  xsd:  <http://www.w3.org/2001/XMLSchema#>
PREFIX  dbpedia: <http://dbpedia.org/>
PREFIX  rdf:  <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX  skos: <http://www.w3.org/2004/02/skos/core#>

SELECT DISTINCT  ?prop
WHERE
  { ?episode skos:subject ?season .
    ?season rdfs:label ?season_title .
    ?season ?prop _:b0
  }
LIMIT   2
#-------------------------------------------------------
PREFIX  dc:   <http://purl.org/dc/elements/1.1/>
PREFIX  :     <http://dbpedia.org/resource/>
PREFIX  rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX  dbpedia2: <http://dbpedia.org/property/>
PREFIX  foaf: <http://xmlns.com/foaf/0.1/>
PREFIX  owl:  <http://www.w3.org/2002/07/owl#>
PREFIX  xsd:  <http://www.w3.org/2001/XMLSchema#>
PREFIX  dbpedia: <http://dbpedia.org/>
PREFIX  rdf:  <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX  skos: <http://www.w3.org/2004/02/skos/core#>

SELECT  ?property ?hasValue ?isValueOf
WHERE
  {   { :Oslo ?property ?hasValue }
    UNION
      { ?isValueOf ?property :Oslo }
  }
#-------------------------------------------------------
SELECT DISTINCT  ?subject ?predicate ?object
WHERE
  {   { <http://dbpedia.org/resource/John_Lennon> ?predicate ?object }
    UNION
      { ?subject ?predicate <http://dbpedia.org/resource/John_Lennon> }
    FILTER ( ( lang(?object) = "en" ) || ( lang(?object) = "" ) )
  }
ORDER BY ?predicate ?subject
OFFSET  400
LIMIT   200
#-------------------------------------------------------
PREFIX  foaf: <http://xmlns.com/foaf/0.1/>
PREFIX  rdf:  <http://www.w3.org/1999/02/22-rdf-syntax-ns#>

SELECT  ?name ?nick
WHERE
  { ?x rdf:type foaf:Person .
    ?x foaf:name ?name
    OPTIONAL
      { ?x foaf:nick ?nick }
  }
#-------------------------------------------------------
PREFIX  dc:   <http://purl.org/dc/elements/1.1/>
PREFIX  :     <http://dbpedia.org/resource/>
PREFIX  rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX  dbpedia2: <http://dbpedia.org/property/>
PREFIX  foaf: <http://xmlns.com/foaf/0.1/>
PREFIX  owl:  <http://www.w3.org/2002/07/owl#>
PREFIX  xsd:  <http://www.w3.org/2001/XMLSchema#>
PREFIX  dbpedia: <http://dbpedia.org/>
PREFIX  rdf:  <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX  skos: <http://www.w3.org/2004/02/skos/core#>

SELECT  ?name ?person ?clubs
WHERE
  { ?person dbpedia2:nationalteam :Spain_national_football_team .
    ?person dbpedia2:clubs ?clubs .
    ?person foaf:name ?name
  }
ORDER BY ?name
#-------------------------------------------------------
PREFIX  dc:   <http://purl.org/dc/elements/1.1/>
PREFIX  rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX  foaf: <http://xmlns.com/foaf/0.1/>
PREFIX  dbpedia: <http://dbpedia.org/>
PREFIX  owl:  <http://www.w3.org/2002/07/owl#>
PREFIX  xsd:  <http://www.w3.org/2001/XMLSchema#>
PREFIX  rdf:  <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX  do:   <http://dbpedia.org/ontology/>
PREFIX  dp:   <http://dbpedia.org/property/>
PREFIX  skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX  dr:   <http://dbpedia.org/resource/>

SELECT DISTINCT  ?r ?n ?b ?a
WHERE
  { ?r rdf:type do:Actor
    OPTIONAL
      { ?r dp:name ?n }
    OPTIONAL
      { ?r dp:birthdate ?b }
    OPTIONAL
      { ?r do:abstract ?a }
  }
LIMIT   1000
#-------------------------------------------------------
SELECT DISTINCT  ?subject ?predicate ?object
WHERE
  {   { <http://dbpedia.org/resource/Damon_Lindelof> ?predicate ?object }
    UNION
      { ?subject ?predicate <http://dbpedia.org/resource/Damon_Lindelof> }
    FILTER ( ( lang(?object) = "en" ) || ( lang(?object) = "" ) )
  }
ORDER BY ?predicate ?subject
OFFSET  0
LIMIT   200
#-------------------------------------------------------
SELECT  ?s
WHERE
  { ?s ?p ?o }
GROUP BY ?s
#-------------------------------------------------------
PREFIX  rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX  foaf: <http://xmlns.com/foaf/0.1/>
PREFIX  dbprop: <http://dbpedia.org/property/>
PREFIX  dbpedia: <http://dbpedia.org/ontology/>

SELECT DISTINCT  ?artist ?artistName ?movie ?title ?originalTitle ?nationality ?nationality2 ?releaseDate ?summary ?studioName ?duration ?url ?website
WHERE
  { ?artist <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> dbpedia:Artist .
    ?artist rdfs:label ?artistName .
    ?movie <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> dbpedia:Film .
    ?movie dbpedia:director ?artist
    OPTIONAL
      { ?movie rdfs:label ?originalTitle
        FILTER ( lang(?originalTitle) = "en" )
      }
    OPTIONAL
      { ?movie dbprop:title ?title
        FILTER ( lang(?title) = "en" )
      }
    OPTIONAL
      { ?movie dbpedia:director ?director .
        ?director rdfs:label ?directorName
        FILTER ( lang(?directorName) = "en" )
      }
    OPTIONAL
      { ?movie dbprop:country ?country .
        ?country rdfs:label ?nationality
        FILTER ( lang(?nationality) = "en" )
      }
    OPTIONAL
      { ?movie dbprop:country ?nationality2
        FILTER ( lang(?nationality2) = "en" )
      }
    OPTIONAL
      { ?movie dbpedia:releaseDate ?releaseDate }
    OPTIONAL
      { ?movie dbpedia:abstract ?summary
        FILTER ( lang(?summary) = "fr" )
      }
    OPTIONAL
      { ?movie dbprop:distributor ?studio .
        ?studio rdfs:label ?studioName
        FILTER ( lang(?studioName) = "en" )
      }
    OPTIONAL
      { ?movie <http://dbpedia.org/ontology/Work/runtime> ?duration }
    OPTIONAL
      { ?movie foaf:homepage ?url }
    OPTIONAL
      { ?movie foaf:page ?website }
    FILTER regex(?artistName, "david fincher", "i")
    FILTER ( lang(?artistName) = "en" )
  }
#-------------------------------------------------------
PREFIX  dc:   <http://purl.org/dc/elements/1.1/>
PREFIX  :     <http://dbpedia.org/resource/>
PREFIX  rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX  dbpedia2: <http://dbpedia.org/property/>
PREFIX  foaf: <http://xmlns.com/foaf/0.1/>
PREFIX  owl:  <http://www.w3.org/2002/07/owl#>
PREFIX  xsd:  <http://www.w3.org/2001/XMLSchema#>
PREFIX  dbpedia: <http://dbpedia.org/>
PREFIX  rdf:  <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX  skos: <http://www.w3.org/2004/02/skos/core#>

SELECT  *
WHERE
  {   { <http://dbpedia.org/resource/Category:Google> rdfs:label ?title
        FILTER langMatches(lang(?title), "EN")
      }
    UNION
      { <http://dbpedia.org/resource/Category:Google> skos:broader ?broader .
        ?broader rdfs:label ?title
        FILTER langMatches(lang(?title), "EN")
      }
    UNION
      { ?narrower skos:broader <http://dbpedia.org/resource/Category:Google> .
        ?narrower rdfs:label ?title
        FILTER langMatches(lang(?title), "EN")
      }
    UNION
      { ?article skos:subject <http://dbpedia.org/resource/Category:Google> .
        ?article rdfs:label ?title
        FILTER langMatches(lang(?title), "EN")
      }
  }
#-------------------------------------------------------
PREFIX  dc:   <http://purl.org/dc/elements/1.1/>
PREFIX  :     <http://dbpedia.org/resource/>
PREFIX  rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX  dbpedia2: <http://dbpedia.org/property/>
PREFIX  foaf: <http://xmlns.com/foaf/0.1/>
PREFIX  dbo:  <http://dbpedia.org/ontology/>
PREFIX  owl:  <http://www.w3.org/2002/07/owl#>
PREFIX  xsd:  <http://www.w3.org/2001/XMLSchema#>
PREFIX  dbpedia: <http://dbpedia.org/>
PREFIX  rdf:  <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX  skos: <http://www.w3.org/2004/02/skos/core#>

SELECT  ?name ?birth ?person
WHERE
  { ?person dbpedia2:birthPlace :London .
    ?person dbo:birthDate ?birth .
    ?person foaf:name ?name
    FILTER ( ?birth < "1999-01-01"^^xsd:date )
  }
ORDER BY ?name
#-------------------------------------------------------
PREFIX  rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX  foaf: <http://xmlns.com/foaf/0.1/>
PREFIX  dbp:  <http://dbpedia.org/property/>
PREFIX  rdf:  <http://www.w3.org/1999/02/22-rdf-syntax-ns#>

SELECT DISTINCT  ?resource ?uri ?wtitle ?comment ?image
WHERE
  { { { ?resource foaf:page <http://en.wikipedia.org/wiki/Portable_Document_Format> } }
    ?resource foaf:page ?uri .
    ?resource rdfs:label ?wtitle
    FILTER langMatches(lang(?wtitle), "en")
    OPTIONAL
      { ?resource rdfs:comment ?comment
        FILTER langMatches(lang(?comment), "en")
      }
    OPTIONAL
      { ?resource foaf:depiction ?image }
  }
#-------------------------------------------------------
PREFIX  dc:   <http://purl.org/dc/elements/1.1/>
PREFIX  dbpedia2: <http://dbpedia.org/property/>
PREFIX  rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX  foaf: <http://xmlns.com/foaf/0.1/>
PREFIX  dbpedia: <http://dbpedia.org/>
PREFIX  owl:  <http://www.w3.org/2002/07/owl#>
PREFIX  xsd:  <http://www.w3.org/2001/XMLSchema#>
PREFIX  rdf:  <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX  do:   <http://dbpedia.org/ontology/>
PREFIX  skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX  dr:   <http://dbpedia.org/resource/>

SELECT  ?a ?l
WHERE
  { ?a rdf:type foaf:Person .
    ?a rdfs:label ?l
  }
LIMIT   1000
#-------------------------------------------------------
PREFIX  dc:   <http://purl.org/dc/elements/1.1/>
PREFIX  :     <http://dbpedia.org/resource/>
PREFIX  rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX  dbpedia2: <http://dbpedia.org/property/>
PREFIX  foaf: <http://xmlns.com/foaf/0.1/>
PREFIX  dbo:  <http://dbpedia.org/ontology/>
PREFIX  owl:  <http://www.w3.org/2002/07/owl#>
PREFIX  xsd:  <http://www.w3.org/2001/XMLSchema#>
PREFIX  dbpedia: <http://dbpedia.org/>
PREFIX  rdf:  <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX  skos: <http://www.w3.org/2004/02/skos/core#>

SELECT  ?entita ?nome
WHERE
  { ?entita rdf:type dbo:Town .
    ?entita rdfs:label ?nome
    FILTER regex(?nome, "hawaii", "i")
  }
LIMIT   1000
