Skip to content

Commit

Permalink
Hardcode removal of united states from result list, and limit results…
Browse files Browse the repository at this point in the history
… to 500
  • Loading branch information
Yves Raimond committed Jul 20, 2009
1 parent 8b33b69 commit 26c7323
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion irc_bots/connectionfinder.py
Expand Up @@ -78,7 +78,7 @@ def arbitrary_connection(self, e, cmd, results = []):
(str(?p) != "http://dbpedia.org/ontology/genre") &&
(str(?p2) != "http://dbpedia.org/ontology/genre")
)
}
} LIMIT 500
""" % (uri, uri, uri, uri)
print sparql
dbpedia = SPARQLWrapper("http://dbpedia.org/sparql")
Expand Down
3 changes: 2 additions & 1 deletion irc_bots/placefinder.py
Expand Up @@ -76,10 +76,11 @@ def place_connection(self, e, cmd, results = []):
?place rdfs:label ?place_label .
?o <http://dbpedia.org/property/name> ?ol .
FILTER (
(str(?place) != 'http://dbpedia.org/resource/United_States') &&
(langMatches(lang(?ol), "en") || lang(?ol) = "" ) &&
(langMatches(lang(?place_label), "en") || lang(?place_label) = "" )
)
}
} LIMIT 500
""" % (uri, uri)
print sparql
dbpedia = SPARQLWrapper("http://dbpedia.org/sparql")
Expand Down

0 comments on commit 26c7323

Please sign in to comment.