Hi Somesh,
maybe this is helpful for you (in particular the last example in the
answer):
http://answers.semanticweb.com/questions/15481/getting-all-transitive-subtypes-of-a-type-through-dbpedia-sparql-endpoint
Best,
Heiko
Am 22.01.2013 14:51, schrieb Somesh Jain:
Hi folks,
I want to extract parent yago categories upto 4 levels . For eg :
http://dbpedia.org/class/yago/AcademicsOfTheCharlesUniversity has
parent yago category as
'http://dbpedia.org/class/yago/Academician109759069 ' . Similarly
this parent category has
'http://dbpedia.org/class/yago/EduCAtor110045713' as its parent .
Using
PREFIX yago: <http://dbpedia.org/class/yago/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?title WHERE {
<http://dbpedia.org/class/yago/GermanPhysicists> rdfs:subClassOf ?title.
}
I get 1 level parent . How to get parents of more than 1 level i.e.
rdfs:subClassOf transitivity
Please help
--
Regards
Somesh Jain
5th year Dual Degree Student
Department of Computer Science & Engineering
IIT Kharagpur
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
_______________________________________________
Dbpedia-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion
--
Dr. Heiko Paulheim
Knowledge Engineering Group
Technische Universität Darmstadt
Phone: +49 6151 16 6634
Fax: +49 6151 16 5482
http://www.ke.tu-darmstadt.de/staff/heiko-paulheim
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
_______________________________________________
Dbpedia-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion