Hi Ghislain,

On 12/07/2012 11:52 AM, Ghislain Atemezing wrote:
> Hi Julien,
> Here is the query..
>> Can you give the query, that would be easier to work on it.
> SELECT DISTINCT ?sub ?label ?parent  FROM <http://dbpedia.org>
> WHERE {?sub rdf:type ?class. FILTER (?class=owl:Class ||
> ?class=rdfs:Class) .
>    ?sub rdfs:subClassOf ?parent FILTER(!isBlank(?parent) &&
> ?parent!=owl:Thing) .
>    OPTIONAL {?sub rdfs:subClassOf ?sub2. ?sub2 rdfs:subClassOf ?parent.
>    OPTIONAL { ?parent owl:equivalentClass ?sub3 . ?sub3 rdfs:subClassOf
> ?sub2  }
>    FILTER (?sub!=?sub2 && ?sub2!=?parent && !isBlank(?sub2) &&
> !bound(?sub3) )}
> OPTIONAL { ?sub rdfs:label ?label FILTER(LANG(?label)='en')} FILTER
> (!isBlank(?sub) && !bound(?sub2)) }

This thread [1] was discussing something similar to what you want to 
achieve, hope it is useful for you.

>
> I see how to use your idea..
>
> Ghislain

[1] 
http://answers.semanticweb.com/questions/14277/transitive-dbpediavirtuoso-instance-queries-in-sparql

-- 
Kind Regards
Mohamed Morsey
Department of Computer Science
University of Leipzig


------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
Dbpedia-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion

Reply via email to