[R] rrdf package for mac not working

Ricardo Pietrobon rpietro at duke.edu
Thu Jun 28 10:50:51 CEST 2012


Uwe, sorry for the HTML. In answer to your post: I did try to contact
the developer, no response. but a colleague pointed me to a way out
yesterday through the RCurl and XML packages:


library(RCurl)
library(XML)

endpoint <- "http://qcrumb.com/sparql"
query <- "PREFIX sdmx-measure:
<http://purl.org/linked-data/sdmx/2009/measure#> SELECT * FROM
<http://estatwrap.ontologycentral.com/data/lfst_r_lfp3pop> WHERE {?s
sdmx-measure:obsValue ?o.} LIMIT 3"
accept="application/sparql-results+xml"
results <- getForm(endpoint, .params = c(query=query,accept=accept))
results <- xmlParse(results)
results <- xmlRoot(results)[["results"]]
frame  <- xmlToDataFrame(colClasses=c("character","double"), nodes =
xmlChildren(results))
max(frame[2],na.rm=TRUE)



On Tue, Jun 26, 2012 at 9:52 AM, Uwe Ligges
<ligges at statistik.tu-dortmund.de> wrote:
>
> Please contact the package maintainer.
>
> Best,
> Uwe Ligges
>
>
> On 26.06.2012 00:41, Ricardo Pietrobon wrote:
>>
>> rrdf is incredibly helpful, but I've notice that the rrdf package for mac
>> hasn't been working for some time: http://goo.gl/5Ukpn . wondering if there
>> is still a plan to maintain that in the long run, or if there is some other
>> alternative to read RDF files.
>>
>>        [[alternative HTML version deleted]]
>>
>> ______________________________________________
>> R-help at r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.
>>
>



More information about the R-help mailing list