Skip to content

Instantly share code, notes, and snippets.

@soscler
Last active November 13, 2019 14:13
Show Gist options
  • Save soscler/d51ac8c4277e8ca676ce6749ef1f967b to your computer and use it in GitHub Desktop.
Save soscler/d51ac8c4277e8ca676ce6749ef1f967b to your computer and use it in GitHub Desktop.
TP7

Amen Amegnonan et Chriss Santi

TP7: DBPedia

3 Requêtes sur les oeuvres DBPedia

  • a: Sous classes
SELECT distinct ?subClasses
WHERE {
 ?r rdfs:subClassOf ?subClasses
}
  • b: Titre du film
SELECT ?title
WHERE {
 ?r a <http://dbpedia.org/ontology/Work>;
 rdfs:label ?title.
 FILTER (xsd:string(?r)="http://dbpedia.org/resource/Armageddon_(1998_film)")
}


- i
SELECT Count(?actor) as ?acNumbBefore1956
WHERE {
 ?actor a <http://dbpedia.org/ontology/Agent>;
 dbo:birthYear ?birthYear.
 FILTER (?birthYear < xsd:date("1956"))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment