Hi Amir,
On 02/08/2013 11:56 PM, Amir Hossein Jadidinejad wrote:
Hi,
I'm a beginner with SPARQL and DBpedia. Looking for a query to get the
type of a specific DBpedia URI. Exactly, I'm looking for 3 types:
-PERSON
-LOCATION
-ORGANIZATION
I have two questions:
1. Would you please help me to construct an SPARQL query which gets a
bunch of URIs and returns the above proper type of the corresponding
concept?
If I understand what you want to achieve correctly then the following
query, asking for Paris as an example, should do it:
SELECT * WHERE { dbpedia:Paris ?p ?o }
2.How can I get more description about different types of concepts in
DBpedia?
If you want to get information about all DBpedia concepts then you can
use following query:
SELECT ?concept ?p ?info WHERE { {SELECT DISTINCT ?concept WHERE {
?s a ?concept } LIMIT 1000}. ?concept ?p ?info}
In case you want to get the description of a specific DBpedia class,
e.g. Person, then use the following one:
SELECT ?p ?info WHERE {dbpedia-owl:Person ?p ?info}
Any suggestions and comments are welcome.
Hope that helps.
--
Kind Regards
Mohamed Morsey
Department of Computer Science
University of Leipzig
------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
Dbpedia-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion