Created
September 25, 2012 14:24
-
-
Save tommorris/3782244 to your computer and use it in GitHub Desktop.
query to get all universities with lat-longs in Alabama
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
how to use this query: | |
simply paste it into <http://dbpedia.org/sparql> | |
Choose the results format (HTML, XML, CSV etc.) | |
Enjoy. | |
dbpedia.org currently seems to be a bit shaky. you can also use | |
<http://dbpedia-live.openlinksw.com/sparql> or | |
<http://live.dbpedia.org/sparql> | |
--tom |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PREFIX category: <http://dbpedia.org/resource/Category:> | |
PREFIX dcterms: <http://purl.org/dc/terms/> | |
PREFIX geo: <http://www.w3.org/2003/01/geo/wgs84_pos#> | |
PREFIX dbpedia-owl: <http://dbpedia.org/ontology/> | |
PREFIX dbpedia: <http://dbpedia.org/resource/> | |
SELECT ?college ?lat ?long | |
WHERE { | |
{ | |
?college a dbpedia-owl:University; | |
dbpedia-owl:state dbpedia:Alabama. | |
} UNION { | |
?college dcterms:subject category:Universities_and_colleges_in_Alabama. | |
} | |
?college | |
geo:long ?long; | |
geo:lat ?lat . | |
} |
Hi @maiomar, DBpedia (and Wikidata) is only likely to contain material that's on Wikipedia. I don't know if the university you mentioned is on there. Instead, you might want to use scraping tools like Scrapy to get data from their website - have a look at this Scrapy tutorial for more details.
Thank you for your reply..
yes it is on wikipedia
https://en.wikipedia.org/wiki/Syrian_Virtual_University
but the wikidata, and dbpedia contain less info than wikipedia..
how to get that data..
or how to get the data relations (ontology ) and add it to wikidata and
dbpedia..
with my respect...
Mai Omar
…On Tue, Nov 17, 2020 at 12:52 AM Tom Morris ***@***.***> wrote:
***@***.**** commented on this gist.
------------------------------
Hi @maiomar <https://github.com/maiomar>, DBpedia (and Wikidata) is only
likely to contain material that's on Wikipedia. I don't know if the
university you mentioned is on there. Instead, you might want to use
scraping tools like Scrapy to get data from their website - have a look at this
Scrapy tutorial <https://docs.scrapy.org/en/latest/intro/tutorial.html>
for more details.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<https://gist.github.com/3782244#gistcomment-3529750>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFLT6YTA7SQHMVPYZCPCGULSQGUJNANCNFSM4TXXSG5Q>
.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
can u help me please .. to get the deans of the faculties in Syrian Virtual University...
the university website is svuonline.org.. but dbpedia did not have so info about it..