On 4/14/14 7:43 PM, Joachim Baran wrote:
Hello,

Instead of using ODBC, it might be easier to use the SPARQL package in R:

# install.packages('SPARQL')
library(SPARQL)
endpoint <- 'http://localhost:8890/sparql'
query <- "
  SELECT *
  WHERE
  {
    ?s ?p ?o .
  }
  LIMIT 10
  "
result <- SPARQL(endpoint, query)$results

Joachim



SeeAlso: http://virtuoso.openlinksw.com/dataspace/doc/dav/wiki/Main/VOSLODStatsAnalysisR -- Using R with Virtuoso via SAPRQL .


Kingsley

On 14 April 2014 16:39, Patrick van Kleef <pkl...@openlinksw.com <mailto:pkl...@openlinksw.com>> wrote:

    HI Esra,

    > I would like to ask if it is possible to run  R script
    (http://www.r-project.org/) on Virtuoso server. Thanks!


    You can interface between R and Virtuoso using the RODBC package:

    http://cran.r-project.org/package=RODBC

    This uses the Virtuoso ODBC driver to connect to the Virtuoso
    database engine and retrieve information via SQL or SPASQL from
    your Virtuoso database and process it further within the R language.


    Patrick
    
------------------------------------------------------------------------------
    Learn Graph Databases - Download FREE O'Reilly Book
    "Graph Databases" is the definitive new guide to graph databases
    and their
    applications. Written by three acclaimed leaders in the field,
    this first edition is now available. Download your free book today!
    http://p.sf.net/sfu/NeoTech
    _______________________________________________
    Virtuoso-users mailing list
    Virtuoso-users@lists.sourceforge.net
    <mailto:Virtuoso-users@lists.sourceforge.net>
    https://lists.sourceforge.net/lists/listinfo/virtuoso-users




------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech


_______________________________________________
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 Profile: https://twitter.com/kidehen
Google+ Profile: https://plus.google.com/+KingsleyIdehen/about
LinkedIn Profile: http://www.linkedin.com/in/kidehen




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

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users

Reply via email to