On 11/4/13 5:12 PM, Abhishek Gupta wrote:
Soft Reminder.

Thanks
Abhishek

Query Text for your instance:

# Remove the pragma comments below to populate your Virtuoso DB via a Linked Data crawl that incorporated
# into the query processing pipeline
# Pragmas
# DEFINE input:grab-iri <http://www.w3.org/People/Berners-Lee/card#i>
# DEFINE input:grab-follow-predicate <http://xmlns.com/foaf/0.1/knows>
# DEFINE input:grab-depth 10
# DEFINE input:grab-limit 50

SELECT ?o as ?knowee ?distance ( ( SELECT COUNT ( * )
                   WHERE { ?o foaf:knows ?xx } ) ) AS ?knows_count
WHERE
  {
    {
      SELECT ?s ?o WHERE
      {
        ?s foaf:knows ?o
      }
     }
OPTION ( transitive, t_distinct, t_in ( ?s ) , t_out ( ?o ) , t_min ( 1 ) , t_max ( 4 ) , t_step ( 'step_no' ) as ?distance ) .
    FILTER ( ?s= <http://www.w3.org/People/Berners-Lee/card#i> )
  }
ORDER BY ?dist DESC (?distance) LIMIT 50


[1] http://www.openlinksw.com/dataspace/doc/dav/wiki/Main/VirtSpongerLinkedDataHooksIntoSPARQL#How -- sponger pragmas and sparql .


Kingsley

On 4 November 2013 03:07, Abhishek Gupta <abhis...@zumbl.com <mailto:abhis...@zumbl.com>> wrote:

    Sorry for the delayed response.

    Both the links are giving 404 errors. Is that expected?

    Regards
    Abhishek


    On 31 October 2013 18:08, Kingsley Idehen <kide...@openlinksw.com
    <mailto:kide...@openlinksw.com>> wrote:

        On 10/31/13 6:44 AM, Abhishek Gupta wrote:
        Hi

        Thanks for such a smooth ride with virtuoso, with so many
        resources to guide. I am working on a dbpedia database in
        virtuoso, but I am facing following issues:

        1. I need to work on undirected graph
        2. I need to work on a weigted graph where every edge is
        weighted (I will be assigning the weights directly).

        The precise problem that I am trying to solve is to find
        "shortest path" between two nodes in an undirected weighted
        graph. Any pointers will be appreciated. I am using
        virtuoso-opensource and this isn't a homework ;)

        Thanks
        Abhishek Gupta
        Co-founder, Zumbl

        Something like:

        1. http://linkeddata.uriburner.com/c/B7XLRK3 -- query result
        2. http://linkeddata.uriburner.com/c/B73BBR2 -- query
        definition .

--
        Regards,

        Kingsley Idehen 
        Founder & CEO
        OpenLink Software
        Company Web:http://www.openlinksw.com
        Personal Weblog:http://www.openlinksw.com/blog/~kidehen  
<http://www.openlinksw.com/blog/%7Ekidehen>
        Twitter/Identi.ca handle: @kidehen
        Google+ Profile:https://plus.google.com/112399767740508618350/about
        LinkedIn Profile:http://www.linkedin.com/in/kidehen





        
------------------------------------------------------------------------------
        Android is increasing in popularity, but the open development
        platform that
        developers love is also attractive to malware creators.
        Download this white
        paper to learn more about secure code signing practices that
        can help keep
        Android apps secure.
        
http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk
        _______________________________________________
        Virtuoso-users mailing list
        Virtuoso-users@lists.sourceforge.net
        <mailto:Virtuoso-users@lists.sourceforge.net>
        https://lists.sourceforge.net/lists/listinfo/virtuoso-users





------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk


_______________________________________________
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users


--

Regards,

Kingsley Idehen 
Founder & CEO
OpenLink Software
Company Web: http://www.openlinksw.com
Personal Weblog: http://www.openlinksw.com/blog/~kidehen
Twitter/Identi.ca handle: @kidehen
Google+ Profile: https://plus.google.com/112399767740508618350/about
LinkedIn Profile: http://www.linkedin.com/in/kidehen




Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most 
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
_______________________________________________
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users

Reply via email to