Thanks for your prompt reply Ben.

I have on StackOverFlow but I am interested in some immediate expertise as
I am entirely new to SPARQL.

I am going to get a directed graph plotted on Gephi, just saying, so I did
this, the SPARQL query below.

Now, do you think it makes senses because the two tables individually
showcased influenced and influencedby and hopefully the UNION operator does
not hurt the truth in that knowledge by combining these two.

Just take a look at it carefully because even thought the UNION operator
worked, I want the truth to be preserved in data.

SELECT *
WHERE {
?p a
<http://dbpedia.org/ontology/Person> .
{ ?p <http://dbpedia.org/ontology/influenced> ?influenced. }
UNION
{ ?p <http://dbpedia.org/ontology/influencedBy> ?influencedBy.}
}


On Sat, Dec 21, 2013 at 5:57 PM, Ben Companjen <bencompan...@gmail.com>wrote:

> Hi Ali,
>
> To combine two (or more) sets of conditions for a query, use the UNION
> operator.
> See for a similar usecase of DBpedia this question on StackOverflow
> (usually a better place to ask programming questions, by the way):
>
> http://stackoverflow.com/questions/10720471/figuring-out-the-right-sparql-query
>
> Groeten van Ben
>
>
> On 21 December 2013 18:18, Ali Gajani <aligaj...@gmail.com> wrote:
>
>> Hello everyone.
>>
>> I am looking into getting the list of the most influential people in
>> history.
>>
>> To achieve this, I am going to be using this query as shown below.
>>
>> Now, I modify the query to get by adding 'influencedBy' to get a second
>> table.
>>
>> Is there not a decent way to get these two tables queried so we retrieve
>> a uni-dataset.
>>
>> Thank you.
>>
>> SELECT *
>> WHERE {
>> ?p a
>> <http://dbpedia.org/ontology/Person> .
>> ?p <http://dbpedia.org/ontology/influenced> ?influenced.
>> }
>>
>>
>> --
>>
>>
>> Ali Gajani
>> Founder at Mr. Geek
>> www.mrgeek.me
>> www.aligajani.com
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Rapidly troubleshoot problems before they affect your business. Most IT
>> organizations don't have a clear picture of how application performance
>> affects their revenue. With AppDynamics, you get 100% visibility into your
>> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics
>> Pro!
>>
>> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Dbpedia-discussion mailing list
>> Dbpedia-discussion@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion
>>
>>
>


-- 


Ali Gajani
Founder at Mr. Geek
www.mrgeek.me
www.aligajani.com
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Dbpedia-discussion mailing list
Dbpedia-discussion@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion

Reply via email to